/*
 * coret_visual.css
 * Camada de polimento visual premium para o Coret.
 * Aplicada sobre base.css + props.css, nunca substitui — só enriquece.
 *
 * Pilares:
 *  1. Tipografia Inter com escala harmoniosa
 *  2. Paleta Halo com informacao como fonte de luz
 *  3. Fundo escuro profundo e escalavel
 *  4. Paineis discretos com borda fria e elevacao controlada
 *  5. Micro‑animações de entrada e interação
 *  6. Sidebar redesenhada com indicador ativo
 *  7. Posts com hover 3‑D sutil
 *  8. Bottom‑nav com blur premium
 *  9. Formulários com focus glow
 * 10. Responsividade ultra‑suave
 */

/* =========================================================
   1. TIPOGRAFIA GLOBAL
   ========================================================= */
:root {
    --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    /* Escala tipográfica fluida com clamp */
    --text-xs:   clamp(0.7rem, 0.7vw + 0.5rem, 0.75rem);
    --text-sm:   clamp(0.8rem, 0.8vw + 0.6rem, 0.875rem);
    --text-base: clamp(1rem, 1vw + 0.75rem, 1.125rem);
    --text-md:   clamp(1.1rem, 1.1vw + 0.8rem, 1.25rem);
    --text-lg:   clamp(1.25rem, 1.5vw + 0.9rem, 1.5rem);
    --text-xl:   clamp(1.5rem, 2vw + 1rem, 1.875rem);
    --text-2xl:  clamp(2rem, 3vw + 1.2rem, 2.5rem);
    --text-3xl:  clamp(2.75rem, 4vw + 1.5rem, 3.5rem);

    /* Refinamento de cores */
    --coret-bg:           #0A0B0F;
    --coret-bg-2:         #0F1017;
    --coret-surface:      #14151C;
    --coret-surface-2:    #1E2029;
    --coret-surface-3:    #252833;
    --coret-border:       #2A2D38;
    --coret-border-strong:#3A3D4A;
    --coret-text:         #F2F4F8;
    --coret-muted:        #9AA0AE;
    --coret-faint:        #5C6170;
    --coret-accent:       #5B6BFF;
    --coret-accent-strong:#7886FF;
    --coret-accent-pressed:#4A59E6;
    --coret-secondary:    #3DD7E5;
    --coret-tertiary:     #F5D547;
    --coret-success:      #2BE08C;
    --coret-accent-glow:  rgba(91, 107, 255, 0.35);
    --coret-danger:       #FF3A5C;
    --coret-warning:      #F5D547;
    --coret-info:         #3DD7E5;
    --gold-500:           var(--coret-accent);
    --gold-600:           var(--coret-accent-pressed);

    /* Radius refinado */
    --radius:       10px;
    --radius-panel: 16px;
    --radius-pill:  999px;

    /* Sombras premium em camadas */
    --shadow-xs:  0 1px 0 rgba(255,255,255,0.02) inset, 0 1px 2px rgba(0,0,0,0.4);
    --shadow-sm:  0 1px 0 rgba(255,255,255,0.02) inset, 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md:  0 8px 24px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.03) inset;
    --shadow-lg:  0 24px 60px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.04) inset;
    --shadow-xl:  0 24px 60px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.04) inset;
    --shadow-panel: var(--shadow-lg);

    /* Transições */
    --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast:  120ms;
    --duration-mid:   150ms;
    --duration-slow:  240ms;
}

/* =========================================================
   2. RESET TIPOGRÁFICO GLOBAL
   ========================================================= */
html {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scrollbar-color: var(--coret-accent-strong) var(--coret-bg-2);
}

::selection {
    background: var(--coret-accent);
    color: #000;
}

body {
    font-family: var(--font-ui);
    font-size: var(--text-base);
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: var(--coret-text);
    background: var(--coret-bg);
    text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    text-wrap: balance;
}

strong { font-weight: 700; }

/* =========================================================
   3. FUNDO ANIMADO COM AURA
   ========================================================= */
.coret-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(91, 107, 255, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 90% 110%, rgba(138,43,226,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 100% 60% at 50% 100%, rgba(240,192,64,0.05) 0%, transparent 50%),
        linear-gradient(in oklab 160deg, #0A0B0F 0%, #0F1017 50%, #030508 100%);
    animation: aura-drift 22s ease-in-out infinite alternate;
}

@keyframes aura-drift {
    0%  { filter: hue-rotate(0deg)   brightness(1);    }
    50% { filter: hue-rotate(8deg)   brightness(1.02); }
    100%{ filter: hue-rotate(-4deg)  brightness(0.98); }
}

/* =========================================================
   4. APP SHELL & SIDEBAR
   ========================================================= */
.app-shell {
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar-shell {
    gap: 10px;
}

.brand-shell {
    min-height: 62px;
    padding: 14px 16px;
    border-radius: var(--radius-panel);
    background: rgba(13, 21, 32, 0.5);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--coret-border);
    text-decoration: none;
    transition: border-color var(--duration-mid) ease, background var(--duration-mid) ease;
}

.brand-shell:hover { 
    border-color: var(--coret-border-strong);
    background: rgba(13, 21, 32, 0.7);
}

.brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    border-radius: 10px;
    background: linear-gradient(in oklch 135deg, var(--coret-accent), var(--coret-accent-strong));
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(91, 107, 255, 0.4);
}

.brand-shell strong {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-shell small {
    font-size: var(--text-xs);
    color: var(--coret-muted);
}

/* Shell card usuário */
.shell-card {
    background: rgba(13, 21, 32, 0.5);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--coret-border);
    border-radius: var(--radius-panel);
    gap: 14px;
}

/* --- Nav items --- */
.nav-shell { gap: 4px; }

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--coret-muted);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
    transition:
        color       var(--duration-fast) ease,
        background  var(--duration-fast) ease,
        border-color var(--duration-fast) ease,
        transform   var(--duration-fast) var(--ease-spring);
    overflow: hidden;
}

/* Linha de ativo */
.nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    translate: 0 -50%;
    width: 3px;
    height: 0;
    border-radius: 0 2px 2px 0;
    background: var(--coret-accent);
    transition: height var(--duration-mid) var(--ease-spring);
}

.nav-item:hover {
    color: var(--coret-text);
    background: rgba(91, 107, 255, 0.07);
    border-color: rgba(91, 107, 255, 0.1);
}

.nav-item:hover::before { height: 22px; }

.nav-item.is-active,
.nav-item[aria-current="page"] {
    color: var(--coret-accent);
    background: rgba(91, 107, 255, 0.1);
    border-color: rgba(91, 107, 255, 0.18);
    font-weight: 700;
}

.nav-item.is-active::before,
.nav-item[aria-current="page"]::before { height: 28px; }

.nav-item .material-symbols-outlined {
    font-size: 20px;
    transition: scale var(--duration-fast) var(--ease-spring);
}

.nav-item:hover .material-symbols-outlined { scale: 1.1; }

/* Badge de notificação */
.nav-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: var(--coret-accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
    animation: badge-pop 0.4s var(--ease-spring) both;
}

@keyframes badge-pop {
    from { scale: 0; }
    to   { scale: 1; }
}

/* Botão postar na sidebar */
.sidebar-post-button {
    width: 100%;
    background: linear-gradient(135deg, var(--coret-accent), var(--coret-accent-strong));
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    min-height: 44px;
    gap: 8px;
    transition: filter var(--duration-fast) ease, transform var(--duration-fast) var(--ease-spring);
    box-shadow: 0 4px 16px rgba(91, 107, 255, 0.28);
}

.sidebar-post-button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(91, 107, 255, 0.38);
}

.sidebar-post-button:active { transform: scale(0.97); }

/* =========================================================
   5. PAINEL DIREITO
   ========================================================= */
.right-panel-card {
    background: rgba(13, 21, 32, 0.72);
    backdrop-filter: blur(16px);
    border: 1px solid var(--coret-border);
    border-radius: var(--radius-panel);
    gap: 14px;
    padding: 16px;
    transition: border-color var(--duration-mid) ease;
}

.right-panel-card:hover { border-color: rgba(200,220,240,0.16); }

.panel-title-row strong { font-weight: 700; letter-spacing: -0.02em; }

.panel-list a {
    border-radius: var(--radius);
    background: rgba(255,255,255,0.03);
    transition: background var(--duration-fast) ease, border-left 0ms;
}

.panel-list a:hover { background: rgba(91, 107, 255, 0.08); }

/* =========================================================
   6. CARDS DE POST
   ========================================================= */
.post-card {
    position: relative;
    overflow: visible; /* allow action menu to escape */
    z-index: 1;
    border: 1px solid var(--coret-border);
    border-radius: var(--radius-panel);
    background: rgba(11, 18, 28, 0.65);
    backdrop-filter: blur(20px) saturate(160%);
    padding: clamp(14px, 2vw, 20px);
    gap: 14px;
    transition:
        border-color  var(--duration-mid) ease,
        background    var(--duration-mid) ease,
        box-shadow    var(--duration-mid) ease,
        transform     var(--duration-fast) var(--ease-spring);
    will-change: transform;
}

/* Brilho sutil no topo */
.post-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        160deg,
        rgba(91, 107, 255, 0.055) 0%,
        transparent 30%
    );
    opacity: 1;
}

.post-card > * { position: relative; z-index: 1; }

/* Ensure dropdown panel appears above the card with smooth reveal */
.coret-action-menu__panel {
    position: absolute;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}
/* When the <details> element is open, show the panel */
details[open] .coret-action-menu__panel {
    opacity: 1;
    transform: none;
}

/* Flash messages styling */
.messages {
    margin-top: 16px;
    width: 100%;
    max-width: 600px;
}
.message {
    padding: 8px 12px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    font-size: var(--text-sm);
}
.message.success { background: rgba(91, 107, 255, 0.12); color: var(--coret-accent); }

/* Rotate action menu icon when open */
.coret-action-menu[open] summary .material-symbols-outlined {
    transform: rotate(90deg);
    transition: transform var(--duration-fast) ease;
}

