/* ============================================================
   AI Sigorta Dashboard — Tam Responsive Frontend Styles
   Breakpoints:
     Desktop  → 1025px+
     Tablet   → 768px – 1024px
     Mobile   → 480px – 767px
     XS       → 0 – 479px
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Lora:ital,wght@0,400;1,400&display=swap');

/* ── Design Tokens ── */
:root {
    --aid-primary:        #1e3a5f;
    --aid-primary-light:  #2a5298;
    --aid-accent:         #f59e0b;
    --aid-accent-light:   #fbbf24;
    --aid-success:        #10b981;
    --aid-danger:         #ef4444;
    --aid-purple:         #7c3aed;
    --aid-surface:        #ffffff;
    --aid-surface-2:      #f8fafc;
    --aid-border:         #e2e8f0;
    --aid-text:           #1e293b;
    --aid-text-muted:     #64748b;
    --aid-shadow-sm:      0 1px 3px rgba(0,0,0,.08);
    --aid-shadow:         0 4px 16px rgba(0,0,0,.10);
    --aid-shadow-lg:      0 12px 40px rgba(0,0,0,.15);
    --aid-radius:         16px;
    --aid-radius-sm:      10px;
    --aid-font:           'Plus Jakarta Sans', sans-serif;
    --aid-touch-target:   44px;
}

/* ── Base ── */
.aid-dashboard *, .aid-dashboard *::before, .aid-dashboard *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
.aid-dashboard {
    font-family: var(--aid-font);
    color: var(--aid-text);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 48px;
    -webkit-font-smoothing: antialiased;
}
.aid-dashboard img { max-width: 100%; height: auto; display: block; }

/* ── Category Nav ── */
.aid-category-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}
.aid-category-nav::-webkit-scrollbar { display: none; }
.aid-category-nav__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--aid-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.aid-category-nav__tabs { display: flex; gap: 8px; flex-shrink: 0; }
.aid-cat-tab {
    padding: 9px 18px;
    border-radius: 100px;
    border: 2px solid var(--aid-border);
    background: var(--aid-surface);
    font-family: var(--aid-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--aid-text-muted);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .2s ease;
    min-height: var(--aid-touch-target);
    display: inline-flex;
    align-items: center;
    scroll-snap-align: start;
}
.aid-cat-tab:hover { border-color: var(--aid-primary); color: var(--aid-primary); }
.aid-cat-tab.active {
    background: var(--aid-primary);
    border-color: var(--aid-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(30,58,95,.25);
}

/* ── Loading ── */
.aid-loading {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 80px 24px; gap: 20px; min-height: 300px;
}
.aid-loading__spinner { width: 60px; height: 60px; }
.aid-spinner-ring {
    width: 100%; height: 100%;
    border: 4px solid var(--aid-border);
    border-top-color: var(--aid-primary);
    border-radius: 50%;
    animation: aid-spin 0.9s linear infinite;
}
@keyframes aid-spin { to { transform: rotate(360deg); } }
.aid-loading__text { text-align: center; }
.aid-loading__title { font-size: 17px; font-weight: 700; color: var(--aid-primary); display: block; margin-bottom: 6px; }
.aid-loading__sub   { font-size: 13px; color: var(--aid-text-muted); display: block; }

/* ── Hero ── */
.aid-hero {
    background: linear-gradient(135deg, var(--aid-primary) 0%, var(--aid-primary-light) 55%, #3b82f6 100%);
    border-radius: var(--aid-radius);
    padding: 44px 40px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    animation: aid-fade-up .5s ease both;
}
.aid-hero__bg-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255,255,255,.06) 0%, transparent 55%),
        radial-gradient(circle at 85% 15%, rgba(245,158,11,.14) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(59,130,246,.1) 0%, transparent 40%);
    pointer-events: none;
}
.aid-hero__body {
    position: relative;
    display: flex; align-items: center;
    gap: 28px; flex-wrap: nowrap;
}
.aid-hero__icon {
    font-size: 76px; line-height: 1;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.25));
    flex-shrink: 0;
    animation: aid-bounce 3s ease-in-out infinite;
}
@keyframes aid-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.aid-hero__text { flex: 1; min-width: 0; }
.aid-hero__greeting {
    font-size: 12px; opacity: .75; margin: 0 0 6px;
    text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
}
.aid-hero__headline {
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 800; margin: 0 0 10px;
    line-height: 1.2; word-break: break-word;
}
.aid-hero__sub { font-size: 15px; opacity: .85; margin: 0; line-height: 1.55; }
.aid-hero__cta {
    background: var(--aid-accent); color: #1a1a1a;
    border: none; border-radius: 100px;
    padding: 14px 28px; font-family: var(--aid-font);
    font-size: 14px; font-weight: 700; cursor: pointer;
    white-space: nowrap; flex-shrink: 0;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(245,158,11,.4);
    min-height: var(--aid-touch-target);
}
.aid-hero__cta:hover { background: var(--aid-accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,.5); }

