/* My Football Editor - Account phase 1 refactor
   Shared by conta.html and en/account.html.
   Preserves the existing visual rules while removing duplicated inline CSS from both pages.
*/

:root{
      --bg:#04101a; --bg2:#071628; --panel:#0a1627; --line:rgba(255,255,255,.07);
      --text:#eef3f9; --muted:#9cb0c7; --accent:#22c55e; --accent-dark:#16a34a;
      --shadow:0 18px 42px rgba(0,0,0,.34); --sidebar-w:var(--mf-shell-sidebar-width,132px); --gap:18px; --top-h:88px;
    }
    
    *{box-sizing:border-box}
html,
body{width:100%;height:100%}
    body{
      margin:0; overflow:hidden; font-family:Arial, Helvetica, sans-serif; color:var(--text);
      background:
        radial-gradient(circle at 15% 12%, rgba(34,197,94,.08), transparent 22%),
        radial-gradient(circle at 86% 10%, rgba(59,130,246,.08), transparent 22%),
        linear-gradient(145deg, var(--bg) 0%, var(--bg2) 58%, #020814 100%);
    }
    
    button,
input{font:inherit}
    .app{ height:100%;     overflow:hidden;}
        

    
    

    
    
    
    
    

    

    
    
    
    .main{min-width:0;min-height:0;display:grid;grid-template-rows:var(--top-h) 1fr;gap:var(--gap);overflow:hidden}
    .topbar{border:1px solid var(--line); border-radius:30px; background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); box-shadow:var(--shadow); padding:0 24px; display:grid; grid-template-columns:1fr auto; align-items:center; gap:18px; overflow:hidden;}
    .title{margin:0; font-size:32px; line-height:1.02; font-weight:900; white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .top-pills{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end;}
    .pill{min-height:38px; padding:0 14px; border-radius:999px; border:1px solid rgba(255,255,255,.06); background:rgba(255,255,255,.03); display:inline-flex;align-items:center; font-size:13px;font-weight:700;color:var(--text);}
    .pill.accent{border-color:rgba(34,197,94,.18); background:rgba(22,163,74,.10);}

    .content{min-height:0;display:grid;grid-template-rows:auto 1fr;gap:18px;overflow:hidden}
    .card,
.panel{min-height:0; border-radius:28px; border:1px solid var(--line); background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); box-shadow:var(--shadow); overflow:hidden;}
    .hero{padding:22px 24px; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr); gap:18px; align-items:stretch;}
    .hero-title{margin:0 0 10px; font-size:28px; line-height:1.05; font-weight:900}
    .hero-copy{font-size:14px; line-height:1.55; color:var(--muted); max-width:720px}
    .metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .metric{min-height:92px; border-radius:18px; border:1px solid rgba(255,255,255,.05); background:rgba(255,255,255,.03); padding:14px;}
    .metric-k{font-size:11px; color:#8de5ad; text-transform:uppercase; letter-spacing:.08em; font-weight:800;}
    .metric-v{margin-top:10px; font-size:20px; line-height:1.1; font-weight:900; overflow:hidden; text-overflow:ellipsis}
    .metric-m{margin-top:6px; font-size:12px; line-height:1.4; color:var(--muted); overflow:hidden; text-overflow:ellipsis}

    .workspace{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;overflow:hidden}
    .panel{padding:18px 20px; display:flex; flex-direction:column; gap:16px;}
    .panel-scroll{min-height:0;overflow:auto;display:grid;gap:16px;padding-right:4px}
    .panel-scroll::-webkit-scrollbar{width:10px}
    .panel-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.10);border-radius:999px}
    .section-title{margin:0;font-size:22px;font-weight:900}
    .section-copy{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.45}
    .block{border:1px solid rgba(255,255,255,.06); background:rgba(255,255,255,.03); border-radius:20px; padding:16px; display:grid; gap:14px;}
    .block-title{font-size:16px;font-weight:900;margin:0}
    .label{font-size:12px;font-weight:800;color:#8de5ad}
    .input{height:42px; border-radius:14px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.04); color:var(--text); padding:0 14px; width:100%;}
    .btn{min-height:42px; padding:0 16px; border-radius:14px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.04); color:var(--text); display:inline-flex; align-items:center; justify-content:center; font-size:13px; font-weight:800; cursor:pointer;}
    .btn.primary{background:linear-gradient(180deg, rgba(34,197,94,.24), rgba(22,163,74,.16)); border-color:rgba(34,197,94,.26);}
    @media (hover:hover){
      .btn{
        transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
      }
      .btn:hover{
        transform:translateY(-1px);
        border-color:rgba(255,255,255,.14);
        box-shadow:0 12px 24px rgba(0,0,0,.18);
        filter:brightness(1.06);
      }
      .btn.primary:hover{
        box-shadow:0 16px 28px rgba(34,197,94,.26);
        filter:brightness(1.08);
      }
      
      
      
    }

    .locked-feature{position:relative;}
    .locked-feature::after{
      content:"PRO";
      position:absolute;
      top:8px;
      right:8px;
      min-width:28px;
      height:18px;
      padding:0 7px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      border-radius:999px;
      background:linear-gradient(135deg,#22c55e,#16a34a);
      border:1px solid rgba(255,255,255,.16);
      color:#fff;
      font-size:9px;
      line-height:1;
      letter-spacing:.08em;
      font-weight:900;
      box-shadow:0 8px 18px rgba(34,197,94,.22);
      pointer-events:none;
    }
    .nav-item.locked-feature{overflow:visible;isolation:isolate;}
    .nav-item.locked-feature::after{top:-6px;right:-6px;z-index:5;}
    .nav-btn.locked-feature{overflow:visible;isolation:isolate;}
    .nav-btn.locked-feature::after{top:-6px;right:-6px;z-index:5;}
    .btn.locked-feature{padding-right:48px;}
    .btn.locked-feature::after{top:50%;right:12px;transform:translateY(-50%);}

    .btn-row{display:flex;gap:10px;flex-wrap:wrap}
    .helper{font-size:12px;color:var(--muted);line-height:1.5}
    .status{font-size:13px;line-height:1.5;color:var(--muted)}
    .ok{color:#9ae6b4}
    .warn{color:#fbbf24}

  
/* --- mobile account optimization --- */
@media (max-width: 900px){
  html,
body{height:auto;min-height:100%;}
  body{overflow:auto !important;-webkit-overflow-scrolling:touch;}
  .page,
.container,
.main{
    height:auto !important;
    min-height:100vh;
    display:block !important;
    padding:10px !important;
    overflow:visible !important;
  }.app{
    height:auto !important;
    min-height:100vh;
    
    
    overflow:visible !important;
  }
  
  .topbar,
.header{
    padding:16px !important;
    border-radius:22px !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
    align-items:start !important;
    overflow:visible !important;
  }
  .content,
.content-grid,
.account-grid,
.settings-grid,
.cards-grid{
    display:block !important;
    grid-template-columns:1fr !important;
    overflow:visible !important;
    min-height:0 !important;
    height:auto !important;
  }
  .content > * + *,
.content-grid > * + *,
.account-grid > * + *,
.settings-grid > * + *,
.cards-grid > * + *{
    margin-top:16px !important;
  }
  .card,
.panel,
.box{
    border-radius:22px !important;
    padding:16px !important;
    overflow:visible !important;
  }
  .form-grid,
.info-grid,
.data-grid{
    grid-template-columns:1fr !important;
  }
  .row,
.actions,
.toolbar{
    width:100% !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
  .btn,
button,
input,
select,
textarea{
    width:100% !important;
  }
  input,
select,
textarea{
    font-size:16px !important;
  }
}
@media (max-width: 640px){
  .page,
.container,
.main{padding:8px !important;}
  .topbar,
.header{padding:14px !important;border-radius:20px !important;}
  .card,
.panel,
.box{padding:14px !important;}
}



/* --- mobile navigation aligned with Tactical Animations --- */

@media(max-width:760px){
  html,
body{width:100%;max-width:100%;height:auto;min-height:100%;overflow-x:hidden!important;overflow-y:auto!important}
  body{min-height:100svh}
  .app{
    
    
    
    
    height:auto!important;
    min-height:100svh!important;
    overflow:visible!important;
    
  }
  
  
  
  
  
  
  
  
  
  
  .nav-icon-field{width:24px!important;height:16px!important}
  
  .main,
.content,
.workspace,
.editor-grid,
.editor-host,
.editor-scroll,
.preview-panel,
.list,
.panel,
.card,
.hero,
.topbar{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .main{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
    display:grid!important;
    gap:10px!important;
  }
  .content,
.workspace,
.editor-grid,
.editor-host,
.editor-scroll,
.preview-panel,
.list{height:auto!important;min-height:0!important;overflow:visible!important}
  .hero,
.topbar{grid-template-columns:1fr!important;padding:12px!important;border-radius:22px!important;gap:12px!important}
  .hero-actions,
.toolbar,
.savebar,
.row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important}
  .hero-actions .btn,
.toolbar .btn,
.savebar .btn,
.row .btn{width:100%!important;min-height:38px!important;font-size:12px!important}
  
}

/* ---- source block separator ---- */

.btn,
button,
.nav-btn,
.icon-btn,
.export-trigger-inline,
.export-option-inline{
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease, background .18s ease, color .18s ease;
}
.btn:hover,
button:hover,
.nav-btn:hover,
.icon-btn:hover,
.export-trigger-inline:hover,
.export-option-inline:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.14) !important;
  box-shadow:0 12px 24px rgba(0,0,0,.18);
  filter:brightness(1.06);
}
.btn.primary:hover,
.btn.pri:hover,
button.primary:hover,
button.pri:hover{
  box-shadow:0 16px 28px rgba(34,197,94,.26);
  filter:brightness(1.08);
}



/* ---- source block separator ---- */

body.is-app-loading{overflow:hidden;}
  
  
  .app-loading-card{
    width:min(430px, calc(100vw - 32px));
    padding:28px 24px 24px;
    border-radius:28px;
    border:1px solid rgba(255,255,255,.08);
    background:
      radial-gradient(circle at top, rgba(34,197,94,.16), transparent 36%),
      linear-gradient(180deg, rgba(15,23,42,.96), rgba(2,6,23,.98));
    box-shadow:0 30px 80px rgba(0,0,0,.44);
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  .app-loading-logo-wrap{
    width:84px;
    height:84px;
    margin:0 auto 16px;
    padding:10px;
    border-radius:24px;
    background:linear-gradient(135deg, rgba(34,197,94,.18), rgba(21,128,61,.22));
    border:1px solid rgba(34,197,94,.24);
    box-shadow:0 16px 34px rgba(34,197,94,.18);
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .app-loading-logo{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
    border-radius:18px;
  }
  .app-loading-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:30px;
    padding:0 12px;
    margin-bottom:14px;
    border-radius:999px;
    border:1px solid rgba(34,197,94,.22);
    background:rgba(34,197,94,.10);
    color:#bbf7d0;
    font-size:11px;
    font-weight:800;
    letter-spacing:.16em;
    text-transform:uppercase;
    max-width:100%;
    text-align:center;
    line-height:1.2;
    white-space:normal;
  }
  .app-loading-title{
    margin:0;
    width:100%;
    max-width:100%;
    text-align:center;
    font-size:clamp(24px, 3vw, 28px);
    line-height:1.05;
    font-weight:900;
    color:#f8fafc;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:clip;
  }
  .app-loading-copy{
    margin:10px 0 0;
    width:100%;
    text-align:center;
    color:#cbd5e1;
    font-size:14px;
    line-height:1.55;
    overflow-wrap:anywhere;
  }
  .app-loading-progress-wrap{
    width:100%;
    margin-top:22px;
    display:grid;
    gap:12px;
  }
  .app-loading-progress-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    text-align:left;
  }
  .app-loading-status{
    min-width:0;
    color:#e2e8f0;
    font-size:13px;
    font-weight:700;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .app-loading-percent{
    color:#86efac;
    font-size:13px;
    font-weight:900;
    letter-spacing:.04em;
  }
  .app-loading-bar{
    position:relative;
    height:14px;
    overflow:hidden;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.07);
    box-shadow:inset 0 1px 2px rgba(0,0,0,.22);
  }
  .app-loading-bar-fill{
    position:absolute;
    inset:0 auto 0 0;
    width:0%;
    border-radius:inherit;
    background:linear-gradient(90deg, #22c55e 0%, #4ade80 55%, #86efac 100%);
    box-shadow:0 0 24px rgba(34,197,94,.28);
    transition:width .3s ease;
    overflow:hidden;
  }
  .app-loading-bar-fill::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,.26) 45%, transparent 100%);
    transform:translateX(-100%);
    animation:appLoadingShine 1.3s linear infinite;
  }
  .app-loading-foot{
    width:100%;
    margin-top:14px;
    text-align:center;
    color:#94a3b8;
    font-size:12px;
    overflow-wrap:anywhere;
  }
  @keyframes appLoadingShine{
    to{ transform:translateX(100%); }
  }
  @media (max-width: 640px){
    .app-loading-card{
      padding:24px 18px 20px;
      border-radius:24px;
    }
    .app-loading-logo-wrap{
      width:74px;
      height:74px;
      border-radius:22px;
    }
    .app-loading-title{
      font-size:22px;
    }
  }