/* Focus style for action menu summary */
.coret-action-menu summary:focus-visible {
    outline: 2px solid var(--coret-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Room creation panel animation */
.room-form-panel {
    overflow: hidden;
    margin-top: 12px;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--duration-fast) ease, opacity var(--duration-fast) ease;
}

.room-form-panel.active {
    opacity: 1;
    transform: scaleY(1);
}

/* Inline form error styling */
.form-error {
    color: var(--danger);
    margin-top: 4px;
    font-size: var(--text-sm);
}
.form-error.hidden { display: none; }
.message.error { background: rgba(255,107,138,0.12); color: #ff6b8a; }

.post-card:hover {
    border-color: rgba(91, 107, 255, 0.35);
    background: rgba(11, 18, 28, 0.85);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(91, 107, 255, 0.15), 0 12px 32px rgba(91, 107, 255, 0.06);
    transform: translateY(-2px) scale(1.005);
}

/* Avatar do post */
.post-author .coret-avatar,
.post-author .mini-avatar {
    border: 2px solid rgba(91, 107, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(91, 107, 255, 0.06);
    transition: border-color var(--duration-mid) ease, box-shadow var(--duration-mid) ease;
}

.post-card:hover .post-author .coret-avatar,
.post-card:hover .post-author .mini-avatar {
    border-color: rgba(91, 107, 255, 0.38);
    box-shadow: 0 0 0 4px rgba(91, 107, 255, 0.12);
}

.post-author strong {
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.post-author small {
    font-size: var(--text-xs);
    color: var(--coret-muted);
}

.post-text {
    font-size: 0.98rem;
    line-height: 1.6;
    letter-spacing: -0.005em;
}

/* Ações do post */
.post-actions {
    border-top: 1px solid rgba(200,220,240,0.07);
    padding-top: 8px;
    margin-top: 4px;
}

.post-action {
    min-height: 38px;
    min-width: 38px;
    padding: 0 10px;
    border-radius: var(--radius);
    color: var(--coret-muted);
    background: transparent;
    border: 1px solid transparent;
    font-size: var(--text-sm);
    font-weight: 600;
    gap: 6px;
    transition:
        color       var(--duration-fast) ease,
        background  var(--duration-fast) ease,
        border-color var(--duration-fast) ease,
        transform   var(--duration-fast) var(--ease-spring);
}

.post-action:hover {
    color: var(--coret-text);
    background: rgba(255,255,255,0.06);
    border-color: rgba(200,220,240,0.12);
}

.post-action.is-active {
    color: var(--coret-accent);
    background: rgba(91, 107, 255, 0.12);
    border-color: rgba(91, 107, 255, 0.2);
}

.post-action:active { transform: scale(0.92); }

/* Botão "curtir" — efeito especial */
.post-action[aria-label="Curtir post"].is-active {
    color: #ff6b8a;
    background: rgba(255, 107, 138, 0.12);
    border-color: rgba(255, 107, 138, 0.2);
}

/* =========================================================
   7. COMPOSITOR
   ========================================================= */
.composer-card {
    border: 1px solid var(--coret-border);
    border-radius: var(--radius-panel);
    background: rgba(13, 21, 32, 0.86);
    backdrop-filter: blur(16px);
    overflow: visible;
}

.composer-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(ellipse at 100% 0%, rgba(91, 107, 255, 0.07), transparent 42%);
}

/* Textarea do composer */
.field, .textarea {
    background: rgba(4, 6, 10, 0.6);
    border: 1px solid rgba(200,220,240,0.1);
    border-radius: var(--radius);
    color: var(--coret-text);
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    transition:
        border-color var(--duration-fast) ease,
        box-shadow   var(--duration-fast) ease;
}

.field:focus, .textarea:focus {
    border-color: rgba(91, 107, 255, 0.42);
    box-shadow: 0 0 0 3px rgba(91, 107, 255, 0.1), 0 1px 6px rgba(0,0,0,0.2);
    outline: none;
}

/* =========================================================
   8. BOTÕES
   ========================================================= */
.button, .coret-button {
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: -0.01em;
    border-radius: var(--radius);
    transition:
        background  var(--duration-fast) ease,
        box-shadow  var(--duration-fast) ease,
        transform   var(--duration-fast) var(--ease-spring),
        filter      var(--duration-fast) ease;
}

.button, .coret-button:not(.coret-button--muted):not(.coret-button--secondary):not(.coret-button--ghost):not(.coret-button--danger) {
    background: linear-gradient(in oklch 135deg, var(--coret-accent) 0%, var(--coret-accent-strong) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 10px rgba(91, 107, 255, 0.22);
}

.button:hover,
.coret-button:not(.coret-button--muted):not(.coret-button--secondary):not(.coret-button--ghost):not(.coret-button--danger):hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 24px rgba(91, 107, 255, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.button:active, .coret-button:active { transform: scale(0.96); }

.coret-button--muted,
.coret-button--secondary,
.button-muted {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(200,220,240,0.12);
    color: var(--coret-text);
}

.coret-button--muted:hover,
.coret-button--secondary:hover,
.button-muted:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(200,220,240,0.2);
}

/* =========================================================
   9. CARDS GENÉRICOS / PAGE CARDS
   ========================================================= */
.page-card {
    border: 1px solid var(--coret-border);
    border-radius: var(--radius-panel);
    background: rgba(11, 18, 28, 0.78);
    backdrop-filter: blur(12px);
    padding: clamp(16px, 2vw, 22px);
}

.auth-card,
.profile-card {
    border: 1px solid var(--coret-border);
    border-radius: var(--radius-panel);
    background: rgba(11, 18, 28, 0.92);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-xl);
}

/* =========================================================
   10. SEÇÕES HEADING
   ========================================================= */
.page-heading h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--coret-text) 0%, var(--coret-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.eyebrow {
    color: var(--coret-accent);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* =========================================================
   11. TABS
   ========================================================= */
.tabs-row {
    background: rgba(13, 21, 32, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--coret-border);
    border-radius: var(--radius);
    padding: 5px;
    gap: 4px;
}

.tabs-row a,
.tabs-row button {
    border: 0;
    border-radius: calc(var(--radius) - 2px);
    color: var(--coret-muted);
    background: transparent;
    font-size: var(--text-sm);
    font-weight: 600;
    font: inherit;
    padding: 8px 14px;
    cursor: pointer;
    transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.tabs-row a.is-active,
.tabs-row a:hover,
.tabs-row button.is-active,
.tabs-row button:hover {
    color: #ffffff;
    background: var(--coret-accent);
}

/* =========================================================
   12. BOTTOM NAV (MOBILE)
   ========================================================= */
.bottom-nav {
    background: rgba(4, 6, 10, 0.88) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(200,220,240,0.08) !important;
    border-radius: 18px;
    margin: 0 10px 10px;
    left: 0;
    right: 0;
    box-shadow: 0 -4px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(91, 107, 255, 0.05);
}

.bottom-nav a {
    border-radius: var(--radius);
    color: var(--coret-muted);
    font-size: var(--text-xs);
    font-weight: 600;
    transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.bottom-nav a.is-active,
.bottom-nav a[aria-current="page"] {
    color: var(--coret-accent);
    background: rgba(91, 107, 255, 0.1);
}

.bottom-nav a:hover { color: var(--coret-text); }

.fab-post {
    background: linear-gradient(135deg, var(--coret-accent), var(--coret-accent-strong));
    color: #ffffff;
    border: none;
    box-shadow: 0 6px 24px rgba(91, 107, 255, 0.45);
    transition: box-shadow var(--duration-fast) ease, transform var(--duration-fast) var(--ease-spring);
}

.fab-post:hover {
    box-shadow: 0 10px 32px rgba(91, 107, 255, 0.58);
    transform: translateY(-2px) scale(1.04);
}

/* =========================================================
   13. TOAST STACK
   ========================================================= */
.toast-card {
    background: rgba(13, 21, 32, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--coret-border);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-lg);
    animation: toast-in 0.35s var(--ease-out-cubic) both;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(24px) scale(0.97); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* =========================================================
   14. MODAL / DIALOG
   ========================================================= */
.modal-panel,
.coret-modal,
dialog.coret-modal {
    border: 1px solid rgba(200,220,240,0.14);
    border-radius: var(--radius-panel);
    background: rgba(11, 18, 28, 0.96);
    backdrop-filter: blur(28px);
    box-shadow: var(--shadow-xl);
}

.modal-overlay,
.media-editor-modal {
    background: rgba(2, 4, 8, 0.76);
    backdrop-filter: blur(12px);
}

/* =========================================================
   15. PERFIL
   ========================================================= */
.profile-avatar {
    border: 4px solid var(--coret-bg);
    box-shadow: 0 0 0 2px rgba(91, 107, 255, 0.24), var(--shadow-md);
    transition: box-shadow var(--duration-mid) ease;
}

.profile-avatar:hover {
    box-shadow: 0 0 0 3px rgba(91, 107, 255, 0.46), var(--shadow-lg);
}

.profile-info h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: -0.04em;
    font-weight: 900;
}

/* =========================================================
   16. LOJA / STORE CARDS
   ========================================================= */
.store-product-card {
    border: 1px solid var(--coret-border);
    border-radius: var(--radius-panel);
    background: rgba(11, 18, 28, 0.88);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition:
        transform     var(--duration-mid) var(--ease-spring),
        border-color  var(--duration-mid) ease,
        box-shadow    var(--duration-mid) ease;
}

.store-product-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(91, 107, 255, 0.3);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(91, 107, 255, 0.1);
}

.store-card__image {
    background: linear-gradient(135deg, rgba(91, 107, 255, 0.08), rgba(99,102,241,0.08));
    border-radius: 0;
}

/* =========================================================
   17. BARRA DE PESQUISA (PAINEL DIREITO)
   ========================================================= */
.search-panel .field {
    background: rgba(4, 6, 10, 0.5);
    border-radius: var(--radius-pill);
    padding-left: 16px;
}

.search-panel .field:focus {
    border-color: rgba(91, 107, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(91, 107, 255, 0.08);
}

/* =========================================================
   18. AVATAR GERAL
   ========================================================= */
.mini-avatar,
.coret-avatar {
    transition: box-shadow var(--duration-fast) ease;
}

.mini-avatar:hover,
.coret-avatar:hover {
    box-shadow: 0 0 0 3px rgba(91, 107, 255, 0.28);
}

/* =========================================================
   19. COIN POPOVER & MOEDA
   ========================================================= */
.coin-popover {
    background: rgba(7, 12, 20, 0.98);
    backdrop-filter: blur(28px);
    border: 1px solid rgba(200,220,240,0.12);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-xl);
}

.coin-trigger {
    background: rgba(91, 107, 255, 0.1);
    border: 1px solid rgba(91, 107, 255, 0.22);
    border-radius: var(--radius);
    color: var(--coret-accent);
    font-weight: 700;
    font-size: var(--text-sm);
    transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.coin-trigger:hover {
    background: rgba(91, 107, 255, 0.18);
    border-color: rgba(91, 107, 255, 0.38);
}

/* =========================================================
   20. NOTIFICAÇÕES
   ========================================================= */
.notification-card {
    border-radius: var(--radius);
    background: rgba(11, 18, 28, 0.8);
    border: 1px solid var(--coret-border);
    transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.notification-card:hover { background: rgba(11,18,28,0.95); }

.notification-card.is-unread {
    border-color: rgba(91, 107, 255, 0.26);
    background: rgba(91, 107, 255, 0.04);
}

/* =========================================================
   21. LANDING PAGE (home.html)
   ========================================================= */
.landing-copy h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.0;
    background: linear-gradient(135deg, #F2F4F8 30%, var(--coret-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-panel {
    background: rgba(11, 18, 28, 0.78);
    backdrop-filter: blur(16px);
    border: 1px solid var(--coret-border);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-xl);
}

.mock-post, .mock-store {
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(91, 107, 255, 0.12) 0%, rgba(99,102,241,0.06) 100%),
        rgba(255,255,255,0.04);
    border: 1px solid rgba(200,220,240,0.1);
    position: relative;
    overflow: hidden;
}

.mock-post::after, .mock-store::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    background-size: 200% 100%;
    animation: skeleton-shimmer 2.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* =========================================================
   22. MENU DE AÇÕES DO POST
   ========================================================= */
.post-menu-list,
.coret-action-menu__panel {
    background: rgba(8, 13, 22, 0.97);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(200,220,240,0.14);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-xl);
}

.post-menu-item {
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.post-menu-item:hover { background: rgba(91, 107, 255, 0.1); color: var(--coret-accent); }
.post-menu-item.danger:hover { background: rgba(252, 122, 140, 0.12); color: var(--coret-danger); }

/* =========================================================
   23. CONFIGURAÇÕES E SETTINGS
   ========================================================= */
.settings-section summary {
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--coret-text);
}

/* =========================================================
   24. MICRO-ANIMAÇÃO DE ENTRADA DOS CARDS
   ========================================================= */
@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.post-card {
    animation: card-in 0.3s var(--ease-out-cubic) both;
}

/* Delay escalonado para lista de posts */
.feed-list .post-card:nth-child(1)  { animation-delay: 0ms;   }
.feed-list .post-card:nth-child(2)  { animation-delay: 40ms;  }
.feed-list .post-card:nth-child(3)  { animation-delay: 80ms;  }
.feed-list .post-card:nth-child(4)  { animation-delay: 120ms; }
.feed-list .post-card:nth-child(5)  { animation-delay: 160ms; }
.feed-list .post-card:nth-child(n+6){ animation-delay: 0ms;   }

/* =========================================================
   25. POLL VISUAL
   ========================================================= */
.poll-option,
.coret-poll__option {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(200,220,240,0.1);
    border-radius: var(--radius);
    transition:
        border-color var(--duration-fast) ease,
        background   var(--duration-fast) ease,
        transform    var(--duration-fast) var(--ease-spring);
}

.poll-option:hover:not(:disabled),
.coret-poll__option:hover {
    border-color: rgba(91, 107, 255, 0.3);
    background: rgba(91, 107, 255, 0.07);
    transform: translateX(2px);
}

.poll-option.is-active { border-color: rgba(91, 107, 255, 0.5); }

/* =========================================================
   26. MINI PROFILE POPOVER
   ========================================================= */
.mini-profile-card {
    backdrop-filter: blur(28px);
}

/* =========================================================
   27. SKELETON LOADER
   ========================================================= */
.card_load,
.card_load_extreme_title,
.card_load_extreme_descripion,
.skeleton,
.coret-skeleton-line {
    background: linear-gradient(
        105deg,
        rgba(255,255,255,0.04) 30%,
        rgba(255,255,255,0.09) 50%,
        rgba(255,255,255,0.04) 70%
    );
    background-size: 240% 100%;
    background-position: 100% 0;
    animation: coret-shimmer 1.8s ease-in-out infinite;
}

/* =========================================================
   28. STORIES ROW — visual extra
   ========================================================= */
.stories-row-wrap {
    padding: 2px 0 8px;
}

/* =========================================================
   29. RESPONSIVIDADE
   ========================================================= */
@media (max-width: 767px) {
    .post-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-inline: -16px;
    }

    .bottom-nav {
        border-radius: 16px 16px 0 0;
        margin: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

/* =========================================================
   30. REDUÇÃO DE MOVIMENTO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .coret-bg { animation: none; }
    .post-card { animation: none; transform: none !important; }
    * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* =========================================================
   31. HALO DESIGN SYSTEM OVERRIDES
   Fonte: docs/FRONTEND_props exemple.md
   ========================================================= */
:root {
    --surface-hover: rgba(255, 255, 255, 0.055);
    --surface-active: rgba(91, 107, 255, 0.13);
    --text-200: var(--coret-muted);
    --text-300: var(--coret-faint);
}

html {
    scrollbar-color: var(--coret-border-strong) var(--coret-bg);
}

::selection {
    background: var(--coret-accent);
    color: #ffffff;
}

body {
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    line-height: 1.55;
    letter-spacing: -0.005em;
    color: var(--coret-text);
    background: var(--coret-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-ui);
    font-weight: 600;
    letter-spacing: 0;
}

.coret-bg {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
        linear-gradient(180deg, #0A0B0F 0%, #0D0E14 54%, #0A0B0F 100%);
    background-size: 96px 96px, 96px 96px, auto;
    animation: none;
}

.brand-shell,
.shell-card,
.right-panel-card,
.page-card,
.post-card,
.auth-card,
.landing-panel,
.empty-state,
.toast-card,
.inventory-card,
.chat-card,
.profile-card,
.notification-card,
.composer-card,
.modal-card,
.coret-modal,
dialog.coret-modal,
.coret-empty-state {
    border: 1px solid var(--coret-border);
    border-radius: var(--radius-panel);
    background: var(--coret-surface);
    box-shadow: var(--shadow-md);
}

.page-card,
.post-card,
.inventory-card,
.chat-card,
.composer-card {
    padding: 16px;
}

.post-card::before,
.composer-card::after,
.coin-popover-glow {
    display: none;
}

.brand-mark {
    color: #ffffff;
    background: var(--coret-accent);
    box-shadow: 0 0 0 3px var(--coret-focus), var(--shadow-sm);
}

.brand-shell:hover,
.shell-card:hover,
.right-panel-card:hover,
.page-card:hover,
.post-card:hover,
.inventory-card:hover,
.chat-card:hover,
.profile-card:hover,
.notification-card:hover {
    border-color: var(--coret-border-strong);
    background: var(--coret-surface-2);
}

.button,
.coret-button,
.coin-trigger,
.sidebar-post-button {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: #ffffff;
    background: var(--coret-accent);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0;
    box-shadow: none;
}

.button:hover,
.coret-button:hover,
.coin-trigger:hover,
.sidebar-post-button:hover {
    color: #ffffff;
    background: var(--coret-accent-strong);
    box-shadow: 0 0 0 3px var(--coret-focus);
    transform: none;
}

.button:active,
.coret-button:active,
.coin-trigger:active,
.sidebar-post-button:active {
    background: var(--coret-accent-pressed);
    transform: translateY(1px);
}

.button-muted,
.coret-button--secondary,
.coret-button--muted,
.icon-button,
.post-action,
.file-tool,
.coret-tab,
.shell-menu-summary {
    min-height: 40px;
    border: 1px solid var(--coret-border-strong);
    border-radius: var(--radius);
    color: var(--coret-text);
    background: var(--coret-surface);
    font-size: 0.8125rem;
    font-weight: 500;
}

.hamburger {
    cursor: pointer;
}

.hamburger input {
    display: none;
}

.hamburger svg {
    height: 3em;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
    fill: none;
    stroke: white;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
                stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
    stroke-dasharray: 12 63;
}

.hamburger input:checked + svg {
    transform: rotate(-45deg);
}

.hamburger input:checked + svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}

.button-muted:hover,
.coret-button--secondary:hover,
.coret-button--muted:hover,
.icon-button:hover,
.post-action:hover,
.file-tool:hover,
.coret-tab:hover {
    color: var(--coret-text);
    border-color: var(--coret-accent);
    background: var(--coret-surface-2);
}

.button-danger,
.coret-button--danger,
.post-menu-item.danger:hover {
    color: #ffffff;
    background: var(--coret-danger);
}

.field,
.textarea,
.select,
.post-report-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
select,
textarea {
    min-height: 40px;
    border: 1px solid var(--coret-border);
    border-radius: var(--radius);
    color: var(--coret-text);
    background: var(--coret-surface);
    box-shadow: none;
}

.field:focus,
.textarea:focus,
.select:focus,
.post-report-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--coret-accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--coret-focus);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--coret-focus);
}

.eyebrow,
.label,
.panel-title-row a,
.auth-switch a {
    color: var(--coret-secondary);
}

.nav-item {
    min-height: 40px;
    border-radius: var(--radius);
    color: var(--coret-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0;
}

.nav-item::before {
    background: var(--coret-accent);
}

.nav-item:hover,
.nav-item.is-active,
.nav-item[aria-current="page"] {
    color: var(--coret-text);
    border-color: var(--coret-border-strong);
    background: var(--surface-active);
}

.nav-item.is-active,
.nav-item[aria-current="page"] {
    color: var(--coret-accent-strong);
}

.nav-badge,
.post-action.is-active,
.post-menu-item.is-active,
.coret-tab.is-active,
.coret-tab[aria-current="page"] {
    color: #ffffff;
    background: var(--coret-accent);
}

.live-dot,
.coret-coin-pill,
.coin-icon,
.post-audio-box > .material-symbols-outlined,
.coret-empty-state > .material-symbols-outlined {
    color: var(--coret-secondary);
}

.shell-meter,
.coin-chart,
.mock-post,
.mock-store,
.post-audio-box,
.post-poll,
.composer-poll-box,
.item-preview {
    border-color: var(--coret-border);
    background: var(--coret-surface-2);
}

.shell-meter span,
.coin-chart b,
.poll-option.is-active,
.coret-poll__option i {
    background: var(--coret-accent);
}

.post-action:hover,
.post-menu-item:hover,
.poll-option:hover:not(:disabled),
.coret-poll__option:hover,
.post-report-reason-list label:hover {
    color: var(--coret-text);
    border-color: var(--coret-accent);
    background: rgba(91, 107, 255, 0.12);
}

.poll-option.is-active,
.coret-poll__option.is-selected {
    border-color: var(--coret-accent);
}

.app-webview-topbar {
    background: linear-gradient(180deg, rgba(10, 11, 15, 0.98), rgba(10, 11, 15, 0.78));
}

.bottom-nav,
.app-webview-bottom-nav {
    border-top: 1px solid var(--coret-border);
    background: rgba(20, 21, 28, 0.96);
    box-shadow: 0 -16px 44px rgba(0, 0, 0, 0.45);
}

.bottom-nav a,
.app-webview-bottom-nav a {
    color: var(--coret-muted);
}

.bottom-nav a[aria-current="page"],
.app-webview-bottom-nav a[aria-current="page"] {
    color: var(--coret-accent-strong);
    background: rgba(91, 107, 255, 0.13);
}

.fab-post {
    color: #ffffff;
    background: var(--coret-accent);
    box-shadow: 0 0 0 3px var(--coret-focus), var(--shadow-lg);
}

.message.success {
    color: var(--coret-success);
    background: rgba(43, 224, 140, 0.12);
}

.message.error,
.form-errors {
    color: #FFD7DF;
    border-color: rgba(255, 58, 92, 0.32);
    background: rgba(255, 58, 92, 0.12);
}

.post-promoted-badge {
    color: #ffffff;
    background: var(--coret-accent);
}

.check-row input[type="checkbox"] {
    appearance: none;
    position: relative;
    width: 88px;
    height: 40px;
    flex: 0 0 88px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: #d7d7d7;
    cursor: pointer;
    transition: background 350ms ease-in-out;
}

.check-row input[type="checkbox"]::before {
    content: "";
    position: absolute;
    z-index: 1;
    width: 32px;
    height: 32px;
    top: 4px;
    left: 4px;
    border-radius: 999px;
    background: linear-gradient(45deg, #dedede, #ffffff);
    box-shadow: 0 6px 7px rgba(0,0,0,0.3);
    transition: left 350ms ease-in-out;
}

.check-row input[type="checkbox"]::after {
    content: "..";
    position: absolute;
    left: 11px;
    top: 15px;
    color: #9b9b9b;
    font-family: "Times New Roman", serif;
    font-size: 24px;
    letter-spacing: -2px;
    line-height: 0;
    transition: left 350ms ease-in-out, transform 350ms ease-in-out;
}

.check-row input[type="checkbox"]:checked {
    background: linear-gradient(90deg, #76c070, #93faaa);
}

.check-row input[type="checkbox"]:checked::before {
    left: 52px;
}

.check-row input[type="checkbox"]:checked::after {
    content: "o";
    left: 64px;
    top: 23px;
    font-size: 20px;
    transform: rotateY(360deg);
}

.checkbox-wrapper-5 .check {
    --size: 40px;
    position: relative;
    background: linear-gradient(90deg, #76c070, #93faaa);
    line-height: 0;
    perspective: 400px;
    font-size: var(--size);
}

.checkbox-wrapper-5 .check input[type="checkbox"],
.checkbox-wrapper-5 .check label,
.checkbox-wrapper-5 .check label::before,
.checkbox-wrapper-5 .check label::after,
.checkbox-wrapper-5 .check {
    appearance: none;
    display: inline-block;
    border-radius: var(--size);
    border: 0;
    transition: .35s ease-in-out;
    box-sizing: border-box;
    cursor: pointer;
}

.checkbox-wrapper-5 .check label {
    width: calc(2.2 * var(--size));
    height: var(--size);
    background: #d7d7d7;
    overflow: hidden;
}

.checkbox-wrapper-5 .check input[type="checkbox"] {
    position: absolute;
    z-index: 1;
    width: calc(.8 * var(--size));
    height: calc(.8 * var(--size));
    top: calc(.1 * var(--size));
    left: calc(.1 * var(--size));
    background: linear-gradient(45deg, #dedede, #ffffff);
    box-shadow: 0 6px 7px rgba(0,0,0,0.3);
    outline: none;
    margin: 0;
}

.checkbox-wrapper-5 .check input[type="checkbox"]:checked {
    left: calc(1.3 * var(--size));
}

.checkbox-wrapper-5 .check input[type="checkbox"]:checked + label {
    background: transparent;
}

.checkbox-wrapper-5 .check label::before,
.checkbox-wrapper-5 .check label::after {
    content: "· ·";
    position: absolute;
    overflow: hidden;
    left: calc(.15 * var(--size));
    top: calc(.5 * var(--size));
    height: var(--size);
    letter-spacing: calc(-0.04 * var(--size));
    color: #9b9b9b;
    font-family: "Times New Roman", serif;
    z-index: 2;
    font-size: calc(.6 * var(--size));
    border-radius: 0;
    transform-origin: 0 0 calc(-0.5 * var(--size));
    backface-visibility: hidden;
}

.checkbox-wrapper-5 .check label::after {
    content: "●";
    top: calc(.65 * var(--size));
    left: calc(.2 * var(--size));
    height: calc(.1 * var(--size));
    width: calc(.35 * var(--size));
    font-size: calc(.2 * var(--size));
    transform-origin: 0 0 calc(-0.4 * var(--size));
}

.checkbox-wrapper-5 .check input[type="checkbox"]:checked + label::before,
.checkbox-wrapper-5 .check input[type="checkbox"]:checked + label::after {
    left: calc(1.55 * var(--size));
    top: calc(.4 * var(--size));
    line-height: calc(.1 * var(--size));
    transform: rotateY(360deg);
}

.checkbox-wrapper-5 .check input[type="checkbox"]:checked + label::after {
    top: calc(.55 * var(--size));
    left: calc(1.6 * var(--size));
    height: calc(.16 * var(--size));
    font-size: calc(.6 * var(--size));
    line-height: 0;
}

.page-heading h1,
.auth-card h1,
.landing-copy h1,
.community-hero h1,
.profile-hero h1 {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 0;
}

.landing-copy h1 {
    font-size: 4.5rem;
    line-height: 1.04;
}

.page-heading p,
.landing-copy p,
.empty-state p,
.item-body p,
.post-text,
.post-report-help {
    font-size: 0.9375rem;
    line-height: 1.55;
    letter-spacing: 0;
}

.panel-title-row strong,
.post-author strong,
.shell-user-row strong,
.coret-feed-hero h1,
.coret-modal-header h2,
.modal-head h2 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}

.eyebrow,
.post-promoted-badge,
.ad-badge,
.label,
label,
.nav-item,
.button,
.button-muted,
.button-danger,
.coret-button,
.coret-tab,
.post-action,
.file-tool,
.app-webview-bottom-nav a,
.bottom-nav a {
    letter-spacing: 0;
}

.coin-metrics strong,
.metric,
.coin-trigger strong {
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 0;
}

.ad-badge {
    color: #ffffff;
    background: linear-gradient(110deg, var(--coret-accent) 0%, var(--coret-secondary) 50%, var(--coret-accent) 100%);
}

.check-row input[type="checkbox"]::after {
    letter-spacing: 0;
}

@media (max-width: 767px) {
    .landing-hero {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 24px;
        padding-block: 48px 160px;
    }

    .landing-copy {
        display: grid;
        gap: 14px;
    }

    .landing-panel {
        width: 100%;
        min-height: 320px;
    }

    .landing-copy h1 {
        font-size: 2.25rem;
    }

    .page-heading h1,
    .auth-card h1,
    .community-hero h1,
    .profile-hero h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
}

/* Coret fixed app rebuild */
.coret-fixed-body {
    width: 100%;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    color: #eef2f7;
    background: #050609;
}

.coret-fixed-shell {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: 184px minmax(0, 1fr);
    grid-template-rows: 40px minmax(0, 1fr);
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 96px 96px,
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 96px 96px,
        #07080d;
}

.coret-top-spacer {
    position: relative;
    z-index: 30;
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 40px;
    border-bottom: 1px solid rgba(142, 232, 189, .16);
    color: #f2f6f4;
    background: rgba(5, 7, 10, .96);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .24em;
}

.coret-fixed-nav {
    position: relative;
    z-index: 30;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 8px;
    border-right: 1px solid rgba(142, 232, 189, .18);
    background: linear-gradient(180deg, rgba(12, 17, 24, .98), rgba(5, 8, 12, .98));
}

.coret-nav-brand,
.coret-nav-item,
.coret-nav-post,
.coret-nav-logout,
.coret-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    border: 1px solid rgba(210, 225, 236, .16);
    border-radius: 8px;
    color: #f2f6f4;
    text-decoration: none;
    background: rgba(255, 255, 255, .035);
}

.coret-nav-brand {
    justify-content: center;
    min-height: 54px;
    margin-bottom: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}

.coret-nav-brand .hamburger svg {
    height: 2.2em;
}

.coret-nav-list {
    display: grid;
    gap: 12px;
}

.coret-nav-item {
    position: relative;
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 800;
}

.coret-nav-item span {
    font-size: 21px;
}

.coret-nav-item b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coret-nav-item:hover,
.coret-nav-item.is-active {
    color: #06110d;
    border-color: var(--coret-accent, #8ee6b7);
    background: var(--coret-accent, #8ee6b7);
    transform: translateX(2px);
}

.coret-nav-item i {
    position: absolute;
    right: 6px;
    top: -7px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    color: #06110d;
    background: #93faaa;
    font-size: 11px;
    font-style: normal;
}

.coret-nav-footer {
    display: grid;
    gap: 8px;
    margin-top: auto;
}

.coret-nav-user {
    padding: 6px;
    border-radius: 999px 8px 8px 999px;
}

.coret-nav-user img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,.08);
}

.coret-nav-user span {
    min-width: 0;
}

.coret-nav-user b,
.coret-nav-user small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coret-nav-user small {
    color: rgba(255,255,255,.68);
    font-size: 11px;
}

.coret-nav-post,
.coret-nav-logout {
    justify-content: center;
    min-height: 34px;
    padding: 0 8px;
    font-weight: 800;
}

.coret-nav-logout {
    width: 100%;
    cursor: pointer;
}

.coret-fixed-main {
    position: relative;
    z-index: 1;
    grid-row: 2;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    background: #080a10;
}

.coret-feed-screen,
.coret-page-panel {
    min-height: 100%;
    padding: 16px 16px 48px;
    color: #e8ecf2;
    background:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 96px 96px,
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 96px 96px,
        #080a10;
}

.coret-feed-screen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 18px;
    align-items: start;
}

.coret-feed-main-column {
    display: grid;
    gap: 0;
    min-width: 0;
}

.coret-feed-side-column {
    position: sticky;
    top: 16px;
    display: grid;
    gap: 16px;
    min-width: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
}

.coret-feed-search,
.coret-feed-side-card {
    border: 1px solid rgba(123, 141, 164, 0.34);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.42);
}

.coret-feed-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
}

.coret-feed-search span {
    color: #8b95a6;
    font-size: 20px;
}

.coret-feed-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #f4f6fb;
    background: transparent;
    font: inherit;
}