/* ── Urgency Banner ── */
.aid-urgency-banner {
    background: linear-gradient(90deg, #7c3aed, #c026d3);
    color: white; border-radius: var(--aid-radius-sm);
    padding: 14px 18px; display: flex; align-items: center;
    gap: 10px; margin-bottom: 20px;
    font-size: 14px; font-weight: 600;
    animation: aid-pulse-glow 2s ease-in-out infinite;
}
@keyframes aid-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,.35); }
    50%       { box-shadow: 0 0 0 6px rgba(124,58,237,0); }
}
.aid-urgency-banner__icon    { font-size: 20px; flex-shrink: 0; }
.aid-urgency-banner__msg     { flex: 1; line-height: 1.4; }
.aid-urgency-banner__expires { font-size: 11px; opacity: .75; white-space: nowrap; flex-shrink: 0; }
.aid-urgency-banner__close {
    background: none; border: none; color: white; cursor: pointer;
    font-size: 15px; padding: 4px 8px; border-radius: 50%;
    transition: background .2s; line-height: 1; flex-shrink: 0;
    min-width: var(--aid-touch-target); min-height: var(--aid-touch-target);
    display: flex; align-items: center; justify-content: center;
}
.aid-urgency-banner__close:hover { background: rgba(255,255,255,.2); }

/* ── Stats Grid — 4 col desktop ── */
.aid-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px; margin-bottom: 28px;
}
.aid-stat-card {
    background: var(--aid-surface); border: 1px solid var(--aid-border);
    border-radius: var(--aid-radius-sm); padding: 18px 16px;
    display: flex; align-items: center; gap: 14px;
    transition: all .22s; animation: aid-fade-up .5s ease both;
    position: relative; overflow: hidden;
}
.aid-stat-card::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--aid-primary), var(--aid-primary-light));
    transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.aid-stat-card:hover::after { transform: scaleX(1); }
.aid-stat-card:hover { transform: translateY(-3px); box-shadow: var(--aid-shadow); border-color: var(--aid-primary); }
.aid-stat-card__icon  { font-size: 30px; flex-shrink: 0; line-height: 1; }
.aid-stat-card__value { font-size: 18px; font-weight: 800; color: var(--aid-primary); line-height: 1; display: block; }
.aid-stat-card__label { font-size: 11px; color: var(--aid-text-muted); font-weight: 500; display: block; margin: 3px 0 2px; line-height: 1.3; }
.aid-stat-card__trend { font-size: 11px; color: var(--aid-success); font-weight: 700; }

/* ── Sections ── */
.aid-section { margin-bottom: 28px; }
.aid-section__header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; gap: 10px; flex-wrap: wrap;
}
.aid-section__title { font-size: 17px; font-weight: 700; color: var(--aid-text); margin: 0; line-height: 1.3; }

/* ── Refresh Button ── */
.aid-refresh-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--aid-surface-2); border: 1px solid var(--aid-border);
    border-radius: 100px; padding: 6px 14px;
    font-family: var(--aid-font); font-size: 12px; font-weight: 600;
    color: var(--aid-text-muted); cursor: pointer; transition: all .2s;
    min-height: var(--aid-touch-target); flex-shrink: 0;
}
.aid-refresh-btn:hover { background: var(--aid-primary); color: white; border-color: var(--aid-primary); }
.aid-refresh-icon { display: inline-block; transition: transform .4s; }
.aid-refresh-btn:hover .aid-refresh-icon { transform: rotate(180deg); }
.aid-refresh-btn.loading .aid-refresh-icon { animation: aid-spin .8s linear infinite; }