/* ---- source block separator ---- */

:root{
    --bg:#04101a;
    --bg2:#071628;
    --panel:#0a1627;
    --panel-soft:rgba(255,255,255,.03);
    --line:rgba(255,255,255,.07);
    --text:#eef3f9;
    --muted:#9cb0c7;
    --accent:#22c55e;
    --accent-dark:#16a34a;
    --shadow:0 18px 42px rgba(0,0,0,.34);
    --radius-xl:28px;
    --radius-lg:22px;
    --radius-md:18px;
    --sidebar-w:var(--mf-shell-sidebar-width,132px);
    --gap:18px;
    --top-h:88px;
  }
  body{background:radial-gradient(circle at 15% 12%, rgba(34,197,94,.08), transparent 22%), radial-gradient(circle at 86% 10%, rgba(59,130,246,.08), transparent 22%), linear-gradient(145deg, var(--bg) 0%, var(--bg2) 58%, #020814 100%) !important;}
  
  
  
  
  .nav-icon-field{width:28px;height:18px;display:block;background-repeat:no-repeat;background-position:center;background-size:contain;background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Crect x='2' y='2' width='60' height='36' rx='8' fill='none' stroke='%23bff4ce' stroke-width='3'/%3E%3Cpath d='M32 2v36M2 20h60' stroke='%23bff4ce' stroke-width='3'/%3E%3Ccircle cx='32' cy='20' r='6' fill='none' stroke='%23bff4ce' stroke-width='3'/%3E%3Cpath d='M2 12h9v16H2M53 12h9v16h-9' stroke='%23bff4ce' stroke-width='3' fill='none'/%3E%3C/svg%3E");}

/* ---- source block separator ---- */

/* My Football Editor - global theme layer */
:root{
  color-scheme:dark;
  --mfe-surface-plain:rgba(255,255,255,.03);
  --mfe-surface-soft:rgba(255,255,255,.04);
  --mfe-card-bg:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  --mfe-card-bg-strong:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  --mfe-input-bg:rgba(255,255,255,.04);
  --mfe-input-border:rgba(255,255,255,.09);
  --mfe-accent-rgb:34,197,94;
  --mfe-accent-bg:rgba(var(--mfe-accent-rgb),.12);
  --mfe-accent-bg-strong:rgba(var(--mfe-accent-rgb),.22);
  --mfe-accent-border:rgba(var(--mfe-accent-rgb),.26);
  --mfe-accent-text:#d8ffe6;
  --mfe-danger:#ef4444;
  --mfe-warning:#f59e0b;
  --mfe-success:#22c55e;
  --mfe-scroll-track:rgba(255,255,255,.04);
  --mfe-scroll-thumb:rgba(var(--mfe-accent-rgb),.42);
  --mfe-scroll-thumb-hover:rgba(var(--mfe-accent-rgb),.62);
}

html[data-mfe-theme="gray"]{
  color-scheme:dark;
  --bg:#111315;
  --bg2:#1d2024;
  --panel:#171a1f;
  --line:rgba(255,255,255,.09);
  --text:#f3f4f6;
  --muted:#a8b0bb;
  --accent:#d1d5db;
  --accent-dark:#9ca3af;
  --accent-blue:#cbd5e1;
  --shadow:0 18px 42px rgba(0,0,0,.38);
  --mfe-surface-plain:rgba(255,255,255,.035);
  --mfe-surface-soft:rgba(255,255,255,.05);
  --mfe-card-bg:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  --mfe-card-bg-strong:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  --mfe-input-bg:rgba(255,255,255,.05);
  --mfe-input-border:rgba(255,255,255,.11);
  --mfe-accent-rgb:209,213,219;
  --mfe-accent-bg:rgba(209,213,219,.10);
  --mfe-accent-bg-strong:rgba(209,213,219,.18);
  --mfe-accent-border:rgba(209,213,219,.26);
  --mfe-accent-text:#f8fafc;
  --mfe-scroll-track:rgba(255,255,255,.04);
  --mfe-scroll-thumb:rgba(209,213,219,.32);
  --mfe-scroll-thumb-hover:rgba(209,213,219,.50);
}



html[data-mfe-theme="gray"] body{
  background:radial-gradient(circle at 15% 12%, rgba(209,213,219,.08), transparent 24%),radial-gradient(circle at 86% 10%, rgba(148,163,184,.08), transparent 24%),linear-gradient(145deg, var(--bg) 0%, var(--bg2) 58%, #090a0c 100%)!important;
}






























@media(max-width:900px){.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.theme-custom-controls{grid-template-columns:1fr;}.theme-option{min-height:104px;}}
@media(max-width:520px){.theme-grid{grid-template-columns:1fr;}}

/* ---- source block separator ---- */

/* Theme-aware progress bars, export modals and Dashboard daily report refinements */



































/* ---- source block separator ---- */




/* ---- source block separator ---- */

/* My Football Editor - complete theme accent correction */

html[data-mfe-theme="gray"]{
  color-scheme:light;
  --bg:#f3f4f6;
  --bg2:#e5e7eb;
  --panel:#ffffff;
  --line:rgba(17,24,39,.14);
  --text:#111827;
  --muted:#4b5563;
  --accent:#111827;
  --accent-dark:#000000;
  --accent-blue:#374151;
  --shadow:0 18px 42px rgba(17,24,39,.13);
  --mfe-surface-plain:rgba(255,255,255,.92);
  --mfe-surface-soft:rgba(255,255,255,.96);
  --mfe-card-bg:linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,244,246,.94));
  --mfe-card-bg-strong:linear-gradient(180deg, rgba(255,255,255,1), rgba(229,231,235,.96));
  --mfe-input-bg:rgba(255,255,255,.96);
  --mfe-input-border:rgba(17,24,39,.16);
  --mfe-accent-rgb:17,24,39;
  --mfe-accent-bg:rgba(17,24,39,.08);
  --mfe-accent-bg-strong:rgba(17,24,39,.14);
  --mfe-accent-border:rgba(17,24,39,.26);
  --mfe-accent-text:#ffffff;
  --mfe-scroll-track:rgba(17,24,39,.06);
  --mfe-scroll-thumb:rgba(17,24,39,.36);
  --mfe-scroll-thumb-hover:rgba(17,24,39,.58);
}
html[data-mfe-theme="gray"] body{
  background:radial-gradient(circle at 15% 12%, rgba(17,24,39,.07), transparent 24%),radial-gradient(circle at 86% 10%, rgba(75,85,99,.08), transparent 24%),linear-gradient(145deg, var(--bg) 0%, var(--bg2) 58%, #d1d5db 100%)!important;
}


/* text accents: section labels, card labels, small titles */


/* active/primary UI */





/* selected cards and accent cards */


/* input and form focus */


/* progress bars, exports, uploads, sync and video editor timeline */




html[data-mfe-theme]:not([data-mfe-theme="base"]) .trim-selection{
  border-color:var(--mfe-accent-border)!important;
  background:linear-gradient(180deg,rgba(var(--mfe-accent-rgb),.24),rgba(var(--mfe-accent-rgb),.10))!important;
}




/* switches */


/* scrollbars: make every local scrollbar follow the selected theme */
html[data-mfe-theme],
html[data-mfe-theme] *{
  scrollbar-color:var(--mfe-scroll-thumb) var(--mfe-scroll-track)!important;
}
html[data-mfe-theme] *::-webkit-scrollbar,
html[data-mfe-theme]::-webkit-scrollbar{width:10px!important;height:10px!important;}
html[data-mfe-theme] *::-webkit-scrollbar-track,
html[data-mfe-theme]::-webkit-scrollbar-track{background:var(--mfe-scroll-track)!important;border-radius:999px!important;}
html[data-mfe-theme] *::-webkit-scrollbar-thumb,
html[data-mfe-theme]::-webkit-scrollbar-thumb{background:var(--mfe-scroll-thumb)!important;border-radius:999px!important;border:2px solid transparent!important;background-clip:padding-box!important;}
html[data-mfe-theme] *::-webkit-scrollbar-thumb:hover,
html[data-mfe-theme]::-webkit-scrollbar-thumb:hover{background:var(--mfe-scroll-thumb-hover)!important;background-clip:padding-box!important;}

/* preserve functional alert colors where they are semantic, not branding */



/* ---- source block separator ---- */

/* Final theme polish: all brand/accent UI follows the selected theme. Semantic warning/error colours remain untouched. */













html[data-mfe-theme]:not([data-mfe-theme="base"]) .trim-selection{
  border-color:var(--mfe-accent-border)!important;
  background:linear-gradient(180deg,rgba(var(--mfe-accent-rgb),.24),rgba(var(--mfe-accent-rgb),.10))!important;
}






/* Dashboard daily report: in gray/custom themes, remove leftover base green from non-critical UI. */







/* Gray theme loading modal contrast: no white-on-light text. */





/* Scrollbars follow the selected theme, including page-local panels. */
html[data-mfe-theme],
html[data-mfe-theme] *{
  scrollbar-color:var(--mfe-scroll-thumb) var(--mfe-scroll-track)!important;
}
html[data-mfe-theme] *::-webkit-scrollbar,
html[data-mfe-theme]::-webkit-scrollbar{width:10px!important;height:10px!important;}
html[data-mfe-theme] *::-webkit-scrollbar-track,
html[data-mfe-theme]::-webkit-scrollbar-track{background:var(--mfe-scroll-track)!important;border-radius:999px!important;}
html[data-mfe-theme] *::-webkit-scrollbar-thumb,
html[data-mfe-theme]::-webkit-scrollbar-thumb{background:var(--mfe-scroll-thumb)!important;border-radius:999px!important;border:2px solid transparent!important;background-clip:padding-box!important;}
html[data-mfe-theme] *::-webkit-scrollbar-thumb:hover,
html[data-mfe-theme]::-webkit-scrollbar-thumb:hover{background:var(--mfe-scroll-thumb-hover)!important;background-clip:padding-box!important;}

/* Keep semantic warning/error states readable. */




/* ---- source block separator ---- */

.mfa-discount-card[hidden]{display:none!important;}
  .mfa-discount-card{
    position:relative;
    min-height:0;
    border-radius:20px;
    border:1px solid rgba(var(--mfe-accent-rgb,34,197,94),.34)!important;
    background:
      radial-gradient(circle at 94% 0%, rgba(var(--mfe-accent-rgb,34,197,94),.22), transparent 30%),
      linear-gradient(180deg, rgba(var(--mfe-accent-rgb,34,197,94),.13), rgba(255,255,255,.032))!important;
    box-shadow:0 14px 26px rgba(0,0,0,.15), inset 0 0 0 1px rgba(255,255,255,.035)!important;
    padding:14px 16px;
    display:grid;
    gap:10px;
    overflow:hidden;
  }
  .mfa-discount-card::after{
    content:"";
    position:absolute;
    width:96px;
    height:96px;
    right:-46px;
    bottom:-54px;
    border-radius:999px;
    background:rgba(var(--mfe-accent-rgb,34,197,94),.16);
    pointer-events:none;
  }
  .mfa-discount-head{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }
  .mfa-discount-card .label{
    font-size:11px;
    line-height:1.1;
  }
  .mfa-discount-title{
    margin:3px 0 0;
    font-size:18px;
    line-height:1.08;
    font-weight:950;
    letter-spacing:-.03em;
  }
  .mfa-discount-badge{
    flex:0 0 auto;
    min-height:28px;
    padding:0 10px;
    border-radius:999px;
    border:1px solid rgba(var(--mfe-accent-rgb,34,197,94),.36);
    background:rgba(var(--mfe-accent-rgb,34,197,94),.18);
    color:var(--text);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:10px;
    font-weight:950;
    letter-spacing:.09em;
  }
  .mfa-discount-copy{
    position:relative;
    z-index:1;
    margin:0;
    color:var(--muted);
    font-size:12.5px;
    line-height:1.38;
  }
  .mfa-discount-code-row{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:minmax(150px,1fr) auto auto;
    gap:8px;
    align-items:center;
  }
  .mfa-discount-code{
    min-height:40px;
    padding:0 12px;
    border-radius:14px;
    border:1px dashed rgba(var(--mfe-accent-rgb,34,197,94),.50);
    background:rgba(0,0,0,.16);
    color:var(--text);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
    line-height:1;
    font-weight:950;
    letter-spacing:.08em;
    overflow-wrap:anywhere;
  }
  .mfa-discount-code-row .btn{
    min-height:40px;
    padding:0 13px;
    white-space:nowrap;
  }
  .mfa-discount-site-btn{
    text-align:center;
  }
  .mfa-discount-status{
    position:relative;
    z-index:1;
    min-height:0;
    margin-top:-2px;
    font-size:12px;
    line-height:1.35;
  }
  .account-summary-panel{
    overflow:auto;
  }
  .account-summary-panel .block{
    padding:14px;
    gap:8px;
  }
  .account-summary-panel .btn-row{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  @media(max-height:820px) and (min-width:1101px){.content{overflow-y:auto}}
  @media(max-width:900px){
    .mfa-discount-code-row{grid-template-columns:1fr;}
    .mfa-discount-title{font-size:17px;}
    .mfa-discount-status{display:none;}
    .account-summary-panel .btn-row{grid-template-columns:1fr;}
  }
  @media(max-width:760px){
    .hero{gap:10px!important;}
    .hero-title{font-size:22px!important;margin-bottom:0!important;}
    .mfa-discount-card{padding:12px!important;gap:8px!important;border-radius:18px!important;}
    .mfa-discount-head{gap:8px!important;align-items:flex-start!important;}
    .mfa-discount-title{font-size:16px!important;margin-top:2px!important;}
    .mfa-discount-badge{min-height:24px;padding:0 8px;font-size:9px;}
    .mfa-discount-copy{font-size:12px;line-height:1.32;}
    .mfa-discount-code{min-height:38px;font-size:14px;}
    .mfa-discount-code-row .btn{min-height:38px!important;font-size:12px!important;}
    .account-summary-panel{gap:10px!important;padding:12px!important;overflow:visible!important;}
    .account-summary-panel .block{padding:12px!important;border-radius:16px!important;}
  }

/* Account cards and modals */
.account-shell-content{min-height:0;overflow:hidden;grid-template-rows:auto minmax(0,1fr)}
.account-shell-hero{min-height:0;grid-template-columns:minmax(220px,.58fr) minmax(0,1.42fr);align-items:stretch}.account-shell-hero .hero-title{margin:0}.account-shell-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}.account-shell-summary .metric{min-height:70px;padding:12px 14px}.account-shell-summary .metric-v{font-size:16px;margin-top:7px;white-space:nowrap}
.account-shell-panel{min-height:0;height:100%;padding:18px 20px;overflow:hidden}.account-shell-grid{height:100%;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}.account-tile{height:100%;min-height:0;padding:16px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:9px;align-content:stretch;overflow:hidden}.account-tile .block-title{font-size:17px;line-height:1.15;color:var(--accent)!important}.account-tile-value{font-size:18px;font-weight:900;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-tile .helper{line-height:1.35;min-width:0;overflow:hidden;text-overflow:ellipsis}.account-tile .btn-row{margin-top:auto}.account-tile .btn{width:100%}
.account-modal{position:fixed;inset:0;z-index:2650;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(2,6,23,.64);backdrop-filter:blur(12px)}.account-modal.open{display:flex}.account-modal-card{width:min(100%,720px);max-height:min(88vh,860px);border-radius:28px;border:1px solid var(--line);background:var(--mfe-card-bg-strong,linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025)));box-shadow:0 32px 80px rgba(2,6,23,.5);padding:24px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:16px;overflow:hidden;color:var(--text)}.account-modal-card.wide{width:min(100%,1060px)}.account-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.account-modal-title{margin:0;font-size:26px;line-height:1.05;font-weight:900}.account-modal-close{width:42px;height:42px;flex:none;border-radius:14px;border:1px solid var(--mfe-input-border,rgba(255,255,255,.08));background:var(--mfe-input-bg,rgba(255,255,255,.04));color:var(--text);font:inherit;font-size:22px;font-weight:900;cursor:pointer}.account-modal-body{min-height:0;overflow:auto;padding-right:4px;display:grid;gap:14px;align-content:start}.account-modal-body::-webkit-scrollbar{width:10px}.account-modal-body::-webkit-scrollbar-track{background:var(--mfe-scroll-track,rgba(255,255,255,.04));border-radius:999px}.account-modal-body::-webkit-scrollbar-thumb{background:var(--mfe-scroll-thumb,rgba(34,197,94,.42));border-radius:999px}.account-modal-body>.block,
.account-modal-body>.mfa-discount-card{margin:0}.account-modal-body .theme-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.account-modal-value{font-size:20px;font-weight:900}.account-subscription-summary{gap:12px}.account-upgrade-card{gap:16px}.account-upgrade-card .mfa-discount-badge{width:max-content}.account-upgrade-list{margin:0;padding-left:20px;display:grid;gap:8px;color:var(--muted);font-size:13px;line-height:1.45}.account-upgrade-card .btn-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}body.account-modal-open{overflow:hidden!important}html[data-mfe-theme="light"] .account-modal{background:rgba(15,23,42,.34)}
@media(max-width:1080px) and (min-width:901px){.account-shell-panel{overflow:auto}.account-shell-grid{height:auto;min-height:100%;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:minmax(170px,1fr);align-content:stretch}.account-tile{padding:16px}}
@media(max-width:900px){body{overflow:auto!important}.app{height:auto!important;min-height:100vh!important;overflow:visible!important;}.main,
.content,
.account-shell-content{height:auto!important;overflow:visible!important}.account-shell-hero{grid-template-columns:1fr!important}.account-shell-summary{grid-template-columns:1fr}.account-shell-panel{height:auto;overflow:visible}.account-shell-grid{grid-template-columns:1fr;grid-template-rows:none}.account-tile{min-height:180px}.account-modal{padding:10px;align-items:flex-end}.account-modal-card,
.account-modal-card.wide{width:100%;max-height:92vh;border-radius:24px 24px 0 0;padding:18px}.account-modal-body .theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-upgrade-card .btn-row{grid-template-columns:1fr}}