.coret-feed-side-card {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.coret-feed-side-card h2 {
    margin: 0;
    color: #f5f7fb;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 900;
}

.coret-feed-side-card > a,
.coret-premium-card > a {
    width: max-content;
    color: #2ba8ff;
    text-decoration: none;
    font-weight: 700;
}

.coret-follow-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.coret-follow-row img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.coret-follow-row span {
    min-width: 0;
}

.coret-follow-row b,
.coret-follow-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coret-follow-row small,
.coret-trend-row small {
    color: #8792a3;
}

.coret-follow-row button {
    min-height: 32px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    color: #06110d;
    background: #eef3f8;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms cubic-bezier(.34,1.56,.64,1), background 160ms ease;
}

.coret-follow-row button:hover {
    background: #ffffff;
    transform: translateY(-1px) scale(1.04);
}

.coret-follow-row form {
    margin: 0;
}

.coret-trend-row {
    position: relative;
    display: grid;
    gap: 3px;
    padding-right: 28px;
}

.coret-trend-row b {
    overflow: hidden;
    color: #f4f6fb;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coret-trend-row em {
    color: #8792a3;
    font-size: 12px;
    font-style: normal;
}

.coret-trend-row span {
    position: absolute;
    right: 0;
    top: 2px;
    color: #808a9b;
}

.coret-side-empty {
    margin: 0;
    color: #8792a3;
    line-height: 1.4;
}

.coret-premium-card {
    gap: 12px;
}

.coret-premium-card h2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.coret-premium-card h2 span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #8ff0bd;
    background: rgba(20, 165, 102, 0.28);
    font-size: 13px;
}

