:root {
    --bg: #0b1020;
    --panel: #121a30;
    --panel-2: #16203c;
    --card: #0f172a;
    --text: #ebf2ff;
    --muted: #a8b3cf;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #79a8ff;
    --accent-2: #98f5e1;
    --radius: 18px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    --container: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: linear-gradient(180deg, #0b1020 0%, #0e1528 100%);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(8, 12, 24, 0.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-shell, .footer-grid, .hero-grid, .archive-shell, .dashboard-shell, .doc-layout {
    display: grid; gap: 24px;
}
.nav-shell { grid-template-columns: 1fr auto auto; align-items: center; padding: 18px 0; }
.brand-link { font-weight: 800; font-size: 1.15rem; }
.brand-tagline { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.menu-list { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.button {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; padding: 12px 18px; border: 1px solid transparent;
    background: linear-gradient(135deg, var(--accent), #6b84ff); color: #06101e; font-weight: 700;
}
.button.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.hero { padding: 72px 0 32px; }
.hero-grid { grid-template-columns: 1.4fr 1fr; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 4vw, 4.3rem); line-height: 1.05; margin: 14px 0; }
.hero p, .lead { color: var(--muted); font-size: 1.08rem; }
.hero-panel, .content-grid, .tab-row, .badge-row, .hero-actions, .stack-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.metric-card, .card, .feature-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.metric-card { flex: 1 1 160px; min-height: 140px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.metric-card strong { font-size: 2rem; }
.metric-card span { color: var(--muted); }
.section-gap { padding: 34px 0; }
.section-gap-small { margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.eyebrow { color: var(--accent-2); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.content-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-grid.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .feature-box { padding: 24px; }
.empty-state { text-align: center; }
.product-card h3 { margin-bottom: 10px; }
.product-thumb { margin: -24px -24px 16px; overflow: hidden; border-radius: 18px 18px 0 0; }
.badge {
    display: inline-flex; align-items: center; border: 1px solid var(--line);
    background: rgba(255,255,255,0.04); border-radius: 999px; padding: 6px 10px; font-size: 0.85rem;
}
.product-meta-row, .meta-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.meta-list, .simple-list { list-style: none; padding: 0; margin: 0; }
.meta-list li, .simple-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.categories-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.archive-shell { grid-template-columns: 280px 1fr; align-items: start; }
.filter-panel, .dashboard-sidebar, .doc-sidebar, .product-sidebar { position: sticky; top: 96px; }
.product-hero-shell { display: grid; grid-template-columns: 1.5fr 0.8fr; gap: 24px; }
.tab { padding: 12px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tab.active { color: var(--text); background: rgba(121, 168, 255, 0.12); border-color: rgba(121, 168, 255, 0.3); }
.dashboard-shell { grid-template-columns: 280px 1fr; align-items: start; }
.doc-layout { grid-template-columns: 280px 1fr; align-items: start; }
.site-footer { padding: 40px 0 80px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { grid-template-columns: 1.5fr 1fr; }
.entry-content p { color: var(--muted); }
@media (max-width: 1024px) {
    .hero-grid, .archive-shell, .dashboard-shell, .doc-layout, .product-hero-shell, .footer-grid, .nav-shell { grid-template-columns: 1fr; }
    .content-grid, .content-grid.two-col, .content-grid.three-col, .categories-strip { grid-template-columns: 1fr 1fr; }
    .filter-panel, .dashboard-sidebar, .doc-sidebar, .product-sidebar { position: static; }
}
@media (max-width: 720px) {
    .content-grid, .content-grid.two-col, .content-grid.three-col, .categories-strip { grid-template-columns: 1fr; }
    .menu-list, .header-actions { flex-wrap: wrap; }
    .hero { padding-top: 48px; }
}


.account-layout{display:grid;grid-template-columns:280px 1fr;gap:24px;padding:48px 0}.account-sidebar,.content-card,.auth-card,.auth-aside{background:#111827;color:#f9fafb;border-radius:20px;padding:24px}.account-sidebar ul{list-style:none;padding:0;margin:16px 0 0}.account-sidebar li{margin:0 0 10px}.account-sidebar a{color:#e5e7eb;text-decoration:none}.account-sidebar .is-active a{font-weight:700}.account-content{display:flex;flex-direction:column;gap:24px}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.stat-card{background:#111827;color:#fff;border-radius:18px;padding:20px}.table-card{overflow:auto}.account-table{width:100%;border-collapse:collapse}.account-table th,.account-table td{padding:14px;border-bottom:1px solid rgba(255,255,255,.08);text-align:left}.status-badge{display:inline-block;padding:6px 10px;border-radius:999px;background:#1f2937}.button-row{display:flex;gap:12px;flex-wrap:wrap}.auth-shell{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;padding:48px 0}.auth-card form p{margin-bottom:16px}.auth-card input[type=text],.auth-card input[type=password],.auth-card input[type=email]{width:100%;padding:12px;border-radius:12px;border:1px solid #d1d5db}.auth-card input[type=submit],.button{display:inline-block;padding:12px 18px;border-radius:12px;background:#2563eb;color:#fff;text-decoration:none;border:none}.button-secondary{background:#374151}.download-panel{display:flex;flex-direction:column;gap:12px;background:#111827;color:#fff;padding:20px;border-radius:20px}.download-panel .meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;font-size:14px}.download-panel .meta span{display:block;color:#9ca3af}.download-panel .meta strong{display:block}.notice-inline{padding:12px 14px;border-radius:14px;background:#eff6ff;color:#1d4ed8}
@media(max-width:960px){.account-layout,.auth-shell{grid-template-columns:1fr}.stats-grid{grid-template-columns:1fr}}


.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:14px 0 18px;}
.plan-card{border:1px solid #d7deea;border-radius:14px;padding:14px;background:#fff;}
.plan-card ul{margin:10px 0 0 18px;padding:0;}
.plan-price{display:block;font-size:1.1rem;font-weight:700;margin-top:6px;}
.settings-grid{display:grid;gap:12px;margin:0 0 18px;}
.setting-row{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid #d7deea;border-radius:12px;background:#fff;}

.ideiy-auth-form p { margin: 0 0 14px; }
.ideiy-auth-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.ideiy-auth-form input[type="text"],
.ideiy-auth-form input[type="email"],
.ideiy-auth-form input[type="password"] {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
}
.auth-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.notice { padding: 12px 14px; border-radius: 12px; margin: 0 0 16px; }
.notice-success { background: #f0fdf4; border: 1px solid #86efac; }
.notice-error { background: #fef2f2; border: 1px solid #fca5a5; }

.stats-grid-4{grid-template-columns:repeat(4,minmax(0,1fr));}
.stats-grid-5{grid-template-columns:repeat(5,minmax(0,1fr));}
.dashboard-hero-card{background:linear-gradient(135deg,rgba(121,168,255,.16),rgba(152,245,225,.08));border:1px solid rgba(121,168,255,.25)}
.dashboard-block-grid{align-items:start}
.compact-heading{margin-bottom:14px}
.notification-filters,.quick-access-grid,.license-mini-grid{display:grid;gap:12px}
.notification-filters{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));margin-bottom:18px}
.filter-pill{display:inline-flex;justify-content:center;align-items:center;padding:10px 14px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.03)}
.filter-pill.is-active{background:rgba(121,168,255,.16);border-color:rgba(121,168,255,.35)}
.notification-list{display:flex;flex-direction:column;gap:14px}
.notification-item{border:1px solid var(--line);border-radius:18px;padding:18px;background:rgba(255,255,255,.03)}
.notification-item h3{margin:8px 0 8px;font-size:1.02rem}
.notification-item p{margin:0 0 12px;color:var(--muted)}
.notification-meta-row{display:flex;justify-content:space-between;gap:12px;align-items:center}
.notification-time{font-size:.9rem;color:var(--muted)}
.severity-danger{border-color:rgba(248,113,113,.5);background:rgba(127,29,29,.18)}
.severity-warning{border-color:rgba(251,191,36,.45);background:rgba(120,53,15,.16)}
.severity-success{border-color:rgba(74,222,128,.4);background:rgba(20,83,45,.16)}
.severity-info{border-color:rgba(96,165,250,.35)}
.compact-list .notification-item{padding:14px}
.quick-access-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.quick-link-card{display:flex;flex-direction:column;gap:6px;padding:18px;border-radius:18px;border:1px solid var(--line);background:rgba(255,255,255,.03)}
.quick-link-card span{color:var(--muted)}
.license-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.license-mini-card{padding:16px;border-radius:18px;border:1px solid var(--line);background:rgba(255,255,255,.03)}
.license-mini-card h3{margin:0 0 10px;font-size:1rem}
.menu-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#2563eb;color:#fff;font-size:.8rem}
.account-menu{display:flex;flex-wrap:wrap;gap:10px}
.account-menu a{display:inline-flex;gap:8px;align-items:center;padding:10px 14px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.03)}
.account-menu a.is-active{background:rgba(121,168,255,.16);border-color:rgba(121,168,255,.35)}
@media(max-width:960px){.stats-grid-4,.stats-grid-5,.quick-access-grid,.license-mini-grid{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.stats-grid-4,.stats-grid-5,.quick-access-grid,.license-mini-grid{grid-template-columns:1fr}}

:root{
    --bg:#07111f;
    --panel:#101a2f;
    --panel-2:#132342;
    --card:#0f1b33;
    --text:#f8fbff;
    --muted:#b7c4e3;
    --line:rgba(255,255,255,.10);
    --accent:#7c4dff;
    --accent-2:#00d4ff;
    --accent-3:#ff6ec7;
    --success:#32d296;
    --warning:#ffb84d;
    --danger:#ff6b6b;
    --shadow:0 24px 70px rgba(2,8,23,.42);
}
body{
    background:
      radial-gradient(circle at top right, rgba(124,77,255,.22), transparent 28%),
      radial-gradient(circle at top left, rgba(0,212,255,.15), transparent 24%),
      linear-gradient(180deg,#07111f 0%,#0b1630 55%,#0d1b36 100%);
}
.site-header{background:rgba(6,12,24,.74);border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 12px 30px rgba(2,8,23,.18)}
.brand-link{font-size:1.2rem;letter-spacing:.01em}
.button{background:linear-gradient(135deg,var(--accent),var(--accent-3));color:#fff;box-shadow:0 16px 34px rgba(124,77,255,.28)}
.button.secondary,.button.ghost{background:rgba(255,255,255,.05);color:var(--text);border-color:rgba(255,255,255,.12)}
.button.vibrant{background:linear-gradient(135deg,var(--accent-2),#4df3b7);color:#031321}
.panel,.content-card,.auth-card,.auth-aside,.account-sidebar,.stat-card,.card,.feature-box,.plan-card,.setting-row,.notification-item,.quick-link-card,.license-mini-card,.download-panel,.table-card{
    background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035));
    border:1px solid rgba(255,255,255,.12);
    box-shadow:var(--shadow);
    backdrop-filter:blur(14px);
}
.hero h1{background:linear-gradient(90deg,#ffffff 0%,#dce6ff 45%,#b2fbff 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.badge,.status-badge,.menu-count{background:linear-gradient(135deg,rgba(124,77,255,.24),rgba(0,212,255,.18));border-color:rgba(255,255,255,.14)}
.account-table th{color:#dbe5ff}
.account-table td,.muted,.lead,.entry-content p,.hero p{color:var(--muted)}
.account-table tr:hover td{background:rgba(255,255,255,.02)}
.plan-card{background:linear-gradient(180deg,rgba(124,77,255,.11),rgba(255,255,255,.05))}
.quick-link-card:hover,.plan-card:hover,.product-card:hover,.card:hover{transform:translateY(-2px);transition:.2s ease}
.notice-inline,.notice{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#fff}
.notice-success{background:rgba(50,210,150,.12);border-color:rgba(50,210,150,.35)}
.notice-error{background:rgba(255,107,107,.14);border-color:rgba(255,107,107,.36)}
.ideiy-auth-form input[type="text"],.ideiy-auth-form input[type="email"],.ideiy-auth-form input[type="password"],.auth-card input[type=text],.auth-card input[type=password],.auth-card input[type=email]{background:rgba(255,255,255,.95);border-color:rgba(124,77,255,.14)}
.product-side-card{position:relative;overflow:hidden}
.product-side-card::before{content:"";position:absolute;inset:-1px auto auto -1px;width:120px;height:120px;background:radial-gradient(circle,rgba(0,212,255,.22),transparent 65%);pointer-events:none}

.notification-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
.notification-item .button-row{margin-top:8px}
.hero,.section-gap{position:relative}
.hero::after{content:"";position:absolute;right:5%;top:10%;width:220px;height:220px;background:radial-gradient(circle,rgba(255,110,199,.18),transparent 68%);pointer-events:none;filter:blur(8px)}
.card,.feature-box,.stat-card,.content-card,.auth-card,.auth-aside,.account-sidebar{border-radius:22px}
.product-card,.plan-card,.quick-link-card,.license-mini-card,.notification-item{box-shadow:0 18px 48px rgba(11,23,54,.28)}
.button:hover{transform:translateY(-1px);transition:.18s ease;box-shadow:0 18px 38px rgba(124,77,255,.34)}

/* Phase 28: separate seller/customer dashboard + compact heights */
.stats-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.compact-card{padding:18px !important;}
.compact-stats-grid{gap:12px;}
.compact-stat-card{padding:16px !important;min-height:auto;}
.compact-stat-card h3{margin:0 0 8px;font-size:.95rem;}
.compact-stat-card strong{font-size:1.65rem;line-height:1.15;display:block;}
.compact-table th,.compact-table td{padding:10px 12px;}
.compact-item{padding:14px 14px 12px !important;}
.compact-item h3{margin:6px 0 4px;font-size:1rem;}
.compact-item p{margin:0;font-size:.95rem;}
.compact-link-card{padding:14px !important;gap:4px !important;min-height:auto;}
.compact-license-card{padding:14px !important;}
.account-sidebar ul{display:flex;flex-direction:column;gap:8px;}
.account-sidebar li{margin:0;}
.account-sidebar a{display:block;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.03);}
.account-sidebar .is-active a{background:rgba(121,168,255,.14);}
.admin-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.seller-hero-card{background:linear-gradient(135deg,rgba(255,166,0,.16),rgba(255,90,95,.10));border:1px solid rgba(255,166,0,.22);}
@media(max-width:960px){.stats-grid-3,.admin-quick-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:720px){.stats-grid-3,.admin-quick-grid{grid-template-columns:1fr;}}

/* Phase 29: improved product content area */
.product-content-card{padding:24px 28px;}
.product-content{max-width:100%;}
.prose-content{font-size:16px;line-height:1.75;color:var(--text);}
.prose-content > *:first-child{margin-top:0;}
.prose-content > *:last-child{margin-bottom:0;}
.prose-content h1,.prose-content h2,.prose-content h3,.prose-content h4{color:#fff;line-height:1.25;margin:0 0 14px;}
.prose-content h2{font-size:1.55rem;margin-top:28px;}
.prose-content h3{font-size:1.2rem;margin-top:22px;}
.prose-content p,.prose-content ul,.prose-content ol,.prose-content blockquote,.prose-content pre{margin:0 0 16px;}
.prose-content ul,.prose-content ol{padding-left:22px;}
.prose-content li{margin-bottom:8px;}
.prose-content a{color:#7dd3fc;text-decoration:none;border-bottom:1px solid rgba(125,211,252,.25);}
.prose-content code{background:rgba(255,255,255,.08);padding:2px 7px;border-radius:8px;color:#d8f3ff;}
.prose-content pre{background:rgba(3,10,24,.72);border:1px solid rgba(255,255,255,.08);padding:16px 18px;border-radius:16px;overflow:auto;}
.prose-content blockquote{padding:14px 16px;border-left:4px solid var(--accent-2);background:rgba(255,255,255,.04);border-radius:14px;color:#dce6ff;}
.prose-content img{max-width:100%;height:auto;border-radius:18px;box-shadow:0 16px 40px rgba(2,8,23,.28);}
.prose-content table{width:100%;border-collapse:collapse;margin:0 0 18px;background:rgba(255,255,255,.03);border-radius:14px;overflow:hidden;display:block;}
.prose-content table th,.prose-content table td{padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.08);text-align:left;}
@media(max-width:720px){.product-content-card{padding:18px 16px;}.prose-content{font-size:15px;line-height:1.68;}}


/* Phase 33 language switcher */
.lang-switcher{display:inline-flex;align-items:center;gap:6px;padding:4px;background:rgba(124,77,255,.08);border:1px solid rgba(124,77,255,.14);border-radius:999px}
.lang-link{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:32px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:700;text-decoration:none;color:inherit;opacity:.8}
.lang-link.active{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;opacity:1;box-shadow:0 8px 18px rgba(124,77,255,.18)}
.header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}


/* Phase 35 targeted sidebar/layout fix */
.account-grid,
.account-layout{
    display:grid;
    grid-template-columns:280px minmax(0,1fr);
    gap:24px;
    padding:40px 0;
    align-items:start;
}
.account-sidebar{
    position:sticky;
    top:96px;
    align-self:start;
    background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
    border:1px solid var(--line);
    border-radius:22px;
    box-shadow:var(--shadow);
}
.account-sidebar h3{margin:0 0 14px;font-size:1.4rem;}
.account-sidebar ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;}
.account-sidebar li{margin:0;}
.account-sidebar a{
    display:flex;
    align-items:center;
    min-height:44px;
    padding:0 14px;
    border-radius:14px;
    color:var(--text);
    background:rgba(255,255,255,.03);
    border:1px solid transparent;
}
.account-sidebar li.is-active a,
.account-sidebar a:hover{
    background:rgba(121,168,255,.16);
    border-color:rgba(121,168,255,.28);
}
.account-content{min-width:0;gap:20px;}
.account-content > .content-card,
.account-content > .panel{min-width:0;}
.account-content .section-heading{display:block;margin-bottom:18px;}
.account-content .section-heading h1,
.account-content .section-heading h2{margin:6px 0 0;}
.account-content .section-heading .eyebrow{display:inline-block;margin-bottom:2px;}
.account-content .auth-card,
.account-content .content-card,
.account-content .panel{padding:24px;}
.account-content .account-table,
.account-content .table{width:100%;}
.account-content .button-row{align-items:center;}
@media (max-width: 1024px){
    .account-grid,
    .account-layout{grid-template-columns:1fr;}
    .account-sidebar{position:static;top:auto;}
}


/* Phase 39 commerce UI */
.purchase-panel{background:#fff;border:1px solid #dde7f5;border-radius:18px;padding:20px;box-shadow:0 16px 50px rgba(17,24,39,.08)}
.purchase-plan-list{display:grid;gap:12px}
.purchase-plan-card{display:block;border:1px solid #d8e2f2;border-radius:16px;padding:0;background:#f8fbff;cursor:pointer}
.purchase-plan-card input{margin:16px 0 0 16px}
.purchase-plan-card__body{display:flex;flex-direction:column;gap:6px;padding:10px 16px 16px}
.purchase-panel__methods{margin:10px 0 14px}
.cart-panel{background:#fff}
.cart-list{display:flex;flex-direction:column;gap:12px}
.cart-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:16px;align-items:center;padding:16px;border:1px solid #e5ebf5;border-radius:16px;background:#f8fbff}
.cart-item__meta h3{margin:0 0 6px}
.cart-item__price{font-weight:700;color:#21304f}
.cart-summary{display:flex;justify-content:space-between;align-items:center;margin-top:18px;padding-top:18px;border-top:1px solid #e5ebf5;gap:16px;flex-wrap:wrap}
.empty-state{padding:28px;border:1px dashed #d8e2f2;border-radius:18px;background:#f8fbff}
.checkout-methods{display:grid;gap:12px;margin:14px 0 18px}
.checkout-method-card{display:block;border:1px solid #d8e2f2;border-radius:16px;padding:14px 16px;background:#f8fbff;cursor:pointer}
.checkout-method-card input{margin-right:10px}
.checkout-method-card__body{display:inline-flex;flex-direction:column;gap:4px;vertical-align:middle}
.checkout-help{padding:16px;border:1px solid #e5ebf5;border-radius:16px;background:#f8fbff}
@media (max-width: 768px){
  .cart-item{grid-template-columns:1fr}
  .cart-summary{align-items:flex-start}
}


/* Phase 40 cart/checkout visual fix */
.purchase-panel--light,
.cart-panel--light,
.checkout-panel--light,
.checkout-summary-panel.checkout-panel--light {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
    border: 1px solid #d9e2f0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    color: #142033;
}
.purchase-panel--light *,
.cart-panel--light *,
.checkout-panel--light *,
.checkout-summary-panel.checkout-panel--light * {
    color: inherit;
}
.purchase-panel--light .muted,
.cart-panel--light .muted,
.checkout-panel--light .muted,
.checkout-summary-panel.checkout-panel--light .muted {
    color: #66758c !important;
}
.purchase-panel {
    margin-top: 16px;
    padding: 18px;
}
.purchase-panel__header strong {
    display: block;
    font-size: 1.05rem;
    color: #15233a;
    margin-bottom: 8px;
}
.purchase-panel__methods {
    margin: 0 0 12px;
    padding: 12px 14px;
    background: #eef4ff;
    border: 1px solid #d5e3ff;
    border-radius: 14px;
}
.purchase-plan-list {
    display: grid;
    gap: 12px;
}
.purchase-plan-card {
    display: block;
    cursor: pointer;
}
.purchase-plan-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.purchase-plan-card__body {
    display: block;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #d8e1ef;
    background: #fff;
    transition: all .2s ease;
}
.purchase-plan-card input[type="radio"]:checked + .purchase-plan-card__body {
    border-color: #7c4dff;
    background: #f5f1ff;
    box-shadow: 0 0 0 3px rgba(124,77,255,.10);
}
.purchase-plan-card__body strong {
    display: block;
    color: #18253d;
    margin-bottom: 6px;
    font-size: 1rem;
}
.purchase-plan-card__body .muted {
    display: block;
}
.purchase-actions {
    align-items: center;
}
.purchase-primary {
    background: linear-gradient(135deg, #7c4dff, #ff5fb7);
    color: #fff;
    border: none;
}
.button.secondary.purchase-secondary,
.button.purchase-secondary {
    background: #eef2ff;
    color: #22324d;
    border: 1px solid #d8e1ef;
}
.button.ghost.purchase-ghost,
.button.purchase-ghost {
    background: #fff;
    color: #22324d;
    border: 1px solid #d8e1ef;
}
.cart-list {
    display: grid;
    gap: 12px;
}
.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #d8e1ef;
    border-radius: 16px;
}
.cart-item__meta h3 {
    margin: 0 0 4px;
    color: #142033;
}
.cart-item__price {
    font-weight: 700;
    color: #142033;
}
.cart-summary {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #d8e1ef;
}
.checkout-methods {
    display: grid;
    gap: 12px;
    margin: 12px 0 18px;
}
.checkout-method-card {
    display: block;
    cursor: pointer;
}
.checkout-method-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}
.checkout-method-card__body {
    display: block;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #d8e1ef;
    border-radius: 16px;
}
.checkout-method-card input[type="radio"]:checked + .checkout-method-card__body {
    border-color: #7c4dff;
    background: #f5f1ff;
    box-shadow: 0 0 0 3px rgba(124,77,255,.10);
}
.checkout-method-card__body strong {
    color: #142033;
    display: block;
    margin-bottom: 4px;
}
@media (max-width: 900px) {
    .cart-item {
        grid-template-columns: 1fr;
    }
}



/* Phase 41 product page + cart redirect fix */
.grid-two{
    display:grid;
    grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);
    gap:28px;
    align-items:start;
}
.section-page{padding:28px 0 48px;}
.product-side-card{
    position:sticky;
    top:96px;
    display:flex;
    flex-direction:column;
    gap:18px;
}
.product-tabs{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin:14px 0 18px;
}
.product-tabs a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:10px 14px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.04);
    color:#dce7ff;
    font-size:.94rem;
    font-weight:600;
}
.product-side-card > h3{
    margin:0;
    font-size:1.12rem;
}
.product-meta-list{
    list-style:none;
    padding:0;
    margin:0;
    display:grid;
    gap:10px;
}
.product-meta-list li{
    display:flex;
    justify-content:space-between;
    gap:14px;
    align-items:flex-start;
    padding:10px 0;
    border-bottom:1px solid rgba(255,255,255,.08);
}
.plan-compare{display:grid;gap:12px;}
.plan-grid{display:grid;gap:12px;}
.plan-card{
    padding:16px 18px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.08);
    background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.plan-card strong{display:block;margin-bottom:6px;}
.plan-card .plan-price{display:block;font-size:1.15rem;font-weight:800;margin-bottom:8px;}
.plan-card ul{margin:0;padding-left:18px;color:var(--muted);}
.cta-stack{
    display:flex;
    flex-direction:column;
    gap:12px;
}
.purchase-panel{
    order:-1;
    margin-top:0;
}
.purchase-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}
.purchase-actions > *{
    flex:0 0 auto;
}
.purchase-primary,.purchase-secondary,.purchase-ghost{
    min-height:46px;
}
.purchase-panel__header p{margin:6px 0 0;}
.product-side-card .button{width:100%;}
.purchase-actions .button{width:auto;}
@media (max-width: 1024px){
    .grid-two{
        grid-template-columns:1fr;
    }
    .product-side-card{
        position:static;
        top:auto;
    }
}



/* Phase 41.2 cart and readability hotfix */
.purchase-box,
.cart-panel,
.checkout-panel,
.ideiy-cart,
.ideiy-checkout,
.product-purchase-box {
    background: #0f1c35 !important;
    color: #eaf1ff !important;
    border: 1px solid rgba(130, 155, 255, 0.24) !important;
}

.purchase-box .muted,
.cart-panel .muted,
.checkout-panel .muted,
.ideiy-cart .muted,
.ideiy-checkout .muted,
.product-purchase-box .muted {
    color: #b8c7ea !important;
}

.purchase-box .button,
.cart-panel .button,
.checkout-panel .button,
.ideiy-cart .button,
.ideiy-checkout .button,
.product-purchase-box .button {
    color: #ffffff !important;
}

.purchase-box .button.secondary,
.purchase-box .button.ghost,
.cart-panel .button.secondary,
.cart-panel .button.ghost,
.checkout-panel .button.secondary,
.checkout-panel .button.ghost,
.ideiy-cart .button.secondary,
.ideiy-cart .button.ghost,
.ideiy-checkout .button.secondary,
.ideiy-checkout .button.ghost,
.product-purchase-box .button.secondary,
.product-purchase-box .button.ghost {
    background: #eef3ff !important;
    color: #13264d !important;
    border-color: rgba(98, 117, 255, 0.18) !important;
}

.purchase-box select,
.purchase-box input,
.purchase-box textarea,
.cart-panel select,
.cart-panel input,
.cart-panel textarea,
.checkout-panel select,
.checkout-panel input,
.checkout-panel textarea,
.ideiy-cart select,
.ideiy-cart input,
.ideiy-cart textarea,
.ideiy-checkout select,
.ideiy-checkout input,
.ideiy-checkout textarea,
.product-purchase-box select,
.product-purchase-box input,
.product-purchase-box textarea {
    background: #ffffff !important;
    color: #152544 !important;
    border: 1px solid rgba(124, 141, 255, 0.22) !important;
}

.purchase-box .plan-option,
.purchase-box .license-option,
.cart-panel .plan-option,
.checkout-panel .plan-option,
.product-purchase-box .plan-option {
    background: rgba(255,255,255,0.08) !important;
    color: #f3f7ff !important;
}

.purchase-box .plan-option.is-active,
.purchase-box .license-option.is-active,
.cart-panel .plan-option.is-active,
.checkout-panel .plan-option.is-active,
.product-purchase-box .plan-option.is-active {
    background: rgba(121, 92, 255, 0.18) !important;
    border-color: rgba(138, 111, 255, 0.8) !important;
    box-shadow: 0 0 0 1px rgba(138, 111, 255, 0.45) inset !important;
}

a.button.continue-shopping,
.button.continue-shopping,
.purchase-box .continue-shopping,
.cart-panel .continue-shopping,
.checkout-panel .continue-shopping {
    background: #eef3ff !important;
    color: #152544 !important;
    border: 1px solid rgba(108, 125, 255, 0.18) !important;
    text-shadow: none !important;
}

.purchase-box table,
.cart-panel table,
.checkout-panel table,
.ideiy-cart table,
.ideiy-checkout table {
    background: transparent !important;
    color: #eaf1ff !important;
}

.purchase-box th,
.purchase-box td,
.cart-panel th,
.cart-panel td,
.checkout-panel th,
.checkout-panel td,
.ideiy-cart th,
.ideiy-cart td,
.ideiy-checkout th,
.ideiy-checkout td {
    border-color: rgba(130, 155, 255, 0.16) !important;
}

.social-auth-card { margin: 0 0 14px; }
.google-button { display:inline-flex; align-items:center; justify-content:center; width:100%; background:#fff !important; color:#1f2d52 !important; border:1px solid rgba(106,92,255,0.18) !important; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:12px 0 16px; color:#7a86a8; font-size:13px; }
.auth-divider:before, .auth-divider:after { content:""; flex:1; height:1px; background:rgba(122,134,168,0.25); }


/* Phase 52 multilingual + premium cart polish */
.hero-copy{max-width:min(100%,920px)}
.hero h1{font-size:var(--hero-title-size,54px);line-height:1.08;max-width:24ch}
.cart-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:24px;align-items:start}
.cart-panel--premium,
.checkout-panel--premium,
.cart-summary-card{border-radius:24px;padding:24px}
.cart-panel--premium{background:linear-gradient(180deg,#ffffff 0%,#f7faff 100%);border:1px solid #dbe5f3;box-shadow:0 22px 55px rgba(15,23,42,.12)}
.cart-item--premium{grid-template-columns:minmax(0,1fr) auto auto;padding:20px;border-radius:20px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border:1px solid #d9e4f2;box-shadow:0 10px 26px rgba(15,23,42,.06)}
.cart-item__badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#eef3ff;color:#30405f;font-size:.78rem;font-weight:700;margin-bottom:10px}
.cart-item__meta .muted{color:#56657f !important}
.cart-item__actions{justify-self:end}
.cart-remove-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;background:#f4f7fb;border:1px solid #d3ddea;color:#1f2d45;font-weight:600}
.cart-remove-link:hover{background:#edf2f8;color:#111a2c}
.cart-summary-card{position:sticky;top:96px;background:linear-gradient(180deg,#ffffff 0%,#f7f8fd 100%);border:1px solid #dbe2ef;box-shadow:0 20px 45px rgba(15,23,42,.10)}
.cart-summary-lines{display:grid;gap:12px}
.cart-summary-lines p{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0;padding:12px 14px;border-radius:16px;background:#f8fbff;color:#1c2840}
.cart-summary-lines p span{color:#50607b}
.cart-summary-lines p strong{color:#10192b}
.cart-summary-lines .cart-summary-total{background:linear-gradient(135deg,rgba(124,77,255,.10),rgba(0,212,255,.10));border:1px solid rgba(124,77,255,.16)}
.cart-summary-actions{display:grid;gap:12px;margin-top:18px}
.cart-summary-actions .button{text-align:center;justify-content:center}
.checkout-notice{margin:0 0 18px;padding:14px 16px;border-radius:16px;background:#eef5ff;border:1px solid #d2e1ff;color:#20314c;font-weight:600}
.guest-checkout-note{margin-top:20px;padding:18px;border-radius:18px;background:#0f1a2e;color:#eef4ff;box-shadow:0 18px 40px rgba(10,16,28,.22)}
.guest-checkout-note strong{display:block;margin-bottom:8px;color:#fff}
.guest-checkout-note p{margin:0;color:#dbe6ff}
.guest-checkout-note--large{margin-top:4px}
.premium-coupon-box{margin:12px 0 18px;padding:14px;border-radius:18px;background:#f7faff;border:1px solid #d7e3f3}
.premium-coupon-form{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.premium-coupon-form input[type="text"]{flex:1 1 220px;min-height:46px;padding:12px 14px;border-radius:14px;border:1px solid #cfd9ea;background:#fff;color:#10192b}
.order-summary-table th,.order-summary-table td,.dashboard-table th,.dashboard-table td{color:#17243a;background:transparent}
.order-summary-table thead th,.dashboard-table thead th{background:#f3f7ff;color:#1e2e49}
.checkout-help-box{margin-top:18px;padding:16px;border-radius:16px;background:#f7faff;border:1px solid #d8e2f1;color:#2a3953 !important}
.checkout-help-box p,.checkout-help-box strong{color:#2a3953 !important}
.checkout-method-card__body,.checkout-method-card__body strong,.checkout-method-card__body small{color:#17243a}
.checkout-method-card.disabled .checkout-method-card__body{opacity:.9;background:#f5f7fb}
.brand-tagline{max-width:34ch}
@media (max-width: 1024px){
  .cart-layout,.checkout-grid-premium,.grid-two{grid-template-columns:1fr}
  .cart-summary-card,.product-side-card{position:static;top:auto}
}
@media (max-width: 768px){
  .site-header .nav-shell{gap:14px;flex-wrap:wrap}
  .brand-tagline{display:none}
  .hero{padding:34px 0 18px}
  .hero-grid{gap:18px}
  .hero h1{font-size:clamp(28px,8vw,40px);max-width:none}
  .hero p{font-size:.98rem}
  .hero-actions,.header-actions,.button-row,.premium-coupon-form{display:grid;grid-template-columns:1fr;gap:10px}
  .menu-list{gap:8px;flex-wrap:wrap}
  .metric-card,.feature-box,.card,.panel,.cart-panel--premium,.cart-summary-card{border-radius:20px}
  .cart-item--premium,.cart-item{grid-template-columns:1fr;align-items:flex-start}
  .cart-item__actions{justify-self:start}
  .cart-summary-lines p{padding:12px}
}


/* Phase 53 premium cart + checkout refinement */
.button--compact{padding:10px 16px !important;min-height:44px;font-size:.94rem;line-height:1.1;border-radius:14px;box-shadow:0 10px 24px rgba(124,77,255,.20)}
.purchase-actions .button--compact{padding:10px 14px !important;font-size:.92rem}
.section-heading--split{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.premium-surface,.cart-panel--premium,.checkout-panel--premium,.cart-summary-card{position:relative;overflow:hidden}
.premium-surface::before,.cart-panel--premium::before,.checkout-panel--premium::before,.cart-summary-card::before{content:"";position:absolute;inset:-10% auto auto -8%;width:180px;height:180px;background:radial-gradient(circle,rgba(0,212,255,.12),transparent 68%);pointer-events:none}
.premium-panel-head{margin-bottom:20px}
.premium-kicker{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:rgba(124,77,255,.08);border:1px solid rgba(124,77,255,.14);color:#5a47d6;font-size:.78rem;font-weight:800;letter-spacing:.03em;text-transform:uppercase}
.premium-panel-head h1,.premium-panel-head h2{margin:10px 0 8px;color:#13213b}
.premium-panel-head p{max-width:52ch;color:#62708a !important}
.cart-layout,.checkout-grid-premium{gap:28px}
.cart-panel--premium,.checkout-panel--premium{padding:28px;border-radius:28px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%) !important;border:1px solid rgba(203,216,237,.9) !important;box-shadow:0 28px 70px rgba(9,20,44,.18),0 10px 22px rgba(124,77,255,.06) !important}
.cart-summary-card,.checkout-summary-panel{padding:24px;border-radius:28px;background:linear-gradient(180deg,#ffffff 0%,#f7f9fe 100%) !important;border:1px solid rgba(210,221,240,.96) !important;box-shadow:0 26px 68px rgba(8,18,40,.16),0 8px 18px rgba(124,77,255,.06) !important}
.cart-panel--premium,.checkout-panel--premium,.cart-summary-card,.checkout-summary-panel,.cart-panel--premium *, .checkout-panel--premium *, .cart-summary-card *, .checkout-summary-panel *{color:#15233f}
.cart-panel--premium .muted,.checkout-panel--premium .muted,.cart-summary-card .muted,.checkout-summary-panel .muted{color:#62708a !important}
.cart-list{display:grid;gap:18px}
.cart-item--premium{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px;align-items:center;padding:22px;border-radius:22px;background:linear-gradient(180deg,#ffffff 0%,#f5f8fd 100%) !important;border:1px solid rgba(212,223,240,.95) !important;box-shadow:0 16px 40px rgba(10,20,40,.08)}
.cart-item__meta h3{margin:0 0 10px;font-size:1.35rem;color:#10203d}
.cart-item__meta p{margin:0;color:#62708a !important}
.cart-item__price{display:inline-flex;align-items:center;justify-content:center;min-width:108px;padding:12px 16px;border-radius:16px;background:linear-gradient(135deg,rgba(124,77,255,.08),rgba(0,212,255,.10));border:1px solid rgba(124,77,255,.14);font-weight:800;color:#142445}
.cart-remove-link{padding:10px 13px;border-radius:14px;background:#f4f7fb;border:1px solid #d3ddea;color:#1d2c49;font-size:.92rem;font-weight:700}
.cart-summary-lines{gap:14px}
.cart-summary-lines p{padding:14px 16px;border-radius:18px;background:#f6f9ff !important;border:1px solid rgba(218,227,241,.85);box-shadow:inset 0 1px 0 rgba(255,255,255,.85)}
.cart-summary-lines p span{font-weight:600;color:#60708b}
.cart-summary-lines p strong{font-size:1rem;color:#0f1c35}
.cart-summary-total strong{font-size:1.1rem}
.cart-summary-actions{display:flex;flex-wrap:wrap;gap:12px}
.cart-summary-actions .button{flex:1 1 180px}
.guest-checkout-note{border:1px solid rgba(124,77,255,.16);background:linear-gradient(180deg,#14213c 0%,#101a31 100%)}
.checkout-methods{display:grid;gap:16px}
.checkout-method-card{position:relative;display:block;padding:0;border:0;background:transparent}
.checkout-method-card input[type="radio"]{position:absolute;top:18px;left:18px;width:18px;height:18px;accent-color:var(--accent)}
.checkout-method-card__body{display:flex;flex-direction:column;gap:6px;padding:20px 20px 20px 48px;border-radius:20px;background:linear-gradient(180deg,#ffffff 0%,#f7faff 100%);border:1px solid rgba(212,223,240,.95);box-shadow:0 14px 34px rgba(9,20,44,.07);transition:.18s ease;color:#15233f !important}
.checkout-method-card:hover .checkout-method-card__body{transform:translateY(-1px);box-shadow:0 18px 42px rgba(9,20,44,.10)}
.checkout-method-card input[type="radio"]:checked + .checkout-method-card__body{border-color:rgba(124,77,255,.58);box-shadow:0 0 0 3px rgba(124,77,255,.12),0 22px 50px rgba(124,77,255,.12);background:linear-gradient(180deg,#fcfbff 0%,#f6f4ff 100%)}
.checkout-method-card__body strong{font-size:1.08rem;color:#12223d !important}
.checkout-method-card__body small{color:#62708a !important;line-height:1.55}
.checkout-method-card.disabled .checkout-method-card__body{opacity:1;background:linear-gradient(180deg,#fbfcff 0%,#f6f8fc 100%)}
.premium-coupon-box{padding:16px;border-radius:20px;background:linear-gradient(180deg,#f9fbff 0%,#f4f8ff 100%) !important;border:1px solid rgba(214,224,240,.92)}
.premium-coupon-form{gap:10px}
.premium-coupon-form input[type="text"]{min-height:48px;padding:12px 14px;border-radius:14px;border:1px solid rgba(199,211,233,.95);background:#fff;color:#12223d;font-weight:600}
.order-summary-table{width:100%;border-collapse:separate;border-spacing:0 10px;margin-top:4px}
.order-summary-table thead th,.dashboard-table thead th{padding:12px 14px;border:0;background:#eff4ff !important;color:#22324d !important;font-size:.86rem;text-transform:uppercase;letter-spacing:.03em}
.order-summary-table thead th:first-child{border-radius:14px 0 0 14px}
.order-summary-table thead th:last-child{border-radius:0 14px 14px 0}
.order-summary-table tbody tr{box-shadow:0 10px 24px rgba(12,22,42,.06)}
.order-summary-table tbody td{padding:14px 14px;background:#ffffff !important;color:#14233f !important;border-top:1px solid rgba(220,228,240,.95);border-bottom:1px solid rgba(220,228,240,.95)}
.order-summary-table tbody td:first-child{border-left:1px solid rgba(220,228,240,.95);border-radius:16px 0 0 16px;font-weight:700}
.order-summary-table tbody td:last-child{border-right:1px solid rgba(220,228,240,.95);border-radius:0 16px 16px 0;font-weight:800}
.checkout-help-box{padding:18px 18px 16px;border-radius:20px;background:linear-gradient(180deg,#f9fbff 0%,#f5f8ff 100%) !important;border:1px solid rgba(213,223,240,.95) !important;color:#22324d !important}
.checkout-help-box p,.checkout-help-box strong{color:#22324d !important}
.checkout-panel .button,.cart-panel .button,.ideiy-cart .button,.ideiy-checkout .button{justify-content:center;text-align:center}
@media (max-width: 1024px){.cart-summary-actions{display:grid;grid-template-columns:1fr 1fr}.checkout-grid-premium{grid-template-columns:1fr}.checkout-summary-panel{position:static;top:auto}}
@media (max-width: 768px){.button--compact{width:100%}.cart-summary-actions{grid-template-columns:1fr}.cart-item__price{min-width:auto;justify-self:start}.premium-panel-head p{max-width:none}.cart-panel--premium,.checkout-panel--premium,.cart-summary-card,.checkout-summary-panel{padding:20px;border-radius:22px}}

/* Phase 54 alignment + product/sidebar restoration */
.brand-area{display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0;max-width:560px}
.brand-link{display:block;line-height:1.08}
.brand-tagline{display:block;margin:0;max-width:46ch;font-size:.95rem;line-height:1.5;color:#c2d0ec;opacity:.96;letter-spacing:.01em;text-wrap:balance}

.cart-layout,.checkout-grid-premium{align-items:start !important}
.cart-layout > .panel,.cart-layout > .cart-summary-card,.checkout-grid-premium > .panel,.checkout-grid-premium > .checkout-summary-panel{align-self:start !important;margin-top:0 !important}
.cart-summary-card,.checkout-summary-panel{top:88px}
.checkout-summary-panel{position:sticky}
.cart-panel--premium,.checkout-panel--premium,.cart-summary-card,.checkout-summary-panel{backdrop-filter:blur(18px)}
.cart-panel--premium::after,.checkout-panel--premium::after,.cart-summary-card::after,.checkout-summary-panel::after{content:"";position:absolute;inset:auto 0 0 0;height:1px;background:linear-gradient(90deg,transparent,rgba(124,77,255,.22),transparent);pointer-events:none}
.cart-panel--premium,.checkout-panel--premium{background:linear-gradient(180deg,rgba(255,255,255,.98) 0%,rgba(246,249,255,.98) 100%) !important}
.cart-summary-card,.checkout-summary-panel{background:linear-gradient(180deg,rgba(255,255,255,.99) 0%,rgba(247,249,254,.99) 100%) !important}
.premium-panel-head h1,.premium-panel-head h2{line-height:1.12}
.checkout-summary-panel .premium-panel-head,.cart-summary-card .premium-panel-head{margin-bottom:18px}
.order-summary-table tbody tr{box-shadow:none}
.order-summary-table tbody td{box-shadow:0 14px 34px rgba(12,22,42,.07)}
.order-summary-table tbody td + td{box-shadow:0 14px 34px rgba(12,22,42,.07)}

.product-side-card{position:sticky;top:96px;display:block;padding:0;background:transparent !important;border:0 !important;box-shadow:none !important;backdrop-filter:none !important;overflow:visible}
.product-side-stack{display:flex;flex-direction:column;gap:18px}
.product-purchase-card,.product-info-card,.product-actions-card{position:relative;overflow:hidden;padding:24px;border-radius:26px;background:linear-gradient(180deg,rgba(255,255,255,.98) 0%,rgba(245,248,255,.98) 100%) !important;border:1px solid rgba(210,221,240,.95) !important;box-shadow:0 26px 64px rgba(8,18,40,.15),0 8px 18px rgba(124,77,255,.05) !important}
.product-purchase-card::before,.product-info-card::before,.product-actions-card::before{content:"";position:absolute;inset:-18% auto auto -10%;width:180px;height:180px;background:radial-gradient(circle,rgba(0,212,255,.11),transparent 70%);pointer-events:none}
.product-purchase-card *, .product-info-card *, .product-actions-card *{color:#15233f}
.product-purchase-card .muted,.product-info-card .muted,.product-actions-card .muted{color:#62708a !important}
.product-card-heading{margin-bottom:18px}
.product-card-heading h3{margin:10px 0 8px;color:#13213b;font-size:1.32rem}
.product-card-heading p{margin:0;max-width:34ch}
.product-meta-list{display:grid;gap:12px}
.product-meta-list li{display:grid;grid-template-columns:minmax(120px,.82fr) minmax(0,1fr);gap:16px;align-items:center;padding:15px 16px;border:1px solid rgba(216,225,240,.96);border-radius:18px;background:linear-gradient(180deg,#ffffff 0%,#f6f9ff 100%);box-shadow:0 14px 34px rgba(10,20,40,.06)}
.product-meta-list li strong{font-size:.93rem;color:#4f6180}
.product-meta-list li span{text-align:right;font-weight:700;color:#10203d;word-break:break-word}
.plan-compare-card .plan-grid{gap:14px}
.plan-compare-card .plan-card{padding:18px 18px 16px;border-radius:18px;background:linear-gradient(180deg,#ffffff 0%,#f6f8ff 100%);border:1px solid rgba(214,223,240,.96);box-shadow:0 12px 30px rgba(10,20,40,.05)}
.plan-compare-card .plan-card strong,.plan-compare-card .plan-price{color:#11213d}
.plan-compare-card .plan-card ul{color:#5f708a}
.product-actions-card .cta-stack{gap:10px}
.product-actions-card .button,.product-purchase-card .button{width:100%}
.product-guest-note{margin-top:16px;padding:16px 18px;border-radius:18px;background:linear-gradient(180deg,#14213c 0%,#101a31 100%);border:1px solid rgba(124,77,255,.18)}
.purchase-actions .button--compact{min-height:42px;padding:9px 14px !important}

@media (max-width: 1024px){
  .product-side-card{position:static;top:auto}
  .cart-summary-card,.checkout-summary-panel{position:static;top:auto}
}
@media (max-width: 768px){
  .brand-tagline{display:none}
  .product-purchase-card,.product-info-card,.product-actions-card{padding:20px;border-radius:22px}
  .product-meta-list li{grid-template-columns:1fr;gap:8px}
  .product-meta-list li span{text-align:left}
}

.hero-grid{grid-template-columns:minmax(0,2.35fr) minmax(320px,.9fr);align-items:center;column-gap:28px;}
.hero-copy{max-width:none;padding-right:14px;}
.hero-copy p{max-width:68ch}
.hero h1{max-width:30ch;}
.hero-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;}
.hero-panel .metric-card{min-height:164px;}
@media (max-width: 1160px){
  .hero-grid{grid-template-columns:minmax(0,1.75fr) minmax(290px,.95fr);}
  .hero-panel{grid-template-columns:1fr;}
}
@media (max-width: 1024px){
  .hero-grid{grid-template-columns:1fr;}
  .hero-copy{padding-right:0;}
  .hero-panel{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width: 768px){
  .hero-panel{grid-template-columns:1fr;}
  .hero h1{max-width:none;}
}
.resource-premium-note{padding:16px;border-radius:18px;background:linear-gradient(180deg,#f8fbff 0%,#f2f7ff 100%);border:1px solid rgba(210,221,240,.95);color:#1e2d49;box-shadow:0 12px 28px rgba(15,23,42,.06);}
.resource-premium-note strong{display:block;margin-bottom:8px;color:#12223d;}
.resource-premium-note p{margin:0;color:#5d6c86;}


/* Phase 56 hero, product CTA, auth button refinements */
.hero-grid{grid-template-columns:minmax(0,1.75fr) minmax(420px,.95fr);align-items:center;column-gap:34px;}
.hero-copy{padding-right:26px;}
.hero h1{max-width:18ch;}
.hero-copy p{max-width:74ch;}
.hero-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch;}
.hero-panel .metric-card{min-height:170px;}
.hero-panel .metric-card:nth-child(3){grid-column:1 / -1;}
@media (max-width: 1160px){
  .hero-grid{grid-template-columns:minmax(0,1.45fr) minmax(360px,.95fr);}
  .hero h1{max-width:20ch;}
}
@media (max-width: 1024px){
  .hero-grid{grid-template-columns:1fr;}
  .hero-copy{padding-right:0;}
  .hero-panel{grid-template-columns:repeat(2,minmax(0,1fr));}
  .hero-panel .metric-card:nth-child(3){grid-column:1 / -1;}
}
@media (max-width: 640px){
  .hero-panel{grid-template-columns:1fr;}
  .hero-panel .metric-card:nth-child(3){grid-column:auto;}
}

.product-purchase-card .purchase-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;}
.product-purchase-card .purchase-actions .button{width:auto;flex:0 0 auto;min-width:0;}
.product-purchase-card .purchase-actions .purchase-primary,
.product-purchase-card .purchase-actions .purchase-secondary,
.product-purchase-card .purchase-actions .purchase-ghost{flex:1 1 0;}
@media (max-width: 768px){
  .product-purchase-card .purchase-actions .button{width:100%;flex:1 1 100%;}
}

.payment-method-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.payment-method-inline strong{white-space:nowrap;}
.payment-method-inline__list{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.payment-method-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:#f4f7ff;border:1px solid rgba(195,207,230,.95);font-size:.82rem;font-weight:700;color:#21314c;line-height:1;}
.payment-method-chip__icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:999px;background:linear-gradient(135deg,rgba(124,77,255,.14),rgba(0,212,255,.14));font-size:.76rem;}

.google-button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 14px;border-radius:12px;background:#4f8ff7 !important;border:1px solid rgba(79,143,247,.88) !important;box-shadow:0 12px 24px rgba(79,143,247,.22);color:#fff !important;font-weight:700;text-decoration:none;}
.google-button:hover{transform:translateY(-1px);box-shadow:0 16px 28px rgba(79,143,247,.28);}
.google-button__icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px;background:#fff;color:#ea4335;font-weight:900;font-size:1.2rem;box-shadow:0 4px 10px rgba(15,23,42,.12);flex:0 0 34px;}
.google-button__label{display:inline-flex;align-items:center;justify-content:center;line-height:1.2;}



.hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.95fr); gap: 28px; }
.hero-copy { max-width: 860px; }
.hero-copy h1 { max-width: 14ch; }
.hero-panel { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 18px; align-self: stretch; }
.hero-panel .metric-card { min-height: 210px; }
.hero-panel .metric-card-wide { grid-column: 1 / -1; min-height: 160px; }
.purchase-pending-notice, .purchase-pending-notice * { color: #0f172a !important; }
.purchase-pending-notice .muted { color: #334155 !important; }
.profile-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px; }
.profile-grid textarea { width:100%; min-height:120px; border:1px solid rgba(15,23,42,.14); border-radius:12px; padding:12px 14px; background:#fff; }
.profile-grid-span { grid-column:1 / -1; }
.affiliate-link-card { margin: 18px auto 24px; max-width: 760px; text-align:center; padding: 24px; border-radius: 22px; border:1px solid rgba(121,168,255,.28); background: linear-gradient(135deg, rgba(121,168,255,.14), rgba(255,255,255,.04)); box-shadow: var(--shadow); }
.affiliate-link-label { font-size:.92rem; color: var(--muted); text-transform: uppercase; letter-spacing:.08em; margin-bottom:10px; }
.affiliate-link-value { font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 800; word-break: break-all; margin-bottom: 16px; }
.affiliate-copy-button { min-width: 160px; }
.social-auth-card { margin-bottom: 18px; }
.google-button { display:inline-flex; align-items:center; gap:12px; padding:10px 18px; border-radius: 12px; background:#4285f4; color:#fff; font-weight:700; box-shadow: 0 10px 25px rgba(66,133,244,.22); }
.google-button__icon { width:36px; height:36px; border-radius:8px; background:#fff; color:#ea4335; display:inline-flex; align-items:center; justify-content:center; font-size:1.35rem; font-weight:900; }
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: none; }
  .hero-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hero-panel { grid-template-columns: 1fr; }
  .hero-panel .metric-card-wide { grid-column: auto; }
  .profile-grid { grid-template-columns: 1fr; }
}


/* v15 refinements */
.hero .container.hero-grid{grid-template-columns:minmax(0,2.2fr) minmax(430px,.92fr) !important;align-items:center;column-gap:44px !important;}
.hero-copy{max-width:none !important;}
.hero-copy h1{max-width:16ch;}
.hero-panel{display:grid !important;grid-template-columns:repeat(2,minmax(220px,1fr)) !important;gap:18px !important;align-self:start;max-width:560px;justify-self:end;width:100%;}
.hero-panel .metric-card{min-height:170px;}
.hero-panel .metric-card.metric-card-wide,.hero-panel .metric-card:nth-child(3){grid-column:1 / -1;min-height:150px;}
.purchase-pending-notice,.purchase-pending-notice *{color:#0f172a !important;}
.affiliate-link-card{text-align:center;align-items:center;}
.affiliate-link-value{font-size:1.08rem;font-weight:700;word-break:break-all;}
.affiliate-stats-grid .stat-card strong{display:block;margin-bottom:6px;}
.affiliate-stats-grid .stat-card span{display:block;line-height:1.45;}
.affiliate-stats-grid .stat-card strong::after{content:' ';}
@media (max-width: 1180px){
  .hero .container.hero-grid{grid-template-columns:minmax(0,1.6fr) minmax(380px,.95fr) !important;column-gap:28px !important;}
}
@media (max-width: 980px){
  .hero .container.hero-grid{grid-template-columns:1fr !important;}
  .hero-panel{justify-self:stretch;max-width:none;}
}
.ideiy-admin-table-wrap{overflow-x:auto;}
.ideiy-admin-compact-table th,.ideiy-admin-compact-table td{white-space:nowrap;}
.ideiy-admin-table-wrap-coupons input[type="text"],.ideiy-admin-table-wrap-coupons input[type="number"],.ideiy-admin-table-wrap-coupons input[type="datetime-local"],.ideiy-admin-table-wrap-coupons select{max-width:110px;width:100%;}
.ideiy-admin-table-wrap-coupons td:first-child input[type="text"]{max-width:100px;}


/* v16 fixes */
.affiliate-stats-grid .stat-card{display:flex;flex-direction:column;justify-content:center;gap:10px;min-height:132px;text-align:center;}
.affiliate-stats-grid .stat-card strong{display:flex;align-items:baseline;justify-content:center;gap:8px;margin:0;font-size:2rem;line-height:1.05;white-space:nowrap;}
.affiliate-stats-grid .stat-card strong small{font-size:.92rem;font-weight:700;opacity:.88;}
.affiliate-stats-grid .stat-card span{display:block;margin:0;font-size:.98rem;line-height:1.35;word-break:normal;}
.affiliate-copy-button.is-copied{background:linear-gradient(135deg,var(--accent-2),var(--accent));}
.empty-state.card,.empty-state.card h3,.empty-state.card p{color:#172033 !important;}
.empty-state.card p{opacity:.9;}
@media (max-width: 860px){
  .affiliate-stats-grid .stat-card strong{font-size:1.7rem;}
}

.affiliate-link-value{
  width:100%;
  max-width:640px;
  margin:0 auto 16px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(121,168,255,.24);
  background:rgba(10,18,42,.42);
  color:var(--text);
  text-align:center;
}
.affiliate-stats-grid .stat-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
  min-height:132px;
  text-align:center;
}
.affiliate-stats-grid .stat-card strong{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:10px;
  margin:0;
  font-size:2rem;
  line-height:1.05;
  white-space:nowrap;
}
.affiliate-stats-grid .stat-card .stat-value{display:inline-block;}
.affiliate-stats-grid .stat-card .stat-unit{
  display:inline-block;
  margin-left:2px;
  font-size:.92rem;
  font-weight:700;
  opacity:.88;
}
.affiliate-stats-grid .stat-card .stat-label{
  display:block;
  margin:0;
  font-size:.98rem;
  line-height:1.35;
  word-break:normal;
}
.empty-state.card,
.empty-state.card h3,
.empty-state.card p{
  color:#1e293b;
}
.empty-state.card p{opacity:.9;}


/* v18 affiliate + auth fixes */
.affiliate-stats-grid{gap:14px;}
.affiliate-stats-grid .stat-card{padding:16px 14px;min-height:118px;border-radius:18px;}
.affiliate-stats-grid .stat-card strong{display:flex;align-items:baseline;justify-content:center;gap:6px;flex-wrap:nowrap;font-size:1.6rem;line-height:1.05;}
.affiliate-stats-grid .stat-card .stat-value,.affiliate-stats-grid .stat-card .stat-unit{display:inline-block;white-space:nowrap;}
.affiliate-stats-grid .stat-card .stat-unit{margin-left:0;font-size:.8rem;letter-spacing:.02em;opacity:.85;}
.affiliate-stats-grid .stat-card .stat-label{display:block;font-size:.88rem;line-height:1.3;max-width:13ch;margin:0 auto;color:#dbe4f3;word-break:normal;overflow-wrap:anywhere;}
.notifications-empty,.notifications-empty *,.empty-state,.empty-state *{color:#172033 !important;}
.affiliate-copy-button{cursor:pointer;}
.affiliate-copy-button.is-copied{background:linear-gradient(135deg,var(--accent-2),var(--accent));}
@media (max-width: 1200px){
  .affiliate-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width: 860px){
  .affiliate-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .affiliate-stats-grid .stat-card strong{font-size:1.45rem;}
}
@media (max-width: 560px){
  .affiliate-stats-grid{grid-template-columns:1fr;}
}


.affiliate-history-grid {
  margin-top: 24px;
}
.affiliate-stats-grid.stats-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1200px) {
  .affiliate-stats-grid.stats-grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .affiliate-stats-grid.stats-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* v27 mobile header language + auth row */
.label-mobile{display:none;}
.label-desktop{display:inline;}
@media (max-width: 768px){
  .nav-shell{grid-template-columns:1fr;row-gap:12px;padding:14px 0;}
  .brand-area{max-width:none;}
  .primary-nav{order:2;}
  .header-actions{order:3;width:100%;display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;scrollbar-width:none;}
  .header-actions::-webkit-scrollbar{display:none;}
  .header-actions--guest > * + *{position:relative;padding-left:14px;}
  .header-actions--guest > * + *::before{content:'-';position:absolute;left:3px;top:50%;transform:translateY(-50%);color:rgba(255,255,255,.68);font-weight:700;}
  .header-actions .lang-switcher{flex:0 0 auto;gap:4px;padding:2px 4px;background:rgba(124,77,255,.10);}
  .header-actions .lang-link{min-width:32px;height:28px;padding:0 8px;font-size:11px;}
  .header-actions--guest .button{flex:0 0 auto;padding:0;border:0 !important;background:transparent !important;box-shadow:none !important;min-height:auto;border-radius:0;color:var(--text) !important;font-size:14px;font-weight:700;line-height:1.2;white-space:nowrap;}
  .header-actions--guest .button.ghost{color:var(--text) !important;}
  .header-actions--guest .header-action-button:hover,.header-actions--guest .header-action-button:focus{transform:none;opacity:.92;}
  .label-desktop{display:none;}
  .label-mobile{display:inline;}
}

/* v28 mobile UX tightening */
html,body{
  max-width:100%;
  overflow-x:clip;
}
body{
  overflow-wrap:anywhere;
}
.site-main,.site-footer,.site-header,.container,.card,.product-card,.product-side-card,.auth-card,.content-card,.table-card{
  max-width:100%;
}
img,svg,video,iframe,canvas,table,pre,code,.account-table,.product-card__thumb img,.entry-content img{
  max-width:100%;
}
pre,code,.account-table,.table-card,.ideiy-admin-table-wrap,.purchase-table-wrap,.prose-content table{
  overflow-x:auto;
}
@media (max-width: 768px){
  .container{width:min(100% - 28px, 100%);}
  .site-main{overflow-x:hidden;}
  .brand-area{min-width:0;}
  .brand-link{font-size:1.05rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;display:block;}
  .menu-list{display:none;}
  .hero{padding:26px 0 8px;}
  .hero .container.hero-grid{grid-template-columns:1fr !important;gap:14px !important;}
  .hero-copy{padding-right:0 !important;}
  .hero-copy h1,.hero h1{max-width:none !important;font-size:clamp(26px,7.6vw,36px) !important;line-height:1.08;}
  .hero-copy p,.hero p{font-size:.96rem;max-width:none;}
  .hero-panel,.categories-strip,.section-gap:nth-of-type(4){display:none !important;}
  .hero-actions{display:grid !important;grid-template-columns:1fr !important;gap:10px !important;}
  .hero-actions .button{width:100%;justify-content:center;}
  .hero-actions .button.ghost{display:none !important;}
  .section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;}
  .section-heading .hero-copy h2{font-size:1.45rem;line-height:1.15;}
  .content-grid,.content-grid.three-col,.dashboard-shell,.account-layout,.auth-shell,.archive-shell,.product-hero-shell,.doc-layout,.footer-grid{grid-template-columns:1fr !important;gap:14px;}
  .product-card,.card,.feature-box,.metric-card,.auth-card,.content-card,.account-sidebar,.product-purchase-card,.product-info-card,.product-actions-card,.cart-panel--premium,.checkout-panel--premium,.cart-summary-card{padding:18px !important;border-radius:20px;}
  .product-card__meta,.badge-row,.tab-row,.button-row{gap:8px;}
  .button,.auth-card input[type=submit]{min-height:46px;padding:12px 16px;font-size:.96rem;}
  .product-side-card{position:static;top:auto;}
  .purchase-panel__header,.purchase-summary,.checkout-summary,.cart-summary-card{margin-top:0 !important;}
  .stats-grid,.affiliate-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px;}
  .affiliate-stats-grid .stat-card:last-child,
  .stats-grid .stat-card:last-child{grid-column:1 / -1;}
  .account-menu{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
  .account-menu a{min-width:0;}
  .page-id .entry-content,
  .entry-content,
  .prose-content{overflow-wrap:anywhere;word-break:break-word;}
}
@media (max-width: 480px){
  .container{width:min(100% - 22px, 100%);}
  .header-actions{gap:6px !important;}
  .header-actions .lang-link{min-width:30px;}
  .hero-copy h1,.hero h1{font-size:clamp(24px,8.5vw,32px) !important;}
  .content-grid,.stats-grid,.affiliate-stats-grid,.account-menu{grid-template-columns:1fr !important;}
  .product-card__meta{display:flex;flex-wrap:wrap;}
}
