/* Self-hosted Persian font: reliable on Windows and restricted networks. */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/clouda_web_assets/static/src/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/clouda_web_assets/static/src/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/clouda_web_assets/static/src/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/clouda_web_assets/static/src/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --burna-primary: #4361ee;
    --burna-success: #06d6a0;
    --burna-warning: #ffd166;
    --burna-danger: #ef476f;
    --burna-bg: #f8f9fa;
    --burna-card: #ffffff;
    --burna-border: #e2e8f0;
    --burna-text: #475569;
    --burna-muted: #94a3b8;
    --burna-font: 'Vazirmatn', 'Vazir', Tahoma, Arial, sans-serif;
}

html, body, *, button, input, select, textarea {
    font-family: var(--burna-font) !important;
}

/* Hide default Odoo elements */
#wrapwrap > header, #wrapwrap > footer { display: none !important; }

/* Header Styles */
.burna-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.25rem; min-height: 76px; padding: 0.65rem 1.25rem;
    background: rgba(255,255,255,.94); border-bottom: 1px solid #e8edf5;
    box-shadow: 0 5px 22px rgba(30,48,80,.045); backdrop-filter: blur(14px);
    position: sticky; top: 0; z-index: 100;
}
.burna-header-start { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.burna-brand {
    display: inline-flex; align-items: center; gap: 0.65rem;
    text-decoration: none; color: #27334a;
    padding: 0.25rem 0.35rem; border-radius: 0.8rem;
    transition: background 0.2s ease, transform 0.2s ease;
}
.burna-brand:hover { color: var(--burna-primary); transform: translateY(-1px); text-decoration: none; }
.burna-brand-mark { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; color: #fff; border-radius: .85rem; background: linear-gradient(145deg, #3854db, #7183f5); box-shadow: 0 7px 17px rgba(67,97,238,.24); }
.burna-brand-mark svg { width: 1.8rem; height: 1.8rem; }
.burna-brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.burna-brand-logo {
    width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
    object-fit: contain; background: white; border: 1px solid var(--burna-border);
    padding: 0.25rem;
}
.burna-brand-text { color: #26324a; font-weight: 900; font-size: 1.05rem; letter-spacing: .01em; }
.burna-brand-copy small { margin-top: .16rem; color: #9aa5b7; font-family: Arial, sans-serif !important; font-size: .58rem; font-weight: 700; letter-spacing: .08em; }
.burna-header-divider { width: 1px; height: 2rem; margin: 0 .25rem; background: #e8ecf2; }
.burna-menu-btn, .burna-action-btn {
    width: 2.55rem; height: 2.55rem; display: flex; align-items: center; justify-content: center;
    border: 1px solid #e8ecf2; border-radius: 0.8rem; background: #fafbfc; color: #69768b;
    cursor: pointer; transition: all 0.2s; position: relative;
}
.burna-menu-btn svg, .burna-action-btn svg { width: 1.15rem; height: 1.15rem; }
.burna-menu-btn:hover, .burna-action-btn:hover { color: var(--burna-primary); border-color: #dce3ff; background: #f2f5ff; box-shadow: 0 5px 12px rgba(67,97,238,.09); transform: translateY(-1px); }
.burna-search {
    display: flex; align-items: center; gap: 0.5rem;
    background: #f8fafc; border: 1px solid #e8ecf2;
    border-radius: 0.8rem; padding: 0.55rem 0.75rem; min-width: 15rem;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.burna-search:focus-within { border-color: #cdd6ff; background: #fff; box-shadow: 0 0 0 3px rgba(67,97,238,.08); }
.burna-search svg { color: #9aa5b7; flex: 0 0 auto; }
.burna-search input {
    border: none; background: transparent; outline: none;
    width: 100%; min-width: 0; font-size: 0.78rem; color: var(--burna-text);
}
.burna-search input::placeholder { color: #a2acbc; }
.burna-search kbd { padding: .14rem .38rem; border: 1px solid #e0e5ec; border-radius: .35rem; color: #98a3b4; background: #fff; box-shadow: 0 1px 2px rgba(30,48,80,.05); font: 600 .58rem Arial, sans-serif !important; direction: ltr; white-space: nowrap; }
.burna-header-badges {
    display: flex; align-items: center; gap: 0.5rem; flex: 1; justify-content: center;
    min-width: 0;
}
.burna-badge {
    --badge-color: #4361ee; --badge-soft: #eef1ff;
    position: relative; display: inline-flex; align-items: center; gap: 0.55rem;
    min-width: 112px; padding: 0.42rem 0.5rem 0.42rem 0.7rem;
    border: 1px solid #e7ebf2; border-radius: 0.85rem;
    color: #344054; background: #fff; text-decoration: none;
    box-shadow: 0 3px 10px rgba(30,48,80,.04);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.burna-badge:hover {
    transform: translateY(-2px); border-color: color-mix(in srgb, var(--badge-color) 36%, white);
    color: #1f2937; background: #fff; text-decoration: none;
    box-shadow: 0 8px 18px rgba(30,48,80,.09);
}
.burna-badge-icon { width: 2rem; height: 2rem; flex: 0 0 2rem; display: grid; place-items: center; border-radius: .58rem; color: var(--badge-color); background: var(--badge-soft); font-size: 1rem; line-height: 1; }
.burna-badge-icon > span { filter: saturate(.85); }
.burna-badge-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.burna-badge-copy small { color: #98a2b3; font-size: .56rem; font-weight: 500; white-space: nowrap; }
.burna-badge-value { overflow: hidden; color: #344054; font-size: .7rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.burna-badge-tone-0 { --badge-color: #3574e8; --badge-soft: #edf4ff; }
.burna-badge-tone-1 { --badge-color: #6d55d8; --badge-soft: #f1edff; }
.burna-badge-tone-2 { --badge-color: #159b6b; --badge-soft: #e8f8f1; }
.burna-badge-tone-3 { --badge-color: #d28516; --badge-soft: #fff5df; }
.burna-badge-active { border-color: color-mix(in srgb, var(--badge-color) 35%, white); background: var(--badge-soft); box-shadow: inset 0 -2px 0 var(--badge-color); }
.burna-badge-active .burna-badge-icon { color: #fff; background: var(--badge-color); }
.burna-header-end { display: flex; align-items: center; gap: 0.6rem; padding-right: .15rem; }
.burna-user-dropdown { position: relative; }
.burna-user {
    display: flex; align-items: center; gap: 0.5rem;
    min-height: 2.9rem; padding: 0.28rem 0.45rem 0.28rem 0.7rem;
    border-radius: 0.9rem; background: #fff;
    border: 1px solid #e7ebf2; cursor: pointer; transition: all 0.2s; text-align: right;
}
.burna-user:hover { border-color: #d6ddf8; background: #fafbff; box-shadow: 0 5px 14px rgba(30,48,80,.06); }
.burna-user-chevron { color: var(--burna-muted); transition: transform 0.2s; flex-shrink: 0; }
.burna-user-dropdown.open .burna-user-chevron { transform: rotate(180deg); }
.burna-user-menu {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--burna-card); border: 1px solid var(--burna-border);
    min-width: 190px; border-radius: 0.85rem; box-shadow: 0 14px 38px rgba(30,48,80,.14);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all 0.2s; z-index: 200; overflow: hidden;
}
.burna-user-dropdown.open .burna-user-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.burna-user-menu-item {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1rem; color: var(--burna-text); text-decoration: none;
    font-size: 0.875rem; font-weight: 500; transition: background 0.15s;
}
.burna-user-menu-item:hover { background: var(--burna-bg); color: var(--burna-danger); text-decoration: none; }
.burna-user-menu-logout { color: var(--burna-danger); }
.burna-user:hover { border-color: var(--burna-primary); }
.burna-avatar {
    width: 2.2rem; height: 2.2rem; flex: 0 0 2.2rem; border-radius: 0.7rem;
    background: linear-gradient(135deg, var(--burna-primary), #3b82f6);
    color: white; display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 0.875rem;
}
.burna-user-text { display: flex; flex-direction: column; gap: 0.125rem; }
.burna-user-name { font-size: 0.875rem; font-weight: 500; color: var(--burna-text); }
.burna-user-role { display: flex; align-items: center; gap: .3rem; font-size: 0.68rem; color: var(--burna-muted); }
.burna-online-dot { width: .38rem; height: .38rem; border-radius: 50%; background: #18b981; box-shadow: 0 0 0 2px #e3f8f0; }
body.burna-sidebar-collapsed .burna-sidebar { display: none; }

/* Layout */
.burna-layout { display: flex; min-height: calc(100vh - 60px); background: var(--burna-bg); }
.burna-sidebar {
    width: 276px; background: var(--burna-card);
    border-left: 1px solid #e8edf5; padding: 1.25rem 0.9rem; flex-shrink: 0;
    box-shadow: -8px 0 28px rgba(30, 48, 80, 0.035);
}
.burna-sidebar-heading {
    display: flex; align-items: center; gap: 0.75rem; margin: 0 0.15rem 1.2rem;
    padding: 0.9rem; border: 1px solid #e8edff; border-radius: 1rem;
    background: linear-gradient(135deg, #f7f9ff 0%, #eef3ff 100%);
}
.burna-sidebar-heading-icon {
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: 0 0 2.5rem;
    color: #fff; background: linear-gradient(135deg, var(--burna-primary), #6c7ff5);
    border-radius: 0.8rem; box-shadow: 0 7px 16px rgba(67, 97, 238, 0.22);
}
.burna-sidebar-heading-icon svg { width: 1.25rem; height: 1.25rem; }
.burna-sidebar-heading strong { display: block; color: #26324b; font-size: 0.9rem; font-weight: 800; }
.burna-sidebar-heading small { display: block; margin-top: 0.12rem; color: #8995aa; font-size: 0.65rem; white-space: nowrap; }
.burna-sidebar-section {
    padding: 0 1.25rem 0.75rem; margin-bottom: 0.5rem;
    font-weight: 700; font-size: 0.95rem; color: var(--burna-muted);
}
.burna-nav { display: flex; flex-direction: column; gap: 0.35rem; padding: 0; }
.burna-nav-group-title {
    display: flex; align-items: center; gap: 0.65rem; margin-top: 0.8rem;
    padding: 0.55rem 0.65rem 0.35rem; color: #7a879d;
}
.burna-nav-group-title .burna-nav-label { flex: 0 0 auto; font-size: 0.72rem; font-weight: 800; }
.burna-nav-group-title .burna-nav-icon { width: 1.6rem; height: 1.6rem; flex-basis: 1.6rem; font-size: 0.82rem; background: #f1f4f9; color: #65738a; }
.burna-nav-divider { height: 1px; flex: 1; background: #edf0f5; }
.burna-nav-item {
    position: relative; display: flex; align-items: center; gap: 0.75rem;
    min-height: 3.15rem; padding: 0.48rem 0.55rem; border: 1px solid transparent; border-radius: 0.85rem;
    color: #536176; text-decoration: none;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.burna-nav-item:hover { background: #f8faff; border-color: #edf0fa; color: var(--burna-primary); text-decoration: none; transform: translateX(-2px); }
.burna-nav-icon {
    display: grid; place-items: center; width: 2.15rem; height: 2.15rem; flex: 0 0 2.15rem;
    border-radius: 0.7rem; background: #f3f5f9; color: #68768d; font-size: 1rem;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.burna-nav-label { flex: 1; font-size: 0.86rem; font-weight: 650; }
.burna-nav-arrow { color: #b8c1d0; font-size: 1.25rem; line-height: 1; opacity: 0; transform: translateX(4px); transition: all .2s ease; }
.burna-nav-item:hover .burna-nav-arrow, .burna-nav-active .burna-nav-arrow { opacity: 1; transform: translateX(0); }
.burna-nav-item:hover .burna-nav-icon { color: var(--burna-primary); background: #edf1ff; }
.burna-nav-child { margin-right: 0.55rem; min-height: 2.8rem; }
.burna-nav-child .burna-nav-icon { width: 1.9rem; height: 1.9rem; flex-basis: 1.9rem; font-size: 0.86rem; }
.burna-nav-active {
    color: #3453dd; border-color: #dfe5ff; font-weight: 700;
    background: linear-gradient(90deg, #f5f7ff, #edf1ff);
    box-shadow: 0 5px 16px rgba(67, 97, 238, 0.08);
}
.burna-nav-active::before { content: ''; position: absolute; top: 25%; bottom: 25%; right: -0.6rem; width: 3px; border-radius: 3px; background: var(--burna-primary); }
.burna-nav-active .burna-nav-icon { color: #fff; background: linear-gradient(135deg, var(--burna-primary), #6d7ff3); box-shadow: 0 5px 12px rgba(67, 97, 238, 0.2); }
.burna-nav-emoji { font-size: 1.125rem; }
.burna-main { flex: 1; padding: 2rem; overflow: auto; }
.burna-content { max-width: 1200px; margin: 0 auto; }

/* Dashboard Shell */
.burna-dashboard-shell { display: flex; flex-direction: column; gap: 1.5rem; }
.burna-dashboard-hero {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: 1rem; padding: 1.5rem; border: 1px solid var(--burna-border);
    border-radius: 0.75rem; background: linear-gradient(135deg, rgba(67,97,238,0.08), rgba(6,214,160,0.08));
}
.burna-eyebrow { font-size: 0.85rem; letter-spacing: 0.02em; color: var(--burna-muted); margin: 0 0 0.25rem; }
.burna-dashboard-hero h1 { margin: 0 0 0.35rem; font-size: 1.75rem; color: var(--burna-text); }
.burna-subtitle { margin: 0; color: var(--burna-muted); }
.burna-hero-actions { display: flex; gap: 0.5rem; }
.burna-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; border-radius: 0.5rem; padding: 0.6rem 1rem; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.burna-btn-primary { background: linear-gradient(135deg, var(--burna-primary), #3b82f6); color: white; border: 1px solid transparent; }
.burna-btn-ghost { background: transparent; color: var(--burna-text); border: 1px solid var(--burna-border); }
.burna-btn-primary:hover { box-shadow: 0 6px 14px rgba(67,97,238,0.25); text-decoration: none; color: white; }
.burna-btn-ghost:hover { border-color: var(--burna-primary); color: var(--burna-primary); text-decoration: none; }
.burna-dashboard-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.burna-panel { background: var(--burna-card); border: 1px solid var(--burna-border); border-radius: 0.75rem; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.burna-panel-wide { grid-column: 1 / -1; }
.burna-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; border-bottom: 1px solid var(--burna-border); padding-bottom: 0.5rem; }
.burna-panel-head h3 { margin: 0; color: var(--burna-text); }
.burna-link { color: var(--burna-primary); text-decoration: none; font-weight: 600; }
.burna-link:hover { text-decoration: underline; }
.burna-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; }
.burna-metric { padding: 0.75rem; border: 1px dashed var(--burna-border); border-radius: 0.5rem; background: var(--burna-bg); }
.burna-metric-label { color: var(--burna-muted); font-size: 0.9rem; }
.burna-metric-value { color: var(--burna-text); font-size: 1.4rem; }
.burna-list { display: flex; flex-direction: column; gap: 0.75rem; }
.burna-list-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem; border: 1px solid var(--burna-border); border-radius: 0.5rem; }
.burna-list-title { margin: 0; font-weight: 600; color: var(--burna-text); }
.burna-list-sub { margin: 0.2rem 0 0; color: var(--burna-muted); font-size: 0.9rem; }
.burna-chip { background: var(--burna-bg); padding: 0.35rem 0.6rem; border-radius: 999px; font-size: 0.85rem; color: var(--burna-text); }
.burna-terminal-box { background: #0b1021; color: #e5e7eb; border-radius: 0.5rem; padding: 1rem; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; border: 1px solid #111827; }
.burna-terminal-line { margin: 0.1rem 0; }

/* Gift Page Styles */
.gift-page-header { margin-bottom: 2rem; }
.gift-page-title { font-size: 2rem; font-weight: 700; color: var(--burna-text); margin-bottom: 0.5rem; }
.gift-page-subtitle { color: var(--burna-muted); font-size: 1rem; }

.gift-stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem; margin-bottom: 2rem;
}
.gift-stat-card {
    background: var(--burna-card); border-radius: 0.75rem; padding: 1.5rem;
    border: 1px solid var(--burna-border); display: flex; align-items: center; gap: 1rem;
    transition: all 0.2s;
}
.gift-stat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }
.gift-stat-icon {
    width: 3.5rem; height: 3.5rem; border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center;
}
.gift-stat-info { flex: 1; }
.gift-stat-value { font-size: 2rem; font-weight: 700; color: var(--burna-text); margin: 0; }
.gift-stat-label { color: var(--burna-muted); font-size: 0.875rem; margin: 0.25rem 0 0; }

.gift-section { background: var(--burna-card); border-radius: 0.75rem; padding: 1.5rem; border: 1px solid var(--burna-border); margin-bottom: 1.5rem; }
.gift-section-title { font-size: 1.25rem; font-weight: 600; color: var(--burna-text); margin-bottom: 1.25rem; }

.gift-list { display: flex; flex-direction: column; gap: 1rem; }
.gift-card {
    display: flex; align-items: center; gap: 1rem; padding: 1.25rem;
    background: var(--burna-bg); border-radius: 0.75rem; transition: all 0.2s;
}
.gift-card:hover { background: #f1f5f9; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.gift-card-icon { font-size: 2.5rem; line-height: 1; }
.gift-card-content { flex: 1; }
.gift-card-title { font-size: 1.125rem; font-weight: 600; color: var(--burna-text); margin: 0 0 0.25rem; }
.gift-card-desc { color: var(--burna-muted); font-size: 0.875rem; margin: 0 0 0.75rem; }
.gift-card-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.gift-badge {
    padding: 0.25rem 0.75rem; border-radius: 999px;
    font-size: 0.75rem; font-weight: 600;
}
.gift-badge-active { background: #d1fae5; color: #065f46; }
.gift-badge-pending { background: #fef3c7; color: #92400e; }
.gift-badge-redeemed { background: #dbeafe; color: #1e40af; }
.gift-badge-expired { background: #fee2e2; color: #991b1b; }
.gift-value { color: var(--burna-primary); font-weight: 600; font-size: 0.875rem; }
.gift-expiry { color: var(--burna-muted); font-size: 0.75rem; }
.gift-card-actions { display: flex; gap: 0.5rem; }
.gift-btn {
    padding: 0.5rem 1.25rem; border-radius: 0.5rem;
    font-weight: 500; font-size: 0.875rem;
    text-decoration: none; border: none; cursor: pointer;
    transition: all 0.2s; display: inline-block;
}
.gift-btn-primary {
    background: linear-gradient(135deg, var(--burna-primary), #3b82f6);
    color: white;
}
.gift-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
    transform: translateY(-1px); color: white; text-decoration: none;
}
.gift-btn-secondary {
    background: var(--burna-bg); color: var(--burna-text);
    border: 1px solid var(--burna-border);
}
.gift-btn-secondary:hover {
    background: #e2e8f0; text-decoration: none;
}

.gift-empty-state {
    text-align: center; padding: 4rem 2rem; color: var(--burna-muted);
}
.gift-empty-state h3 { color: var(--burna-text); margin: 1rem 0 0.5rem; }
.gift-empty-state p { margin: 0; }

/* Balance Page */
.gift-balance-card {
    background: linear-gradient(135deg, var(--burna-primary), #8b5cf6);
    color: white; border-radius: 1rem; padding: 2rem;
    margin-bottom: 2rem; box-shadow: 0 8px 24px rgba(67, 97, 238, 0.2);
}
.gift-balance-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.gift-balance-header h2 { margin: 0; font-size: 1.25rem; opacity: 0.9; }
.gift-balance-icon { font-size: 2rem; }
.gift-balance-amount { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.gift-currency { font-size: 1.5rem; opacity: 0.7; margin-left: 0.5rem; }
.gift-balance-footer { opacity: 0.9; font-size: 0.875rem; }

/* Redeem Page */
.gift-redeem-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.gift-redeem-card {
    background: white; border-radius: 0.75rem; padding: 1.5rem;
    border: 2px solid var(--burna-border);
    text-align: center; transition: all 0.2s;
}
.gift-redeem-card:hover {
    border-color: var(--burna-primary);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.1);
    transform: translateY(-4px);
}
.gift-redeem-icon { font-size: 3rem; margin-bottom: 1rem; }
.gift-redeem-title { font-size: 1.25rem; font-weight: 600; color: var(--burna-text); margin: 0 0 0.5rem; }
.gift-redeem-desc { color: var(--burna-muted); font-size: 0.875rem; margin: 0 0 1rem; }
.gift-redeem-value { color: var(--burna-primary); font-weight: 600; margin-bottom: 0.75rem; }
.gift-redeem-expiry { color: var(--burna-muted); font-size: 0.75rem; margin-bottom: 1rem; }
.gift-btn-redeem {
    width: 100%; background: linear-gradient(135deg, #10b981, #059669);
    color: white; padding: 0.75rem; border-radius: 0.5rem;
    font-weight: 600; border: none; cursor: pointer; transition: all 0.2s;
}
.gift-btn-redeem:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.gift-info-box {
    background: #eff6ff; border-radius: 0.75rem; padding: 1.5rem;
    border-right: 4px solid var(--burna-primary);
}
.gift-info-box h3 { color: var(--burna-text); margin: 0 0 1rem; }
.gift-info-box ul { margin: 0; padding-right: 1.5rem; }
.gift-info-box li { color: var(--burna-text); margin-bottom: 0.5rem; }

@media (max-width: 991.98px) {
    .burna-sidebar { display: none; }
    body.burna-sidebar-open { overflow: hidden; }
    body.burna-sidebar-open .burna-sidebar { display: block; position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: min(276px, calc(100vw - 3rem)); max-width: 100%; overflow-y: auto; overscroll-behavior: contain; box-shadow: -18px 0 50px rgba(20,31,56,.18); }
    .burna-header { flex-wrap: wrap; gap: .65rem; padding: .65rem .9rem; }
    .burna-search { display: none; }
    .burna-header-badges { order: 3; width: 100%; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; padding: .15rem 0 .3rem; scrollbar-width: none; }
    .burna-header-badges::-webkit-scrollbar { display: none; }
    .burna-badge { min-width: max-content; }
    .burna-user-text { display: none; }
    .burna-header-divider { display: none; }
    .gift-stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
    .burna-brand-copy small { display: none; }
    .burna-action-btn { display: none; }
    .burna-header-start { gap: .4rem; }
}



.ticket-page-header { margin-bottom: 2rem; }
.ticket-page-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.ticket-page-subtitle { color: var(--burna-muted); }

.ticket-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.ticket-stat-card { background: white; border-radius: 0.75rem; padding: 1.25rem; display: flex; align-items: center; gap: 1rem; border: 1px solid var(--burna-border); }
.ticket-stat-icon { width: 3rem; height: 3rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.ticket-stat-value { font-size: 1.75rem; font-weight: 700; margin: 0; }
.ticket-stat-label { color: var(--burna-muted); font-size: 0.875rem; margin: 0; }

.ticket-section { background: white; border-radius: 0.75rem; padding: 1.5rem; border: 1px solid var(--burna-border); margin-bottom: 1.5rem; }
.ticket-section-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.25rem; }

.ticket-list { display: flex; flex-direction: column; gap: 0.75rem; }
.ticket-card { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--burna-bg); border-radius: 0.5rem; text-decoration: none; color: inherit; transition: all 0.2s; }
.ticket-card:hover { background: #e2e8f0; transform: translateX(4px); }
.ticket-card-priority { width: 4px; height: 100%; min-height: 3rem; border-radius: 2px; }
.ticket-card-priority[data-priority="urgent"] { background: #ef4444; }
.ticket-card-priority[data-priority="high"] { background: #f59e0b; }
.ticket-card-priority[data-priority="medium"] { background: #3b82f6; }
.ticket-card-priority[data-priority="low"] { background: #6b7280; }
.ticket-card-content { flex: 1; }
.ticket-card-title { font-weight: 600; margin: 0 0 0.5rem; }
.ticket-card-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.ticket-card-arrow { color: var(--burna-muted); font-size: 1.25rem; }

.ticket-badge { padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.ticket-badge-new { background: #dbeafe; color: #1e40af; }
.ticket-badge-in_progress { background: #fef3c7; color: #92400e; }
.ticket-badge-resolved { background: #d1fae5; color: #065f46; }
.ticket-badge-closed { background: #e2e8f0; color: #64748b; }

.ticket-priority { font-size: 0.75rem; font-weight: 500; }
.ticket-priority-urgent { color: #ef4444; }
.ticket-priority-high { color: #f59e0b; }
.ticket-priority-medium { color: #3b82f6; }
.ticket-priority-low { color: #6b7280; }

.ticket-date { color: var(--burna-muted); font-size: 0.75rem; }

.ticket-department { font-size: 0.875rem; color: var(--burna-text); }
.ticket-department-badge { padding: 0.25rem 0.5rem; background: #e2e8f0; border-radius: 0.25rem; font-size: 0.75rem; color: #475569; }

.ticket-empty-state { text-align: center; padding: 4rem 2rem; }
.ticket-empty-state h3 { margin: 1rem 0 0.5rem; }

.ticket-btn { padding: 0.625rem 1.5rem; border-radius: 0.5rem; font-weight: 500; text-decoration: none; display: inline-block; margin-top: 1rem; border: none; cursor: pointer; font-size: 1rem; }
.ticket-btn-primary { background: linear-gradient(135deg, var(--burna-primary), #3b82f6); color: white; }
.ticket-btn-primary:hover { opacity: 0.9; }

/* Console dashboard */
.console-dashboard { --console-ink: #172033; --console-subtle: #667085; display: flex; flex-direction: column; gap: 1.4rem; }
.console-hero { position: relative; min-height: 260px; overflow: hidden; display: flex; align-items: center; justify-content: space-between; padding: 2.6rem 3rem; border-radius: 1.5rem; color: #fff; background: radial-gradient(circle at 15% 15%, rgba(255,255,255,.16), transparent 30%), linear-gradient(125deg, #172554 0%, #263b82 48%, #465be7 100%); box-shadow: 0 22px 50px rgba(30, 48, 110, .22); }
.console-hero:after { content: ''; position: absolute; inset: auto -8% -55% 32%; height: 240px; border-radius: 50%; background: rgba(255,255,255,.055); transform: rotate(-8deg); }
.console-hero-copy { position: relative; z-index: 2; max-width: 650px; }
.console-status { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; margin-bottom: 1.3rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.1); font-size: .75rem; }
.console-status i { width: 7px; height: 7px; border-radius: 50%; background: #58e6a9; box-shadow: 0 0 0 4px rgba(88,230,169,.14); }
.console-kicker { margin: 0 0 .25rem; color: #bfcafd; font-size: .82rem; font-weight: 700; letter-spacing: .03em; }
.console-hero h1 { margin: 0 0 .55rem; color: #fff; font-size: clamp(1.8rem, 3vw, 2.65rem); font-weight: 900; }
.console-hero-copy > p:not(.console-kicker) { margin: 0; max-width: 580px; color: #dbe2ff; line-height: 1.9; }
.console-hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.console-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .72rem 1.15rem; border-radius: .7rem; font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.console-btn:hover { transform: translateY(-2px); text-decoration: none; }
.console-btn-light { color: #263b82; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.console-btn-light:hover { color: #263b82; box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.console-btn-glass { color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.09); }
.console-btn-glass:hover { color: #fff; background: rgba(255,255,255,.16); }
.console-btn-logout { color: #fff; border: 1px solid rgba(255,255,255,.32); background: rgba(13,24,68,.2); }
.console-btn-logout:hover { color: #fff; border-color: rgba(255,255,255,.52); background: rgba(13,24,68,.35); }
.console-hero-visual { position: relative; z-index: 1; width: 230px; height: 190px; flex: 0 0 230px; }
.console-cloud-mark { position: absolute; inset: 41px 56px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 28px; color: #fff; background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.06)); box-shadow: inset 0 1px rgba(255,255,255,.25), 0 25px 45px rgba(9,18,65,.2); backdrop-filter: blur(8px); transform: rotate(-6deg); }
.console-cloud-mark svg { width: 72px; height: 72px; }
.console-orbit { position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.console-orbit-one { inset: 8px 18px; transform: rotate(20deg); }
.console-orbit-two { inset: 27px 0; transform: rotate(-25deg); }
.console-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; }
.console-stat { position: relative; display: flex; align-items: center; gap: .9rem; min-height: 108px; padding: 1.15rem; overflow: hidden; border: 1px solid #e8edf5; border-radius: 1rem; background: #fff; box-shadow: 0 8px 24px rgba(30,48,80,.055); transition: transform .2s, box-shadow .2s; }
.console-stat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30,48,80,.09); }
.console-stat:after { content: ''; position: absolute; width: 65px; height: 65px; left: -28px; bottom: -30px; border-radius: 50%; background: currentColor; opacity: .055; }
.console-stat-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: .85rem; color: currentColor; background: currentColor; background: color-mix(in srgb, currentColor 11%, white); }
.console-stat-icon svg { width: 25px; height: 25px; }
.console-stat strong { display: block; color: var(--console-ink); font-size: 1.75rem; line-height: 1.2; }
.console-stat span { color: var(--console-subtle); font-size: .82rem; white-space: nowrap; }
.console-stat-violet { color: #7259d9; } .console-stat-cyan { color: #0891b2; } .console-stat-blue { color: #3574e8; } .console-stat-amber { color: #d88a16; } .console-stat-green { color: #159b6b; }
.console-content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .8fr); gap: 1rem; align-items: start; }
.console-card { padding: 1.35rem; border: 1px solid #e8edf5; border-radius: 1.1rem; background: #fff; box-shadow: 0 8px 25px rgba(30,48,80,.045); }
.console-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.console-card-heading span { display: block; margin-bottom: .2rem; color: #8290a6; font-size: .72rem; font-weight: 700; }
.console-card-heading h2 { margin: 0; color: var(--console-ink); font-size: 1.08rem; font-weight: 800; }
.console-card-heading > a { color: #465be7; font-size: .8rem; font-weight: 700; text-decoration: none; }
.console-card-heading > a b { margin-right: .2rem; }
.console-card-heading.compact { margin-bottom: .65rem; }
.console-ticket-list { display: flex; flex-direction: column; }
.console-ticket-row { display: flex; align-items: center; gap: .8rem; padding: .85rem .2rem; color: inherit; border-top: 1px solid #eef1f6; text-decoration: none; }
.console-ticket-row:hover { color: inherit; text-decoration: none; }
.console-ticket-symbol { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: .75rem; color: #3574e8; background: #edf4ff; font-size: .72rem; font-weight: 800; }
.console-ticket-in_progress { color: #b87813; background: #fff7e5; } .console-ticket-resolved { color: #11855a; background: #eafaf3; } .console-ticket-closed { color: #667085; background: #f1f3f6; }
.console-ticket-copy { min-width: 0; flex: 1; }
.console-ticket-copy strong { display: block; overflow: hidden; color: var(--console-ink); font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.console-ticket-copy span { color: #8995a8; font-size: .72rem; }
.console-ticket-state { padding: .28rem .6rem; border-radius: 999px; color: #2c65c8; background: #edf4ff; font-size: .7rem; white-space: nowrap; }
.console-ticket-state.state-in_progress { color: #9b650f; background: #fff5d9; } .console-ticket-state.state-resolved { color: #0d7750; background: #e5f8ef; } .console-ticket-state.state-closed { color: #596579; background: #eef1f5; }
.console-empty { padding: 2rem 1rem; text-align: center; border: 1px dashed #dce2ec; border-radius: .9rem; background: #fbfcfe; }
.console-empty-icon { width: 45px; height: 45px; display: grid; place-items: center; margin: 0 auto .75rem; border-radius: 50%; color: #159b6b; background: #e8f8f1; font-size: 1.2rem; }
.console-empty h3 { margin: 0; color: var(--console-ink); font-size: .95rem; } .console-empty p { margin: .4rem 0 .8rem; color: #7c899c; font-size: .8rem; } .console-empty a { color: #465be7; font-size: .8rem; font-weight: 700; text-decoration: none; }
.console-side-stack { display: flex; flex-direction: column; gap: 1rem; }
.console-actions-list { display: flex; flex-direction: column; }
.console-actions-list > a { display: flex; align-items: center; gap: .75rem; padding: .75rem 0; color: inherit; border-top: 1px solid #eef1f6; text-decoration: none; }
.console-actions-list > a:hover { color: inherit; text-decoration: none; }
.console-actions-list i { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: .7rem; font-style: normal; font-weight: 800; }
.action-blue { color: #3574e8; background: #edf4ff; } .action-violet { color: #7259d9; background: #f1edff; } .action-green { color: #159b6b; background: #e8f8f1; }
.console-actions-list div { min-width: 0; flex: 1; } .console-actions-list strong { display: block; color: var(--console-ink); font-size: .84rem; } .console-actions-list span { color: #8995a8; font-size: .7rem; } .console-actions-list > a > b { color: #a2acbc; }
.console-account-card { display: flex; align-items: center; gap: .8rem; background: linear-gradient(140deg, #fff, #f7f9ff); }
.console-account-avatar { width: 45px; height: 45px; flex: 0 0 45px; display: grid; place-items: center; border-radius: .85rem; color: #fff; background: linear-gradient(145deg, #465be7, #7259d9); font-size: 1.1rem; font-weight: 800; }
.console-account-copy { min-width: 0; flex: 1; } .console-account-copy span, .console-account-copy small { display: block; color: #8995a8; font-size: .68rem; } .console-account-copy strong { display: block; overflow: hidden; color: var(--console-ink); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; } .console-account-card > a { color: #465be7; text-decoration: none; }
.console-admin-note { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border: 1px dashed #d8deea; border-radius: .8rem; color: #7d899a; background: #f9fafc; font-size: .75rem; }
.console-admin-note a { color: #c43d58; font-weight: 700; text-decoration: none; }

/* Larger, more readable console typography */
.console-dashboard { font-size: 18px; }
.burna-brand-text { font-size: 1.15rem; }
.burna-nav-item { font-size: 1.05rem; }
.burna-sidebar-section { font-size: 1.05rem; }
.burna-user-name { font-size: 1rem; }
.burna-user-role { font-size: .86rem; }
.console-status { font-size: .9rem; }
.console-kicker { font-size: 1.05rem; }
.console-hero h1 { font-size: clamp(2.15rem, 3.5vw, 3rem); }
.console-hero-copy > p:not(.console-kicker) { font-size: 1.12rem; line-height: 2; }
.console-btn { padding: .82rem 1.3rem; font-size: 1.05rem; }
.console-stat strong { font-size: 2.25rem; }
.console-stat span { font-size: 1.08rem; }
.console-card-heading span { font-size: .95rem; }
.console-card-heading h2 { font-size: 1.45rem; }
.console-card-heading > a { font-size: 1.02rem; }
.console-ticket-symbol { font-size: .95rem; }
.console-ticket-copy strong { font-size: 1.15rem; }
.console-ticket-copy span { font-size: .96rem; }
.console-ticket-state { padding: .36rem .72rem; font-size: .92rem; }
.console-empty h3 { font-size: 1.25rem; }
.console-empty p, .console-empty a { font-size: 1.02rem; }
.console-actions-list strong { font-size: 1.1rem; }
.console-actions-list span { font-size: .94rem; }
.console-account-copy span, .console-account-copy small { font-size: .9rem; }
.console-account-copy strong { font-size: 1.12rem; }
.console-admin-note { font-size: .98rem; }
.burna-badge { min-width: 132px; padding: .5rem .65rem .5rem .8rem; }
.burna-badge-copy small { font-size: .76rem; }
.burna-badge-value { font-size: .96rem; }

@media (max-width: 1200px) { .burna-search { display: none; } }
@media (max-width: 1100px) { .console-stats { grid-template-columns: repeat(3, 1fr); } .console-hero-visual { width: 180px; flex-basis: 180px; } }
@media (max-width: 820px) { .burna-main { padding: 1rem; } .console-hero { padding: 2rem; } .console-hero-visual { display: none; } .console-content-grid { grid-template-columns: 1fr; } .console-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .console-hero { min-height: 0; padding: 1.5rem; border-radius: 1rem; } .console-hero-actions, .console-btn { width: 100%; } .console-stats { grid-template-columns: 1fr; } .console-stat { min-height: 90px; } .console-ticket-state { display: none; } }

/* Responsive containment for all portal pages. */
html, body, #wrapwrap, .burna-layout, .burna-main, .burna-content {
    max-width: 100%;
    min-width: 0;
}
html, body { overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
.burna-header > *,
.burna-layout > *,
.burna-content > *,
.burna-panel,
.console-dashboard > *,
.console-content-grid > *,
.console-ticket-copy,
.ticket-card-content,
.cloudcore-card-content,
.burna-portal-content {
    min-width: 0;
}
.burna-main { overflow-x: hidden; }
.burna-content,
.burna-panel,
.console-card,
.ticket-section,
.cloudcore-section,
.burna-portal-content { overflow-wrap: anywhere; }
.burna-content img,
.burna-content video,
.burna-content iframe,
.burna-content svg { max-width: 100%; }
.burna-content table { max-width: 100%; }
.burna-dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.gift-stats-grid,
.gift-redeem-grid,
.ticket-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.burna-user-menu {
    right: auto;
    left: auto;
    inset-inline-end: 0;
    inset-inline-start: auto;
    width: max-content;
    max-width: calc(100vw - 1.5rem);
}

@media (max-width: 991.98px) {
    .burna-layout { min-height: calc(100dvh - 60px); }
    .burna-main { width: 100%; }
    .burna-content { width: 100%; }
    .burna-sidebar { padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); }
    .burna-header {
        padding-top: max(.65rem, env(safe-area-inset-top));
        padding-left: max(.9rem, env(safe-area-inset-left));
        padding-right: max(.9rem, env(safe-area-inset-right));
    }
    .burna-badge { min-height: 44px; }
    .burna-menu-btn,
    .burna-action-btn,
    .burna-user { min-height: 44px; }
    .burna-nav-item { min-height: 44px; }
    .burna-dashboard-hero,
    .burna-list-item,
    .gift-card,
    .gift-balance-header,
    .console-admin-note { min-width: 0; }
}

@media (max-width: 575.98px) {
    .burna-main { padding: .875rem; }
    .burna-dashboard-shell { gap: 1rem; }
    .burna-dashboard-hero,
    .burna-panel,
    .ticket-section,
    .cloudcore-section,
    .console-card { padding: 1rem; }
    .burna-dashboard-hero h1,
    .gift-page-title,
    .ticket-page-title,
    .cloudcore-page-title { font-size: clamp(1.45rem, 8vw, 1.8rem); }
    .burna-hero-actions,
    .gift-card-actions { width: 100%; flex-wrap: wrap; }
    .burna-hero-actions > *,
    .gift-card-actions > * { flex: 1 1 10rem; }
    .burna-list-item,
    .gift-card,
    .gift-balance-header,
    .console-admin-note { align-items: stretch; flex-direction: column; }
    .ticket-card { align-items: flex-start; gap: .75rem; }
    .ticket-card-arrow { align-self: center; }
    .ticket-message-content { min-width: 0; }
    .ticket-message-header { flex-wrap: wrap; gap: .25rem .75rem; }
    .ticket-message-body,
    .ticket-description { overflow-wrap: anywhere; }
    .ticket-message-body table,
    .ticket-description table { display: block; max-width: 100%; overflow-x: auto; }
    .console-card-heading { align-items: flex-start; flex-wrap: wrap; }
    .console-ticket-copy strong { white-space: normal; }
    .console-account-card { flex-wrap: wrap; }
    .ticket-empty-state,
    .cloudcore-empty-state { padding: 2.5rem 1rem; }
}

@media (max-width: 380px) {
    .burna-header {
        gap: .45rem;
        padding-left: max(.65rem, env(safe-area-inset-left));
        padding-right: max(.65rem, env(safe-area-inset-right));
    }
    .burna-brand { gap: .45rem; padding-inline: .15rem; }
    .burna-brand-mark { width: 2.4rem; height: 2.4rem; }
    .burna-brand-text { font-size: 1rem; }
    .burna-header-end { gap: .35rem; }
    .burna-user { padding-inline: .3rem; }
    .burna-main { padding: .75rem; }
    .console-hero { padding: 1.25rem; }
    .console-card,
    .ticket-section,
    .cloudcore-section { padding: .875rem; }
    .console-stat { padding: .9rem; }
    .ticket-card { padding: .8rem; }
    .ticket-message { gap: .5rem; }
    .ticket-message-avatar { width: 2rem; height: 2rem; }
    .ticket-btn,
    .cloudcore-btn { width: 100%; text-align: center; }
}

/* Wallet portal containment. */
.burna-wallet-balance-card,
.burna-wallet-placeholder-card,
.burna-wallet-topup-card,
.burna-wallet-current-balance,
.burna-wallet-amount-grid,
.burna-wallet-amount-button,
.burna-wallet-custom-row,
.burna-wallet-custom-input,
.burna-wallet-custom-submit,
.burna-wallet-topup-link,
.burna-wallet-payment-result { min-width: 0; max-width: 100%; }
.burna-wallet-balance-value,
.burna-wallet-current-balance { overflow-wrap: anywhere; }

@media (max-width: 575.98px) {
    .burna-wallet-balance-card { padding: 1.5rem !important; }
    .burna-wallet-placeholder-card { padding: 1rem !important; }
    .burna-wallet-balance-value { font-size: clamp(1.45rem, 8vw, 2.2rem) !important; }
    .burna-wallet-amount-button { min-height: 44px; padding: 1rem .75rem !important; }
}

@media (max-width: 440px) {
    .burna-wallet-amount-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .burna-wallet-custom-row { flex-direction: column; }
    .burna-wallet-custom-submit { width: 100%; min-height: 44px; }
    .burna-wallet-topup-link { width: 100%; }
    .burna-wallet-payment-result { margin-block: 1.5rem !important; }
}