.coret-premium-card p {
    margin: 0;
    color: #f4f6fb;
    line-height: 1.35;
}

.coret-premium-card > a {
    min-height: 36px;
    padding: 8px 18px;
    border-radius: 999px;
    color: #fff;
    background: #1da1f2;
}

.coret-feed-title {
    display: grid;
    place-items: center;
    min-height: 68px;
}

.coret-feed-title h1 {
    margin: 0;
    color: #f5f7fb;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .22em;
}

.coret-feed-scope {
    width: 100%;
    max-width: none;
    margin: 0 0 18px;
}

.coret-feed-scope .tabs-row,
.coret-segmented-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    padding: 7px;
    border: 1px solid rgba(165, 174, 190, .22);
    border-radius: 999px;
    background: rgba(9, 11, 17, .82);
}

.coret-feed-scope .tabs-row a,
.coret-segmented-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    color: #aeb5c4;
    font-weight: 800;
}

.coret-feed-scope .tabs-row a.is-active,
.coret-segmented-tabs a[aria-current="page"] {
    color: #05070a;
    border-color: #5f6cff;
    background: #5f6cff;
}

.coret-feed-stories {
    min-height: 136px;
    padding: 0 0 16px;
}

.coret-feed-composer {
    width: min(100%, 820px);
    max-width: 820px;
    margin: 0 auto 18px;
}