/* ── Info Cards — 3 col desktop ── */
.aid-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aid-info-card {
    background: var(--aid-surface); border: 1px solid var(--aid-border);
    border-radius: var(--aid-radius); padding: 22px;
    position: relative; overflow: hidden;
    transition: all .25s ease; animation: aid-fade-up .5s ease both;
    display: flex; flex-direction: column;
}
.aid-info-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.aid-info-card.theme-blue::before   { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.aid-info-card.theme-green::before  { background: linear-gradient(90deg, #10b981, #34d399); }
.aid-info-card.theme-amber::before  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.aid-info-card.theme-red::before    { background: linear-gradient(90deg, #ef4444, #f87171); }
.aid-info-card.theme-purple::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.aid-info-card:hover { transform: translateY(-4px); box-shadow: var(--aid-shadow-lg); }
.aid-info-card__header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.aid-info-card__icon   { font-size: 34px; line-height: 1; }
.aid-info-card__badge  { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.aid-info-card__badge.badge-new { background: #d1fae5; color: #059669; }
.aid-info-card__badge.badge-imp { background: #fee2e2; color: #dc2626; }
.aid-info-card__badge.badge-dis { background: #fef3c7; color: #d97706; }
.aid-info-card__title  { font-size: 15px; font-weight: 700; margin: 0 0 8px; color: var(--aid-text); line-height: 1.3; }
.aid-info-card__body   { font-size: 13px; line-height: 1.6; color: var(--aid-text-muted); margin: 0 0 16px; flex: 1; }
.aid-info-card__cta    { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--aid-primary); cursor: pointer; transition: gap .2s; text-decoration: none; margin-top: auto; }
.aid-info-card__cta:hover { gap: 9px; }

/* ── Two Column (Tip + Quiz) ── */
.aid-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; align-items: start; }

/* ── Tip Box ── */
.aid-tip-box { background: linear-gradient(135deg, #fefce8, #fef3c7); border: 1px solid #fde68a; border-radius: var(--aid-radius); padding: 22px; animation: aid-fade-up .5s ease both; }
.aid-tip-box__header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.aid-tip-icon    { font-size: 22px; flex-shrink: 0; }
.aid-tip-title   { font-size: 12px; font-weight: 700; color: #92400e; text-transform: uppercase; letter-spacing: .07em; }
.aid-tip-content { font-size: 14px; line-height: 1.65; color: #78350f; margin: 0 0 14px; font-family: 'Lora', serif; font-style: italic; }
.aid-tip-badge   { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 12px; background: #fde68a; border-radius: 100px; color: #92400e; }

/* ── Quiz Box ── */
.aid-quiz-box { background: var(--aid-surface); border: 1px solid var(--aid-border); border-radius: var(--aid-radius); padding: 22px; animation: aid-fade-up .5s ease both; }
.aid-quiz-box__header { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--aid-primary); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px; }
.aid-quiz-question { font-size: 14px; font-weight: 600; margin: 0 0 14px; color: var(--aid-text); line-height: 1.45; }
.aid-quiz-options { display: flex; flex-direction: column; gap: 8px; }
.aid-quiz-option {
    padding: 11px 16px; border: 2px solid var(--aid-border);
    border-radius: var(--aid-radius-sm); font-family: var(--aid-font);
    font-size: 13px; font-weight: 500; cursor: pointer;
    background: var(--aid-surface-2); text-align: left;
    transition: all .2s; color: var(--aid-text);
    min-height: var(--aid-touch-target); line-height: 1.4;
}
.aid-quiz-option:hover { border-color: var(--aid-primary); background: #eff6ff; color: var(--aid-primary); }
.aid-quiz-option.selected { border-color: var(--aid-accent); background: #fffbeb; color: #92400e; font-weight: 700; }

/* ── Products ── */
.aid-products-list { display: grid; gap: 10px; }
.aid-product-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--aid-surface); border: 1px solid var(--aid-border); border-radius: var(--aid-radius-sm); transition: box-shadow .2s; }
.aid-product-item:hover { box-shadow: var(--aid-shadow); }
.aid-product-item__img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--aid-surface-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.aid-product-item__name   { font-weight: 700; font-size: 14px; margin: 0 0 3px; }
.aid-product-item__meta   { font-size: 12px; color: var(--aid-text-muted); }
.aid-product-item__status { margin-left: auto; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 100px; background: #d1fae5; color: #065f46; flex-shrink: 0; white-space: nowrap; }

/* ── News ── */
.aid-news-badge  { font-size: 11px; font-weight: 700; padding: 4px 12px; background: linear-gradient(90deg, var(--aid-primary), var(--aid-primary-light)); color: white; border-radius: 100px; white-space: nowrap; flex-shrink: 0; }
.aid-news-list   { display: grid; gap: 10px; }
.aid-news-loading { color: var(--aid-text-muted); font-size: 13px; padding: 20px 0; }
.aid-news-item {
    display: flex; gap: 14px; padding: 16px;
    background: var(--aid-surface); border: 1px solid var(--aid-border);
    border-radius: var(--aid-radius-sm); transition: all .2s;
    animation: aid-fade-up .5s ease both;
}
.aid-news-item:hover { border-color: var(--aid-primary); box-shadow: var(--aid-shadow); }
.aid-news-item__importance { width: 5px; border-radius: 100px; flex-shrink: 0; align-self: stretch; min-height: 40px; }
.importance-high   .aid-news-item__importance { background: var(--aid-danger); }
.importance-medium .aid-news-item__importance { background: var(--aid-accent); }
.importance-low    .aid-news-item__importance { background: var(--aid-success); }
.aid-news-item__content { flex: 1; min-width: 0; }
.aid-news-item__title   { font-size: 14px; font-weight: 700; margin: 0 0 5px; line-height: 1.35; }
.aid-news-item__summary { font-size: 13px; color: var(--aid-text-muted); margin: 0 0 10px; line-height: 1.5; }
.aid-news-item__footer  { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.aid-news-item__date    { font-size: 11px; color: var(--aid-text-muted); flex-shrink: 0; }
.aid-news-item__action  { font-size: 11px; font-weight: 700; color: var(--aid-primary); cursor: pointer; background: none; border: 1px solid var(--aid-primary); border-radius: 100px; padding: 5px 12px; font-family: var(--aid-font); transition: all .2s; white-space: nowrap; min-height: 32px; display: inline-flex; align-items: center; }
.aid-news-item__action:hover { background: var(--aid-primary); color: white; }

/* ── Bottom CTA ── */
.aid-bottom-cta {
    background: linear-gradient(135deg, var(--aid-primary) 0%, #1d4ed8 100%);
    border-radius: var(--aid-radius); padding: 36px 40px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap; color: white; margin-bottom: 20px;
    position: relative; overflow: hidden;
}
.aid-bottom-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 50%, rgba(255,255,255,.06), transparent 60%); }
.aid-bottom-cta__content { flex: 1; min-width: 0; position: relative; }
.aid-bottom-cta h3   { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.aid-bottom-cta p    { font-size: 14px; opacity: .85; margin: 0; line-height: 1.5; }
.aid-bottom-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; position: relative; }

/* ── Buttons ── */
.aid-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 22px; border-radius: 100px;
    font-family: var(--aid-font); font-size: 14px; font-weight: 700;
    text-decoration: none; cursor: pointer; border: 2px solid transparent;
    transition: all .2s; white-space: nowrap; min-height: var(--aid-touch-target);
}
.aid-btn--primary { background: var(--aid-accent); color: #1a1a1a; box-shadow: 0 4px 12px rgba(245,158,11,.3); }
.aid-btn--primary:hover { background: var(--aid-accent-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,158,11,.4); }
.aid-btn--secondary { background: rgba(255,255,255,.15); color: white; border-color: rgba(255,255,255,.4); backdrop-filter: blur(8px); }
.aid-btn--secondary:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }

/* ── Footer Note ── */
.aid-footer-note { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--aid-text-muted); padding: 12px 0; border-top: 1px solid var(--aid-border); flex-wrap: wrap; gap: 6px; }

/* ── Error State ── */
.aid-error-state { text-align: center; padding: 60px 24px; }
.aid-error-icon { font-size: 48px; margin-bottom: 16px; }
.aid-error-state h3 { font-size: 18px; margin: 0 0 8px; }
.aid-error-state p  { color: var(--aid-text-muted); margin-bottom: 24px; font-size: 14px; }

/* ── Account Widget ── */
.aid-account-widget { background: linear-gradient(135deg, #f0f7ff, #e8f4ff); border: 1px solid #bfdbfe; border-radius: var(--aid-radius); padding: 22px; margin-bottom: 24px; }
.aid-account-widget__header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.aid-account-widget__icon  { font-size: 34px; flex-shrink: 0; }
.aid-account-widget__title { font-size: 15px; font-weight: 700; margin: 0 0 3px; color: var(--aid-primary); }
.aid-account-widget__sub   { font-size: 12px; color: var(--aid-text-muted); margin: 0; }
.aid-mini-tip { display: flex; gap: 10px; padding: 12px; background: white; border-radius: var(--aid-radius-sm); margin-bottom: 14px; border: 1px solid #bfdbfe; }
.aid-mini-tip__icon { font-size: 18px; flex-shrink: 0; }
.aid-mini-tip p { font-size: 13px; margin: 0; line-height: 1.5; }
.aid-account-widget__cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; background: var(--aid-primary); color: white; text-decoration: none; border-radius: var(--aid-radius-sm); font-size: 14px; font-weight: 700; transition: all .2s; min-height: var(--aid-touch-target); }
.aid-account-widget__cta:hover { background: var(--aid-primary-light); transform: translateY(-1px); }
.aid-account-widget__cta span  { transition: transform .2s; }
.aid-account-widget__cta:hover span { transform: translateX(4px); }

/* ── Animations ── */
@keyframes aid-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   TABLET  768px – 1024px
   ============================================================= */
@media (max-width: 1024px) {
    .aid-dashboard   { padding: 0 16px 40px; }
    .aid-hero        { padding: 36px 28px; }
    .aid-hero__icon  { font-size: 60px; }
    .aid-hero__headline { font-size: clamp(18px, 2.8vw, 26px); }

    /* Stats 2×2 */
    .aid-stats-grid  { grid-template-columns: repeat(2, 1fr); }

    /* Cards 2 col */
    .aid-cards-grid  { grid-template-columns: repeat(2, 1fr); }

    /* Bottom CTA */
    .aid-bottom-cta  { padding: 28px 28px; }
    .aid-bottom-cta h3 { font-size: 18px; }
}

/* =============================================================
   MOBILE  480px – 767px
   ============================================================= */
@media (max-width: 767px) {
    :root { --aid-radius: 14px; --aid-radius-sm: 10px; }
    .aid-dashboard { padding: 0 14px 36px; }

    /* Nav — full width scroll strip */
    .aid-category-nav {
        margin: 0 -14px;
        padding: 14px 14px;
        gap: 0;
    }
    .aid-category-nav__label { display: none; }
    .aid-category-nav__tabs  { gap: 6px; }
    .aid-cat-tab { font-size: 12px; padding: 8px 13px; min-height: 38px; }

    /* Hero stacked */
    .aid-hero { padding: 24px 18px; }
    .aid-hero__body { flex-direction: column; align-items: flex-start; gap: 16px; }
    .aid-hero__icon { font-size: 48px; }
    .aid-hero__headline { font-size: 19px; }
    .aid-hero__sub  { font-size: 13px; }
    .aid-hero__cta  { width: 100%; justify-content: center; font-size: 14px; }

    /* Urgency banner compact */
    .aid-urgency-banner { font-size: 12px; padding: 11px 14px; flex-wrap: wrap; }
    .aid-urgency-banner__expires { display: none; }

    /* Stats 2 col compact */
    .aid-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
    .aid-stat-card  { padding: 14px 12px; gap: 10px; }
    .aid-stat-card__icon  { font-size: 24px; }
    .aid-stat-card__value { font-size: 15px; }
    .aid-stat-card__label { font-size: 10px; }
    .aid-stat-card__trend { font-size: 10px; }

    /* Sections */
    .aid-section { margin-bottom: 20px; }
    .aid-section__title { font-size: 15px; }

    /* Cards 1 col */
    .aid-cards-grid { grid-template-columns: 1fr; gap: 11px; }
    .aid-info-card  { padding: 18px; }
    .aid-info-card__icon  { font-size: 28px; }
    .aid-info-card__title { font-size: 14px; }
    .aid-info-card__body  { font-size: 12px; }

    /* Two col → stacked */
    .aid-two-col { grid-template-columns: 1fr; gap: 11px; margin-bottom: 20px; }
    .aid-tip-box  { padding: 18px; }
    .aid-quiz-box { padding: 18px; }
    .aid-tip-content   { font-size: 13px; }
    .aid-quiz-question { font-size: 13px; }
    .aid-quiz-option   { font-size: 12px; padding: 10px 14px; }

    /* Products */
    .aid-product-item { padding: 12px 14px; gap: 12px; }
    .aid-product-item__img    { width: 44px; height: 44px; font-size: 18px; }
    .aid-product-item__name   { font-size: 13px; }
    .aid-product-item__status { font-size: 10px; padding: 3px 10px; }

    /* News */
    .aid-news-item    { padding: 13px; gap: 10px; }
    .aid-news-item__title   { font-size: 13px; }
    .aid-news-item__summary { font-size: 12px; }
    .aid-news-item__footer  { flex-direction: column; align-items: flex-start; gap: 6px; }
    .aid-news-item__action  { align-self: flex-end; }

    /* Bottom CTA stacked */
    .aid-bottom-cta { padding: 22px 18px; flex-direction: column; align-items: stretch; text-align: center; }
    .aid-bottom-cta h3 { font-size: 16px; }
    .aid-bottom-cta p  { font-size: 13px; }
    .aid-bottom-cta__actions { justify-content: center; }
    .aid-btn { font-size: 13px; padding: 11px 18px; }

    /* Account widget */
    .aid-account-widget { padding: 18px; }
}

/* =============================================================
   EXTRA SMALL  < 480px
   ============================================================= */
@media (max-width: 479px) {
    .aid-dashboard { padding: 0 12px 28px; }

    /* Hero */
    .aid-hero { padding: 20px 16px; }
    .aid-hero__icon { font-size: 38px; animation: none; }
    .aid-hero__headline { font-size: 16px; }
    .aid-hero__greeting { font-size: 10px; }
    .aid-hero__sub { font-size: 12px; }

    /* Stats */
    .aid-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .aid-stat-card  { padding: 12px 10px; flex-direction: column; align-items: flex-start; gap: 5px; }
    .aid-stat-card__icon  { font-size: 20px; }
    .aid-stat-card__value { font-size: 14px; }
    .aid-stat-card__label { font-size: 9px; }
    .aid-stat-card__trend { font-size: 9px; display: none; }

    /* Nav tabs tighter */
    .aid-cat-tab { font-size: 11px; padding: 7px 11px; }

    /* Urgency */
    .aid-urgency-banner { font-size: 11px; }
    .aid-urgency-banner__icon { font-size: 15px; }

    /* Section */
    .aid-section__title { font-size: 14px; }
    .aid-section__header { flex-wrap: nowrap; }

    /* Cards */
    .aid-info-card { padding: 15px; }

    /* Bottom CTA full-width buttons */
    .aid-bottom-cta { padding: 18px 14px; }
    .aid-bottom-cta h3 { font-size: 14px; }
    .aid-bottom-cta__actions { flex-direction: column; }
    .aid-btn { width: 100%; font-size: 13px; }

    /* Hide refresh text on xs — icon only */
    .aid-refresh-btn .aid-refresh-label { display: none; }
    .aid-refresh-btn { min-width: var(--aid-touch-target); justify-content: center; padding: 0 12px; }
}

/* =============================================================
   PRINT
   ============================================================= */
@media print {
    .aid-hero { background: #1e3a5f !important; print-color-adjust: exact; }
    .aid-cat-tab, .aid-refresh-btn, .aid-hero__cta,
    .aid-bottom-cta__actions, .aid-urgency-banner { display: none !important; }
    .aid-dashboard { padding: 0; }
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
    .aid-hero__icon, .aid-stat-card, .aid-info-card,
    .aid-news-item, .aid-tip-box, .aid-quiz-box,
    .aid-urgency-banner { animation: none !important; }
    * { transition-duration: .01ms !important; }
}