.coret-feed-scroll,
.feed-list {
    display: grid;
    gap: 14px;
    width: 100%;
    max-width: none;
}

.coret-composer {
    border-color: rgba(92, 109, 130, .4) !important;
    background: rgba(11, 16, 22, .92) !important;
}

.coret-composer textarea {
    min-height: 88px !important;
    background: #060a0f !important;
}

.coret-page-panel {
    padding: 22px;
}

.coret-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.coret-section-head p {
    margin: 0 0 8px;
    color: #a8afbd;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.coret-section-head h1 {
    margin: 0;
    color: #f4f6fb;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
}

.coret-section-head span {
    display: block;
    margin-top: 12px;
    color: #aab2c1;
}

.coret-primary-action,
.coret-balance-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    color: #05070a;
    background: #6672ff;
    font-weight: 900;
}

.coret-notification-list {
    display: grid;
    gap: 16px;
    max-width: 1088px;
}

.notification-item,
.page-card {
    border: 1px solid rgba(124, 137, 158, .28) !important;
    border-radius: 14px !important;
    background: rgba(16, 22, 31, .88) !important;
}

.coret-community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    max-width: 1120px;
}

.coret-community-card {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border: 1px solid rgba(124, 137, 158, .28);
    border-radius: 16px;
    background: #101620;
}

.coret-community-card__banner {
    height: 116px;
    background:
        radial-gradient(circle at 76% 24%, hsla(var(--hue), 90%, 62%, .78), transparent 34%),
        linear-gradient(135deg, hsl(var(--hue), 72%, 35%), #111827 58%, #07090e);
}

.coret-community-card__avatar {
    position: absolute;
    top: 76px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border: 5px solid #101620;
    border-radius: 50%;
    color: #fff;
    background: #202938;
    transform: translateX(-50%);
}

.coret-community-card__avatar span {
    font-size: 38px;
}

.coret-community-card__body {
    display: grid;
    gap: 8px;
    padding: 54px 18px 16px;
    text-align: center;
}

.coret-community-card__body h2 {
    margin: 0;
    font-size: 20px;
}

.coret-community-card__body p {
    min-height: 42px;
    margin: 0;
    color: #aab2c1;
    font-size: 13px;
}

.coret-community-card__body span {
    color: #7f8da3;
    font-size: 12px;
    font-weight: 800;
}

.coret-community-card__join {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0 18px 18px;
    border-radius: 10px;
    color: #05070a;
    background: #93faaa;
    font-weight: 900;
}

.coret-stock-board {
    display: grid;
    gap: 18px;
    max-width: 1100px;
}

.coret-stock-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.coret-stock-summary article,
.coret-coin-packs button {
    padding: 16px;
    border: 1px solid rgba(124, 137, 158, .28);
    border-radius: 14px;
    color: #f4f6fb;
    background: rgba(16, 22, 31, .86);
}

.coret-stock-summary small,
.coret-coin-packs span {
    display: block;
    color: #9fa8b9;
}

.coret-stock-summary strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
}

.coret-stock-chart {
    min-height: 380px;
    padding: 18px;
    border: 1px solid rgba(124, 137, 158, .28);
    border-radius: 16px;
    background: radial-gradient(circle at 60% 10%, rgba(95,108,255,.18), transparent 32%), rgba(7, 10, 16, .94);
}

.coret-stock-chart svg {
    width: 100%;
    height: 360px;
}

.coret-stock-grid-line {
    fill: none;
    stroke: rgba(255,255,255,.08);
    stroke-width: 1;
}

.coret-stock-fill {
    fill: url(#coinFill);
}

.coret-stock-line {
    fill: none;
    stroke: url(#coinLine);
    stroke-width: 7;
    stroke-linecap: round;
    filter: drop-shadow(0 0 18px rgba(98,217,157,.42));
}

.coret-stock-points circle {
    fill: #ffd700;
    stroke: #05070a;
    stroke-width: 3;
}

.coret-coin-packs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 1100px;
    margin-top: 18px;
}

.coret-coin-packs button {
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.store-page-shell {
    min-height: 100%;
    padding: 22px;
    background:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 96px 96px,
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 96px 96px,
        #080a10;
}

.store-grid {
    grid-template-columns: repeat(auto-fill, minmax(204px, 1fr)) !important;
}

@media (max-width: 760px) {
    .coret-fixed-shell {
        grid-template-columns: 1fr !important;
        grid-template-rows: 40px minmax(0, 1fr) !important;
    }

    .coret-fixed-main {
        grid-row: 2 !important;
        padding-bottom: 76px !important; /* Spacing to prevent content overlap with bottom nav */
    }

    .coret-feed-screen {
        grid-template-columns: 1fr;
    }

    .coret-feed-side-column {
        position: static;
        max-height: none;
        order: 2;
    }

    /* Transform fixed sidebar to sleek horizontal bottom navigation bar */
    .coret-fixed-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 62px !important;
        grid-row: auto !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        border-right: none !important;
        border-top: 1px solid rgba(142, 232, 189, 0.18) !important;
        background: linear-gradient(180deg, rgba(12, 17, 24, 0.98), rgba(5, 8, 12, 0.98)) !important;
        backdrop-filter: blur(16px);
        padding: 0 12px !important;
        z-index: 8000 !important;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45) !important;
    }

    /* Make grid/flex parents behave as contents wrapper so flex order operates on items */
    .coret-nav-list,
    .coret-nav-footer {
        display: contents !important;
    }

    /* Hide logo, non-essential nav links, and logout form on mobile */
    .coret-nav-brand,
    .coret-nav-item[href*="coin"],
    .coret-nav-item[href*="settings"],
    .coret-fixed-nav form {
        display: none !important;
    }

    /* Standard tab buttons styling */
    .coret-nav-item {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        flex: 1 !important;
        min-height: 48px !important;
        border: none !important;
        background: transparent !important;
        color: #8792a3 !important;
        margin: 0 !important;
        padding: 4px 0 !important;
        transition: color 0.2s, transform 0.2s !important;
    }

    /* Assign explicit order to links for modern aesthetic */
    .coret-nav-item[href*="feed"] { order: 1 !important; }
    .coret-nav-item[href*="communities"], .coret-nav-item[href*="comunidades"] { order: 2 !important; }
    .coret-nav-post { order: 3 !important; }
    .coret-nav-item[href*="store"], .coret-nav-item[href*="loja"] { order: 4 !important; }
    .coret-nav-item[href*="notifications"], .coret-nav-item[href*="notificacoes"] { order: 5 !important; }
    .coret-nav-item[href*="inbox"], .coret-nav-item[href*="dms"], .coret-nav-item[href*="mensagens"] { order: 6 !important; }
    .coret-nav-user { order: 7 !important; }

    /* Hide label text in tabs */
    .coret-nav-item b,
    .coret-nav-user span {
        display: none !important;
    }

    /* Active tab color and pre-filled morphing icon effect */
    .coret-nav-item.is-active,
    .coret-nav-item:active {
        color: var(--coret-accent, #8ee6b7) !important;
        background: transparent !important;
        border: none !important;
        transform: none !important;
    }

    .coret-nav-item.is-active .material-symbols-outlined {
        font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24 !important;
    }

    /* Premium floating central create post button "+" */
    .coret-nav-post {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border: 1px solid rgba(142, 232, 189, 0.42) !important;
        background: linear-gradient(135deg, #8ee6b7, #5f6cff) !important;
        color: #07100c !important;
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        margin: 0 4px !important;
        box-shadow: 0 6px 16px rgba(95, 108, 255, 0.35) !important;
        transform: translateY(-8px) !important;
    }

    .coret-nav-post span {
        font-size: 24px !important;
        font-variation-settings: 'FILL' 1, 'wght' 700 !important;
    }

    /* User Profile circular tab */
    .coret-nav-user {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        flex: 1 !important;
    }

    .coret-nav-user img {
        width: 30px !important;
        height: 30px !important;
        border-radius: 50% !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
        transition: border-color 0.2s !important;
    }

    .coret-nav-user.is-active img,
    .coret-nav-user:active img {
        border-color: var(--coret-accent, #8ee6b7) !important;
    }

    /* Keep notification badges centered on mobile horizontal tabs */
    .coret-nav-item i {
        position: absolute !important;
        right: 50% !important;
        transform: translateX(14px) !important;
        top: 2px !important;
        min-width: 16px !important;
        height: 16px !important;
        font-size: 9px !important;
        padding: 0 4px !important;
    }

    .coret-section-head,
    .coret-stock-summary,
    .coret-coin-packs {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

/* =========================================================
   INVENTORY COSMETICS
   ========================================================= */

.avatar-frame-iron {
    border: 3px solid #8e9eab !important;
    box-shadow: 0 0 10px rgba(142, 158, 171, 0.8), inset 0 0 10px rgba(142, 158, 171, 0.8) !important;
    border-radius: 50%;
}

.profile-bg-ash {
    background: linear-gradient(to bottom, #2b2b2b, #111111) !important;
    background-size: cover !important;
}

/* =========================================================
   LIKE BUTTON ANIMATION
   ========================================================= */

.coret-like-btn .heart-icon {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
    will-change: transform;
}

.coret-like-btn.is-active .heart-icon {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    color: #ff3a5c !important;
    animation: heart-burst 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    text-shadow: 0 0 12px rgba(255, 58, 92, 0.6);
}

@keyframes heart-burst {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1.1); }
}

.coret-like-btn .heart-icon {
    font-size: 22px !important; /* padronizando tamanho */
    line-height: 1;
}

/* =========================================================
   ANIMATIONS & EFFECTS (HALO INSPIRED & UIVERSE)
   ========================================================= */

:root {
  --halo-primary: #5B6BFF;
  --halo-focus: rgba(91, 107, 255, 0.35);
  --halo-easing: linear(0, 0.06, 0.25, 0.55, 0.82 28%, 1.05 34%, 1.15 40%, 1.15 45%, 1.06 50%, 0.96 56%, 0.94 60%, 0.98 70%, 1.01 80%, 1);
  --halo-duration: 150ms;
  --halo-shadow-md: 0 8px 24px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.03) inset;
}

/* Global button and interactive element transitions */
button, input, select, a, .coret-post-card {
  transition: all var(--halo-duration) var(--halo-easing);
}

button:active, .coret-post-card__action:active {
  transform: scale(0.96);
}

/* ---------------- HEART ANIMATION ---------------- */
.heart-container {
  --heart-color: rgb(255, 58, 92); /* Adapted from Halo error/accent */
  position: relative;
  width: 24px; /* Reduced from 50px to match standard icon sizes */
  height: 24px;
  transition: .3s;
}

.heart-container .checkbox {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 20;
  cursor: pointer;
}

.heart-container .svg-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.heart-container .svg-outline,
.heart-container .svg-filled {
  fill: var(--heart-color);
  position: absolute;
  width: 100%;
  height: 100%;
}

.heart-container .svg-filled {
  animation: keyframes-svg-filled 1s;
  display: none;
}

.heart-container .svg-celebrate {
  position: absolute;
  width: 150%;
  height: 150%;
  animation: keyframes-svg-celebrate .5s;
  animation-fill-mode: forwards;
  display: none;
  stroke: var(--heart-color);
  fill: var(--heart-color);
  stroke-width: 2px;
}

.heart-container .checkbox:checked ~ .svg-container .svg-outline {
  display: none;
}

.heart-container .checkbox:checked ~ .svg-container .svg-filled {
  display: block;
}

.heart-container .checkbox:checked ~ .svg-container .svg-celebrate {
  display: block;
}

@keyframes keyframes-svg-filled {
  0% { transform: scale(0); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1); filter: brightness(1.5); }
}

@keyframes keyframes-svg-celebrate {
  0% { transform: scale(0); }
  50% { opacity: 1; filter: brightness(1.5); }
  100% { transform: scale(1.4); opacity: 0; display: none; }
}

/* =========================================================
   GENERIC COMPONENT ANIMATIONS & HOVER STATES (HALO SYSTEM)
   ========================================================= */

/* All coret buttons */
.coret-btn {
  position: relative;
  overflow: hidden;
  transition: all 150ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.coret-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 107, 255, 0.2);
  filter: brightness(1.1);
}

.coret-btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4) inset;
}

/* Post Cards */
.coret-post-card {
  transition: transform 200ms cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 200ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.coret-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.04) inset;
}

/* Inputs and Textareas */
input, textarea {
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

input:focus, textarea:focus {
  border-color: #5B6BFF !important;
  box-shadow: 0 0 0 3px rgba(91, 107, 255, 0.35) !important;
  transform: scale(1.01);
}

/* Tabs */
.coret-tab {
  transition: all 150ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.coret-tab:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.coret-tab:active {
  transform: scale(0.95);
}

/* General Link Hover */
a {
  transition: color 150ms ease, text-shadow 150ms ease;
}

a:hover {
  text-shadow: 0 0 8px currentColor;
}

/* From Uiverse.io by JohnnyCSilva - adapted for Coret Coin */
.coret-coin-3d {
  --coin-size: 200px;
  font-size: var(--coin-size);
  width: 0.1em;
  height: 1em;
  background: linear-gradient(#faa504, #141001);
  margin: auto;
  position: relative;
  animation: rotate_4001510 7s infinite linear;
  transform-style: preserve-3d;
}

.coret-coin-token {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: visible;
  perspective: 240px;
  vertical-align: middle;
}

.coret-coin-token .coret-coin-3d {
  --coin-size: 32px;
}

.coret-coin-3d .side,
.coret-coin-3d::before,
.coret-coin-3d::after {
  content: "";
  position: absolute;
  width: 1em;
  height: 1em;
  overflow: hidden;
  border-radius: 50%;
  right: -0.4em;
  text-align: center;
  line-height: 1;
  transform: rotateY(-90deg);
  backface-visibility: hidden;
}

.coret-coin-3d .tails,
.coret-coin-3d::after {
  left: -0.4em;
  transform: rotateY(90deg);
}

.coret-coin-3d::before,
.coret-coin-3d::after {
  background: linear-gradient(#faa504, #141001);
  backface-visibility: hidden;
  transform: rotateY(90deg);
}

.coret-coin-3d::after {
  transform: rotateY(-90deg);
}

.coret-coin-3d .svg_back {
  transform: scaleX(-1);
}

@keyframes rotate_4001510 {
  100% {
    transform: rotateY(360deg);
  }
}

/* =========================================================
   1. VIEW TRANSITIONS API
   ========================================================= */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 300ms;
  animation-timing-function: var(--halo-easing);
}

/* =========================================================
   2. SCROLL-DRIVEN ANIMATIONS
   ========================================================= */
@keyframes scroll-reveal {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@supports (animation-timeline: view()) {
  .coret-post-card {
    animation: scroll-reveal linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 15%;
  }
}

/* =========================================================
   4. STAGGERED ENTRANCE (CASCADE)
   ========================================================= */
.stagger-enter {
  opacity: 0;
  animation: stagger-fade-up 400ms var(--halo-easing) forwards;
  /* Delay is calculated based on CSS custom property injected in HTML */
  animation-delay: calc(var(--stagger-idx, 0) * 40ms);
}

@keyframes stagger-fade-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   5. SKELETON LOADING SHIMMER
   ========================================================= */
.feed-skeleton-card {
  width: 100%;
  max-width: 720px;
  min-height: 200px;
  background: var(--surface, #14151C);
  border: 1px solid var(--border, #2A2D38);
  border-radius: 14px;
  padding: 16px;
  margin: 0 auto 14px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

/* Shimmer Light Beam */
.feed-skeleton-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  height: 100%;
  width: 150%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
  transform: skewX(-20deg);
}

@keyframes shimmer {
  100% { left: 150%; }
}

.card_load {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.card_load_extreme_title {
  width: 40%;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  margin-top: -50px;
  margin-left: 60px;
}

.card_load_extreme_descripion {
  width: 25%;
  height: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  margin-left: 60px;
  margin-top: 6px;
  margin-bottom: 30px;
}

/* Simulated text blocks */
.feed-skeleton-card::before {
  content: "";
  display: block;
  width: 100%;
  height: 60px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

/* =========================================================
   6. AUTO-SCROLLING BADGES
   ========================================================= */
.coret-badges-container {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  z-index: 10;
  pointer-events: none;
}

.coret-badges-scroller {
  display: flex;
  flex-direction: column;
  animation: badge-scroll var(--badge-scroll-duration, 5s) linear infinite;
}

.coret-badge-item {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coret-badge-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.coret-badge-item .material-symbols-outlined {
  font-size: 24px;
  color: var(--gold-500, #ffb800);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

@keyframes badge-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(calc(-100% + 32px)); }
}

/* From Uiverse.io by andrew-demchenk0 - Adapted for Coret Like Button */
.uiverse-like-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.uiverse-like-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.uiverse-like-container svg {
  position: relative;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  transition: all 0.3s;
  fill: #666;
}

.uiverse-like-container svg:hover {
  transform: scale(1.1) rotate(-10deg);
}

.uiverse-like-container input:checked ~ svg {
  fill: #FF3A5C; /* Coret heart color instead of #2196F3 */
}

/* =========================================================
   STOREFRONT REDESIGN
   ========================================================= */
.store-page-shell,
.coin-purchase-page {
    --store-cyan: #36d7e8;
    --store-green: #2be08c;
    --store-gold: #f5d547;
    --store-ink: #070a0f;
    --store-panel: rgba(12, 18, 25, 0.86);
    --store-panel-strong: rgba(17, 25, 34, 0.96);
    gap: 18px;
    min-height: 100%;
    padding: 22px;
    background:
        linear-gradient(rgba(54, 215, 232, .035) 1px, transparent 1px) 0 0 / 88px 88px,
        linear-gradient(90deg, rgba(54, 215, 232, .028) 1px, transparent 1px) 0 0 / 88px 88px,
        radial-gradient(circle at 82% 0%, rgba(43, 224, 140, .09), transparent 34%),
        #070a0f;
}

.storefront-hero,
.coin-purchase-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 18px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(54, 215, 232, .18);
    border-radius: 12px;
    padding: 22px;
    background:
        linear-gradient(120deg, rgba(14, 22, 31, .98), rgba(8, 12, 18, .96) 58%, rgba(19, 24, 22, .98)),
        linear-gradient(90deg, rgba(54, 215, 232, .06), rgba(245, 213, 71, .06));
    box-shadow: 0 20px 54px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.storefront-hero--app {
    grid-template-columns: 1fr;
    padding: 18px;
}

.storefront-hero__copy {
    display: grid;
    align-content: center;
    gap: 14px;
}

.storefront-hero h1,
.coin-purchase-hero h1 {
    margin: 0;
    max-width: 720px;
    color: #f7fbff;
    font-size: clamp(2.1rem, 4vw, 4.4rem);
    line-height: .92;
    letter-spacing: 0;
}

.storefront-hero p,
.coin-purchase-hero p {
    max-width: 620px;
    margin: 0;
    color: #aab6c5;
    font-size: 1rem;
    line-height: 1.6;
}

.storefront-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.storefront-button,
.storefront-tools button,
.coin-pack-tile button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid rgba(210, 225, 236, .16);
    border-radius: 8px;
    padding: 0 14px;
    color: #eaf2fa;
    background: rgba(255, 255, 255, .045);
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.storefront-button:hover,
.storefront-tools button:hover,
.coin-pack-tile button:hover {
    transform: translateY(-1px);
    border-color: rgba(54, 215, 232, .45);
}

.storefront-button--primary,
.storefront-tools button,
.coin-pack-tile button {
    border-color: transparent;
    color: #03120c;
    background: linear-gradient(135deg, var(--store-green), var(--store-cyan));
}

.storefront-wallet {
    display: grid;
    align-content: center;
    gap: 6px;
    min-height: 160px;
    border: 1px solid rgba(245, 213, 71, .25);
    border-radius: 10px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(245, 213, 71, .10), rgba(255, 255, 255, .035)),
        rgba(8, 12, 18, .62);
}

.storefront-wallet > .material-symbols-outlined {
    color: var(--store-gold);
    font-size: 30px;
}

.storefront-wallet small,
.storefront-wallet a {
    color: #aab6c5;
    font-size: .82rem;
    font-weight: 800;
}

.storefront-wallet strong {
    color: #fff8c7;
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    line-height: 1;
}

.storefront-wallet a {
    width: fit-content;
    color: var(--store-gold);
}

.storefront-discovery {
    display: grid;
    gap: 12px;
}

.storefront-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.storefront-categories::-webkit-scrollbar {
    display: none;
}

.storefront-categories a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 44px;
    border: 1px solid rgba(210, 225, 236, .12);
    border-radius: 8px;
    padding: 0 12px;
    color: #aab6c5;
    background: rgba(255, 255, 255, .035);
    font-weight: 850;
}

.storefront-categories a.is-active,
.storefront-categories a:hover {
    color: #effcff;
    border-color: rgba(54, 215, 232, .42);
    background: rgba(54, 215, 232, .09);
}

.storefront-tools {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 190px) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(210, 225, 236, .12);
    border-radius: 10px;
    padding: 10px;
    background: rgba(8, 12, 18, .72);
}

.storefront-tools label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid rgba(210, 225, 236, .12);
    border-radius: 8px;
    padding: 0 10px;
    background: rgba(255, 255, 255, .035);
}

.storefront-tools label span {
    color: var(--store-cyan);
}

.storefront-tools input,
.storefront-tools select {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(210, 225, 236, .12);
    border-radius: 8px;
    color: #edf4fb;
    background: rgba(255, 255, 255, .035);
    outline: none;
}

.storefront-tools input {
    min-height: 0;
    border: 0;
    background: transparent;
}

.storefront-tools select {
    padding: 0 10px;
}

.store-grid {
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)) !important;
    gap: 16px !important;
}

.store-product-card {
    --rarity: #7f8a99;
    --rarity-soft: rgba(127, 138, 153, .12);
    min-height: 350px;
    border-color: rgba(210, 225, 236, .14);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(17, 25, 34, .96), rgba(8, 12, 18, .96));
    box-shadow: 0 16px 44px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .035);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.store-product-card--uncommon {
    --rarity: #36d7e8;
    --rarity-soft: rgba(54, 215, 232, .13);
}

.store-product-card--rare {
    --rarity: #2be08c;
    --rarity-soft: rgba(43, 224, 140, .13);
}

.store-product-card--epic {
    --rarity: #fb5fb2;
    --rarity-soft: rgba(251, 95, 178, .14);
}

.store-product-card--legendary {
    --rarity: #f5d547;
    --rarity-soft: rgba(245, 213, 71, .16);
}

.store-product-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--rarity), transparent 42%);
    box-shadow: 0 20px 56px rgba(0, 0, 0, .36), 0 0 0 1px var(--rarity-soft);
}

.store-card__content {
    display: grid;
    grid-template-rows: 150px auto 1fr auto;
    gap: 12px;
    height: 100%;
    padding: 14px;
}

.store-card__image {
    width: 100%;
    height: 150px;
    border: 1px solid rgba(210, 225, 236, .12);
    border-radius: 8px;
    background:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(135deg, rgba(54, 215, 232, .10), rgba(245, 213, 71, .06)),
        #090e14;
}

.store-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.store-card__image .material-symbols-outlined {
    color: var(--rarity);
    font-size: 58px;
}

.store-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.store-card__badge,
.store-card__type {
    position: static;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 9px;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.store-card__badge {
    color: var(--rarity);
    border: 1px solid color-mix(in srgb, var(--rarity), transparent 48%);
    background: var(--rarity-soft);
}

.store-card__type {
    color: #aab6c5;
    border: 1px solid rgba(210, 225, 236, .12);
    background: rgba(255, 255, 255, .035);
}

.store-card__title {
    margin: 0;
    color: #f4f8fc;
    font-size: 1.05rem;
    line-height: 1.2;
}

.store-card__description {
    margin: 6px 0 0;
    color: #9eacba;
    font-size: .84rem;
    line-height: 1.45;
}

.store-card__footer {
    display: grid;
    gap: 10px;
    margin: 0;
}

.store-card__price {
    margin: 0;
    color: #fff8c7;
    font-size: 1.08rem;
    font-weight: 950;
}

.store-card__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    position: relative;
}

.store-card__actions form {
    margin: 0;
}

.store-card__buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    padding: 0 12px;
    color: #03120c;
    background: linear-gradient(135deg, var(--store-green), var(--store-cyan));
    font-size: .9rem;
    font-weight: 900;
    cursor: pointer;
}

.store-card__buy--owned,
.store-card__buy--disabled {
    color: #dce7ef;
    border: 1px solid rgba(210, 225, 236, .14);
    background: rgba(255, 255, 255, .055);
    cursor: default;
}

.store-card__buy--owned {
    color: #bff9dc;
    border-color: rgba(43, 224, 140, .28);
}

.store-card__gift {
    position: static;
}

.store-card__gift summary {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(210, 225, 236, .14);
    border-radius: 8px;
    color: #eaf2fa;
    background: rgba(255, 255, 255, .045);
    cursor: pointer;
    list-style: none;
}

.store-card__gift summary::-webkit-details-marker {
    display: none;
}

.store-card__gift[open] summary {
    color: var(--store-gold);
    border-color: rgba(245, 213, 71, .34);
}

.store-card__gift form {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 48px;
    z-index: 12;
    display: grid;
    gap: 8px;
    width: 250px;
    max-width: calc(100vw - 130px);
    border: 1px solid rgba(210, 225, 236, .18);
    border-radius: 10px;
    padding: 12px;
    background: rgba(8, 12, 18, .98);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .44);
}

.store-card__gift label {
    display: grid;
    gap: 6px;
    color: #aab6c5;
    font-size: .78rem;
    font-weight: 850;
}

.store-card__gift input {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(210, 225, 236, .14);
    border-radius: 8px;
    padding: 0 10px;
    color: #edf4fb;
    background: rgba(255, 255, 255, .04);
}

.store-card__gift form button {
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    color: #03120c;
    background: var(--store-gold);
    font-weight: 900;
    cursor: pointer;
}

.gift-user-results {
    display: grid;
    gap: 5px;
}

.gift-user-option {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 38px;
    border: 1px solid rgba(210, 225, 236, .12);
    border-radius: 8px;
    padding: 5px 7px;
    color: #eaf2fa;
    background: rgba(255, 255, 255, .04);
    text-align: left;
    cursor: pointer;
}

.gift-user-option img,
.gift-user-option > .material-symbols-outlined {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
}

.gift-user-option > .material-symbols-outlined {
    display: grid;
    place-items: center;
    color: var(--store-cyan);
}

.gift-user-option span {
    display: grid;
    min-width: 0;
}

.gift-user-option b,
.gift-user-option small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gift-user-option small,
.gift-user-empty {
    color: #9eacba;
    font-size: .74rem;
}

.gift-user-empty {
    margin: 0;
}

.store-product-card--legendary .store-card__shine {
    opacity: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(245, 213, 71, .32) 50%, transparent 65%);
    background-size: 220% 100%;
}

.store-product-card--legendary:hover .store-card__shine {
    opacity: 1;
    animation: shine 2.8s linear infinite;
}

.coin-purchase-page {
    padding: 22px;
}

.coin-pack-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.coin-pack-tile,
.coin-earn-panel,
.coin-recent-panel {
    border: 1px solid rgba(210, 225, 236, .14);
    border-radius: 12px;
    background: var(--store-panel);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .28);
}

.coin-pack-tile {
    position: relative;
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 18px;
}

.coin-pack-tile.is-primary {
    border-color: rgba(43, 224, 140, .38);
    background: linear-gradient(180deg, rgba(43, 224, 140, .10), rgba(12, 18, 25, .92));
}

.coin-pack-tile > .material-symbols-outlined {
    color: var(--store-gold);
    font-size: 38px;
}

.coin-pack-tile h2,
.coin-earn-panel h2,
.coin-recent-panel h2 {
    margin: 0;
    color: #f4f8fc;
}

.coin-pack-tile p,
.coin-earn-panel p {
    margin: 0;
    color: #aab6c5;
}

.coin-pack-tag {
    width: fit-content;
    min-height: 26px;
    border-radius: 999px;
    padding: 4px 9px;
    color: #03120c;
    background: var(--store-green);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.coin-earn-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 18px;
}

.coin-recent-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.coin-recent-list {
    display: grid;
    gap: 8px;
}

.coin-recent-list div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    border-top: 1px solid rgba(210, 225, 236, .10);
    color: #dce7ef;
}

.coin-recent-list strong.is-positive {
    color: var(--store-green);
}

.coin-recent-list strong.is-negative {
    color: #ff7a8c;
}

@media (max-width: 860px) {
    .storefront-hero,
    .coin-purchase-hero,
    .coin-earn-panel {
        grid-template-columns: 1fr;
    }

    .storefront-tools {
        grid-template-columns: 1fr;
    }

    .coin-pack-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .store-page-shell,
    .coin-purchase-page {
        padding: 14px;
    }

    .storefront-hero,
    .coin-purchase-hero {
        padding: 16px;
    }

    .store-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   INVENTORY COLLECTION
   ========================================================= */
.inventory-page-shell .inventory-grid {
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
    gap: 16px;
}

.store-page-shell .coret-tabs {
    align-items: center;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    padding: 6px;
    border-radius: 999px;
}

.store-page-shell .coret-tab {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
}

.inventory-categories {
    align-items: center;
    height: 56px;
    max-height: 56px;
}

.inventory-categories a {
    height: 44px;
    min-height: 44px;
}

.inventory-collection-hero {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    min-height: 190px;
    border: 1px solid rgba(54, 215, 232, .18);
    border-radius: 12px;
    padding: 22px;
    background:
        radial-gradient(circle at 88% 0%, rgba(43, 224, 140, .12), transparent 30%),
        linear-gradient(120deg, rgba(14, 22, 31, .98), rgba(8, 12, 18, .96));
    box-shadow: 0 20px 54px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.inventory-collection-hero--app {
    grid-template-columns: 1fr;
    padding: 18px;
}

.inventory-collection-hero__copy {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 14px;
}

.inventory-collection-hero h1 {
    margin: 0;
    color: #f7fbff;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: .94;
    letter-spacing: 0;
}

.inventory-collection-hero p {
    max-width: 620px;
    margin: 0;
    color: #aab6c5;
    line-height: 1.6;
}

.inventory-collection-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.inventory-collection-stats article {
    display: grid;
    align-content: center;
    gap: 7px;
    min-height: 150px;
    border: 1px solid rgba(210, 225, 236, .13);
    border-radius: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, .035);
}

.inventory-collection-stats .material-symbols-outlined {
    color: var(--store-cyan);
}

.inventory-collection-stats small {
    color: #aab6c5;
    font-size: .78rem;
    font-weight: 850;
}

.inventory-collection-stats strong {
    color: #f4f8fc;
    font-size: clamp(1.35rem, 2.4vw, 2.2rem);
    line-height: 1;
}

.inventory-card {
    --rarity: #7f8a99;
    --rarity-soft: rgba(127, 138, 153, .12);
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 150px auto 1fr auto;
    gap: 12px;
    min-height: 350px;
    border: 1px solid rgba(210, 225, 236, .14);
    border-radius: 10px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(17, 25, 34, .96), rgba(8, 12, 18, .96));
    box-shadow: 0 16px 44px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.inventory-card--uncommon {
    --rarity: #36d7e8;
    --rarity-soft: rgba(54, 215, 232, .13);
}

.inventory-card--rare {
    --rarity: #2be08c;
    --rarity-soft: rgba(43, 224, 140, .13);
}

.inventory-card--epic {
    --rarity: #fb5fb2;
    --rarity-soft: rgba(251, 95, 178, .14);
}

.inventory-card--legendary {
    --rarity: #f5d547;
    --rarity-soft: rgba(245, 213, 71, .16);
}

.inventory-card.is-equipped {
    border-color: rgba(43, 224, 140, .52);
    box-shadow: 0 20px 58px rgba(43, 224, 140, .08), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.inventory-in-use-ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 10px;
    color: #03120c;
    background: linear-gradient(135deg, var(--store-green), var(--store-cyan));
    font-size: .72rem;
    font-weight: 950;
}

.inventory-card .item-preview {
    display: grid;
    place-items: center;
    width: 100%;
    height: 150px;
    min-height: 150px;
    border: 1px solid rgba(210, 225, 236, .12);
    border-radius: 8px;
    background:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 26px 26px,
        linear-gradient(135deg, rgba(54, 215, 232, .10), rgba(245, 213, 71, .06)),
        #090e14;
}

.inventory-card .item-preview:hover {
    border-color: color-mix(in srgb, var(--rarity), transparent 40%);
}

.inventory-avatar-preview,
.inventory-profile-preview,
.inventory-storage-preview,
.inventory-badge-preview {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.inventory-avatar-preview__face {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 38%, #9ee9d0 0 10px, transparent 11px),
        radial-gradient(circle at 50% 56%, #22313b 0 24px, transparent 25px),
        linear-gradient(135deg, #1a2835, #0d1218);
    border: 2px solid rgba(210, 225, 236, .18);
}

.inventory-avatar-preview__frame {
    position: absolute;
    width: 112px;
    height: 112px;
    object-fit: contain;
    pointer-events: none;
}

.inventory-profile-preview {
    align-content: end;
    overflow: hidden;
    border-radius: 8px;
    padding: 12px;
}

.inventory-profile-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .82;
}

.inventory-profile-preview span,
.inventory-profile-preview b {
    position: relative;
    z-index: 1;
    display: block;
    width: 84%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
}

.inventory-profile-preview b {
    width: 58%;
    height: 9px;
    margin-top: 8px;
    opacity: .72;
}

.inventory-badge-preview .material-symbols-outlined,
.inventory-storage-preview .material-symbols-outlined,
.inventory-card .item-preview > .material-symbols-outlined {
    color: var(--rarity);
    font-size: 54px;
}

.inventory-storage-preview {
    align-content: center;
    gap: 12px;
}

.inventory-storage-preview i {
    display: block;
    width: 82%;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.inventory-storage-preview i b {
    display: block;
    width: 62%;
    height: 100%;
    background: linear-gradient(90deg, var(--store-green), var(--store-cyan));
}

.inventory-storage-preview small {
    color: #aab6c5;
    font-weight: 850;
}

.inventory-card .item-body {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 0;
}

.inventory-card__head,
.inventory-meta-row,
.inventory-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inventory-card__head,
.inventory-meta-row {
    justify-content: space-between;
}

.inventory-rarity {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 9px;
    color: var(--rarity);
    border: 1px solid color-mix(in srgb, var(--rarity), transparent 48%);
    background: var(--rarity-soft);
    font-size: .68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.inventory-detail-button,
.inventory-icon-action {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(210, 225, 236, .14);
    border-radius: 8px;
    color: #dce7ef;
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
}

.inventory-card h2 {
    margin: 0;
    color: #f4f8fc;
    font-size: 1.08rem;
    line-height: 1.2;
}

.inventory-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
    color: #9eacba;
    font-size: .86rem;
    line-height: 1.45;
}

.inventory-meta-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border: 1px solid rgba(210, 225, 236, .12);
    border-radius: 999px;
    padding: 0 9px;
    color: #aab6c5;
    background: rgba(255, 255, 255, .035);
    font-size: .72rem;
    font-weight: 850;
}

.inventory-actions {
    margin-top: auto;
}

.inventory-actions form {
    flex: 1;
    margin: 0;
}

.inventory-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    padding: 0 12px;
    color: #03120c;
    background: linear-gradient(135deg, var(--store-green), var(--store-cyan));
    font-weight: 900;
    cursor: pointer;
}

.inventory-action--muted {
    color: #dce7ef;
    border: 1px solid rgba(210, 225, 236, .14);
    background: rgba(255, 255, 255, .055);
}

.inventory-detail-modal {
    width: min(820px, calc(100vw - 28px));
    border: 0;
    padding: 0;
    color: #f4f8fc;
    background: transparent;
}

.inventory-detail-modal::backdrop {
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(8px);
}

.inventory-detail-modal__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, .82fr) minmax(0, 1fr);
    gap: 18px;
    border: 1px solid rgba(210, 225, 236, .16);
    border-radius: 14px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(17, 25, 34, .98), rgba(8, 12, 18, .98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, .52);
}

.inventory-detail-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
}

.inventory-detail-modal__close button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(210, 225, 236, .14);
    border-radius: 8px;
    color: #dce7ef;
    background: rgba(255, 255, 255, .045);
    cursor: pointer;
}

.inventory-detail-modal__preview {
    display: grid;
    place-items: center;
    min-height: 300px;
    border: 1px solid rgba(210, 225, 236, .12);
    border-radius: 10px;
    background: #090e14;
}

.inventory-detail-modal__preview img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.inventory-detail-modal__preview .material-symbols-outlined {
    color: var(--store-cyan);
    font-size: 72px;
}

.inventory-detail-modal__body {
    display: grid;
    align-content: start;
    gap: 12px;
    padding-right: 36px;
}

.inventory-detail-modal__body h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.inventory-detail-modal__body p {
    margin: 0;
    color: #aab6c5;
    line-height: 1.55;
}

.inventory-detail-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.inventory-detail-list div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px;
    min-height: 34px;
    align-items: center;
    border-top: 1px solid rgba(210, 225, 236, .10);
}

.inventory-detail-list dt {
    color: #7f8a99;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.inventory-detail-list dd {
    margin: 0;
    color: #dce7ef;
}

.inventory-use-note {
    border: 1px solid rgba(245, 213, 71, .24);
    border-radius: 8px;
    padding: 10px;
    color: #fff8c7 !important;
    background: rgba(245, 213, 71, .08);
}

@media (max-width: 900px) {
    .inventory-collection-hero,
    .inventory-detail-modal__panel {
        grid-template-columns: 1fr;
    }

    .inventory-collection-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .inventory-detail-modal__body {
        padding-right: 0;
    }
}

@media (max-width: 620px) {
    .inventory-page-shell .inventory-grid,
    .inventory-card {
        grid-template-columns: 1fr;
    }

    .inventory-card .item-preview {
        width: 100%;
        min-height: 180px;
    }

    .inventory-collection-stats {
        grid-template-columns: 1fr;
    }

    .inventory-detail-list div {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 8px 0;
    }
}
