
:root {
    /* BACKGROUND */
    --bg-body: #f3f4f6;        
    --bg-card: #ffffff;       

    /* TEXT */
    --text-main: #111827;
    --text-secondary: #6b7280;
    --font-wide: 'Inter', -apple-system, sans-serif;
    /* BORDER */
    --border: #e5e7eb;

    /* ACCENT */
    --accent: #2563eb;
    --accent-hover: #1d4ed8;

    /* BUTTONS */
    --btn-bg: transparent;
    --btn-text: var(--text-secondary);
    --btn-hover-bg: #e5e7eb;
    --btn-active-bg: #e0e7ff;
    --btn-active-text: var(--accent);

    --radius: 4px;
}

 body.dark {
    --bg-body: #020617;
    --bg-card: #020617;
    --text-main: #e5e7eb;
    --text-secondary: #9ca3af;
    --border: rgba(255,255,255,0.06);
    --accent: #9ca3af;
    --accent-hover: #d1d5db;
    --btn-bg: transparent;
    --btn-text: #cfd3dc;
    --btn-hover-bg: rgba(255,255,255,0.05);
    --btn-active-bg: rgba(255,255,255,0.1);
    --btn-active-text: #ffffff;
}


body.dark .overview .balance-card,
body.dark .overview .stat-card,
body.dark .overview .analytics-card,
body.dark .overview .allocation-card {
    background: linear-gradient(135deg, #0b1220, #020617);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 14px 36px rgba(0,0,0,0.45);
}



body.dark .balance-card {
    background: linear-gradient(135deg, #020617, #020617);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
}

body.dark .stat-card.light {
    background: #020617;
    color: #e5e7eb;
}


body {
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


.app-container {
    display: grid;
    grid-template-areas: "sidebar header" "sidebar main";
    grid-template-columns: 240px 1fr; 
    grid-template-rows: 60px 1fr;     
    height: 100vh;
}

.header {
    grid-area: header;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.balance-wrapper { display: flex; flex-direction: column; }
.balance-label { 
    font-size: 11px; 
    color: var(--text-secondary); 
    text-transform: uppercase; 
    font-weight: 600;
}
.balance-box { 
    font-size: 20px; 
    font-weight: 600; 
    color: var(--text-main); 
}

.money-controls {
    display: flex;
    gap: 8px;
}
#money-input {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 10px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
#money-input:focus { border-color: var(--accent); }

.btn-add-money {
    background: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
}
.btn-add-money:hover { background: #e5e7eb; }


.sidebar {
    grid-area: sidebar;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;

    padding: 16px 0;
    margin-bottom: 24px;  

    border-bottom: 1px solid var(--border);
}


.section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    margin-top: 20px;
}
.section-title:first-child { margin-top: 0; }

.main-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px; 
}


.btn-inventory-sidebar {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    border-radius: 0;
}

.main-content {
    grid-area: main;
    padding: 16px 32px 32px;
    overflow-y: auto;
}


.inventory-grid-item {
    background: var(--bg-card);
}

.inv-img img { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; }
.inv-count { font-weight: 600; color: var(--text-main); }


.theme-toggle {
    margin-top: auto;
    margin-bottom: 20px;

    padding: 10px;
    font-size: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--btn-bg);
    color: var(--btn-text);
    cursor: pointer;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--btn-hover-bg);
    color: var(--text-main);
}


.overview {
    display: flex;
    flex-direction: column;
    gap: 30px;
    color: var(--text-main);
}

.balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 24px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.balance-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.balance-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e5e7eb;
    color: #020617;

    display: flex;
    align-items: center;
    justify-content: center;


    font-size: 18px;
}
.balance-icon,
.portfolio-icon {
    background: #e5e7eb;
    color: #01020a;
}


.balance-icon,
.portfolio-icon {
    background: #e5e7eb;
    color: #020617;
}



.balance-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.balance-text {
    display: flex;
    flex-direction: column;
}

.balance-label {
    font-size: 13px;
    color: var(--text-secondary);
}


.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


.stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
}


.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin: 10px 0;
}

.hint {
    font-size: 13px;
    color: var(--text-secondary);
}

.recent {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px dashed var(--border);
    padding: 30px;
    text-align: center;
}

.recent-header {
    text-align: left;
    margin-bottom: 20px;
}

.recent-empty p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}


.primary-btn {
    background: white;
    color: #111827;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.ghost-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-main);
}
.interactive-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.15s ease;
}

.interactive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.interactive-card:focus-within,
.interactive-card.active {
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    transform: translateY(-2px);
}

body.dark .interactive-card {
    background: #1b1f26;
    border: 1px solid rgba(255,255,255,0.06);
}

body.dark .interactive-card:hover,
body.dark .interactive-card.active {
    background: #22262e;
}


.interactive-card.active {
    background: #ffffff;
}

.cta-btn.dark:hover {
    background: #000000;
    border-color: #4b5563;
}

.cta-btn.center {
    margin: 0 auto;
}

.app-container,
.main-content {
    background: transparent;
}

body.dark .sidebar {
    background: #0b1220; 
    border-right: 1px solid rgba(255,255,255,0.05);
}

body.dark .header {
    background: #222936;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
}


.icon {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

.icon.home {
    mask: url('icons/home.svg') center / contain no-repeat;
    background: currentColor;
}

.icon.store {
    mask: url('icons/store.svg') center / contain no-repeat;
    background: currentColor;
}

.icon.inventory {
    mask: url('icons/box.svg') center / contain no-repeat;
    background: currentColor;
}

.nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 16px;
    border-radius: 14px;

    background: transparent;
    border: none;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;               
    letter-spacing: -0.01em;          
    line-height: 1;

    color: var(--text-secondary);
    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.15s ease;
}


/* ICON */
.nav-btn .icon {
    background: currentColor;
    opacity: 1;   
}


body:not(.dark) .nav-btn:hover {
    background: #f3f4f6;
    color: #000000;            
}

body.dark .nav-btn:hover {
    background: #1f2937;
    color: #e5e7eb;
}


.nav-btn span {
    display: inline-block;
    transform: translateY(0.5px); 
}

body.dark .nav-btn:hover {
    background: #1f2937;
    color: #e5e7eb;
}

body.dark .nav-btn.active {
    background: #ffffff;              
    color: #020617;                   
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

/* =========================
   SIDEBAR ACTIVE STATES
   ========================= */


body:not(.dark) .nav-btn.active {
    background: #020617;       
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

body.dark .nav-btn.active {
    background: #ffffff;      
    color: #020617;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}


.theme-switch {
    margin-top: auto;
    margin-bottom: 36px;

    width: 60px;
    height: 34px;

    border-radius: 999px;
    border: 1px solid var(--border);

    background: rgba(0,0,0,0.04);
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 5px;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.theme-switch:hover {
    background: rgba(0,0,0,0.08);
}

body.dark .theme-switch {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
}

body.dark .theme-switch:hover {
    background: rgba(255,255,255,0.1);
}

.theme-switch .switch-icon {
    width: 24px;
    height: 24px;



    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    color: var(--text-secondary);

    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

body:not(.dark) .switch-icon.sun {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

body:not(.dark) .switch-icon.moon {
    opacity: 0.4;
}

body.dark .switch-icon.moon {
    background: #ffffff;
    color: #020617;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

body.dark .switch-icon.sun {
    opacity: 0.4;
}
.theme-switch:active {
    transform: scale(0.96);
}

.add-funds-btn {
    display: flex;
    align-items: center;
    gap: 10px;

    border: none;
    border-radius: 12px;
    padding: 12px 20px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

body:not(.dark) .add-funds-btn {
    background: #000000;
    color: #d1d4d7;
}

.balance-card:hover .add-funds-btn {
    background: #d1d4d7;
    color: #020617;
}


body.dark .balance-card:hover .add-funds-btn {
    background: #020617;
    color: #d1d4d7;
}


.add-funds-btn:active {
    transform: translateY(1px);
}


.add-funds-btn .plus {
    color: #d1d4d7;
    font-weight: 700;
}

.add-funds-btn .plus {
    color: inherit;      
    font-weight: 700;
}



.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 999;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    width: 380px;

    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.modal-label {
    font-size: 13px;
    color: #6b7280;
}

.modal input {
    width: 100%;
    box-sizing: border-box;   

    margin-top: 6px;
    padding: 12px;

    border-radius: 10px;
    border: 1px solid #e5e7eb;

    font-size: 16px;
}


.modal-hint {
    font-size: 12px;
    color: #6b7280;
    margin: 10px 0 18px;
}

.modal-confirm {
    width: 100%;
    padding: 12px;

    border-radius: 12px;
    border: none;

    background: #161718;
    color: white;

    font-weight: 600;
    cursor: pointer;
}

.modal-confirm:hover {
    background: #6b7280;
}
.modal input:focus {
    outline: none;
    border-color: #020617;
    box-shadow: 0 0 0 3px rgba(2, 6, 23, 0.1);
}

/* ===== PORTFOLIO CARD ===== */

.portfolio-card {
    border-radius: 16px;
    padding: 22px;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.portfolio-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.portfolio-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-bar {
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: #e5e7eb; 
}

.portfolio-bar span {
    display: block;
    height: 100%;
    width: 60%; 
    background: #020617;
}

body.dark .portfolio-bar {
    background: rgba(255,255,255,0.25);
}

body.dark .portfolio-bar span {
    background: #ffffff;
}


.portfolio-hint {
    font-size: 13px;
    opacity: 0.75;
}

body:not(.dark) .portfolio-card {
    background: #ffffff;
    color: #020617;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

body:not(.dark) .portfolio-bar {
    background: #e5e7eb;
}

body:not(.dark) .portfolio-bar span {
    background: #020617;
}
body.dark .portfolio-card {
    background: linear-gradient(135deg, #0b1220, #020617);
    color: #ffffff;
    box-shadow: 0 14px 36px rgba(0,0,0,0.45);
}

body.dark .portfolio-bar {
    background: rgba(255,255,255,0.25);
}

body.dark .portfolio-bar span {
    background: #ffffff;
}


.stat-card.portfolio-card .portfolio-value {
    font-size: 33px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-main);
    margin-top: 6px;
}


.stat-card.portfolio-card .label {
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

body.dark .stat-card.portfolio-card .label {
    color: rgba(255,255,255,0.75);
}

.total-items-card {
    border-radius: 16px;
    padding: 22px;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.total-items-card {
    border: 1px solid var(--border);   
    box-shadow: none !important;       
    background: var(--bg-card);
}

.total-items-card:hover {
    box-shadow: none;
    transform: none;
}
body.dark .total-items-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
}


.balance-card,
.stat-card {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

body:not(.dark) .portfolio-bar span {
    background: #020617;
}

body.dark .portfolio-bar span {
    background: #ffffff;
}
body:not(.dark) .portfolio-bar {
    background: #e5e7eb;
}

body.dark .portfolio-bar {
    background: rgba(255,255,255,0.25);
}


.balance-amount,
.portfolio-value,
.total-items-value {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
}


.balance-card,
.stat-card {
    color: var(--text-main);
}


.balance-card,
.stat-card {
    color: var(--text-main);
}

body.dark .balance-card,
body.dark .stat-card {
    color: #ffffff;
}

body:not(.dark) .balance-card:hover,
body:not(.dark) .stat-card:hover {
    background: #020617;
    color: #ffffff;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.stat-card.portfolio-card .portfolio-value {
    color: #020617;
}

body.dark .stat-card.portfolio-card .portfolio-value {
    color: #ffffff;
}


body:not(.dark) .stat-card.portfolio-card:hover .portfolio-value {
    color: #ffffff;
}

body.dark .stat-card.portfolio-card:hover .portfolio-value {
    color: #020617;
}

.portfolio-bar {
    background: #e5e7eb;
}

.portfolio-bar span {
    background: #020617;
}

body.dark .portfolio-bar {
    background: rgba(255,255,255,0.25);
}

body.dark .portfolio-bar span {
    background: #ffffff;
}

body:not(.dark) .stat-card.portfolio-card:hover .portfolio-bar span {
    background: #ffffff;
}

body.dark .stat-card.portfolio-card:hover .portfolio-bar span {
    background: #020617;
}



.browse-store-btn {
    border: 1px solid #020617;
    color: #020617;
    background: rgba(2, 6, 23, 0.03);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
body.dark .browse-store-btn {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255,255,255,0.06);
}


.browse-store-btn:hover {
    background: #020617;
    color: #ffffff;
}

body.dark .browse-store-btn {
    border-color: #ffffff;
    color: #ffffff;
}

body.dark .browse-store-btn:hover {
    background: #ffffff;
    color: #020617;
    border-color: #ffffff;
}

body:not(.dark) .balance-card:hover,
body:not(.dark) .stat-card:hover {
    background: #020617;
    color: #ffffff;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

body.dark .balance-card:hover,
body.dark .stat-card:hover {
    background: #ffffff;
    color: #020617;
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.55);
}


body:not(.dark) .stat-card:hover .browse-store-btn {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255,255,255,0.12);
}

body.dark .stat-card:hover .browse-store-btn {
    border-color: #020617;
    color: #020617;
    background: rgba(2, 6, 23, 0.08);
}

body.dark .stat-card.portfolio-card:hover .label {
    color: #020617;
}

.total-items-amount {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-family: 'Inter', -apple-system, sans-serif;
}

.portfolio-insights {
    margin-top: 38px;
    margin-left: 384px; 
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.insights-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 220px);
    gap: 16px;
}

.analytics-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}

.analytics-card {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

/* LIGHT MODE HOVER */
body:not(.dark) .analytics-card:hover {
    background: #020617;
    color: #ffffff;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* DARK MODE HOVER */
body.dark .analytics-card:hover {
    background: #ffffff;
    color: #020617;
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.55);
}

/* labels inside */
body:not(.dark) .analytics-card:hover .label {
    color: rgba(255,255,255,0.75);
}

body.dark .analytics-card:hover .label {
    color: rgba(2,6,23,0.75);
}


.analytics-value {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 6px;
}
.analytics-card .label {
    font-family: var(--font-wide);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}


body.dark .analytics-card {
    background: #0b1220;
    border-color: rgba(255,255,255,0.08);
}
.insights-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.insights-label {
    font-family: var(--font-wide);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.10em; 
    text-transform: uppercase;
}

.insights-title {
    font-family: var(--font-wide);
    font-weight: 700;
    letter-spacing: -0.01em; 
}


.insights-layout {
    display: grid;
    grid-template-columns: 7fr 6fr; 
    gap: 30px;
}
.allocation-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;

    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 260px;
}

.alloc-row {
    display: grid;
    grid-template-columns: 70px 1fr 40px;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alloc-bar {
    height: 8px;
    background: rgba(0,0,0,0.12);
    border-radius: 999px;
    overflow: hidden;
}

.alloc-bar span {
    display: block;
    height: 100%;
    background: var(--text-main);
}

.allocation-card .label {
    font-family: var(--font-wide);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.alloc-row span {
    font-family: var(--font-wide);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
}


body.dark .alloc-bar {
    background: rgba(255,255,255,0.25);
}

body.dark .alloc-bar span {
    background: #ffffff;
}
/* =========================
   BANK CARD — FINTECH STYLE
   ========================= */

.bank-card {
    position: relative;
    overflow: hidden;

    background: #000000;
    color: #ffffff;

    border-radius: 22px;
    padding: 20px 22px;

    width: 100%;
    max-width: 360px;
    height: 210px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;

    box-shadow: 0 18px 40px rgba(0,0,0,0.45);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.bank-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

/* ABSTRACT SHAPES */
.bank-card::before,
.bank-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.bank-card::before {
    width: 220px;
    height: 220px;
    top: -80px;
    right: -60px;
}

.bank-card::after {
    width: 160px;
    height: 160px;
    bottom: -60px;
    left: -40px;
    opacity: 0.08;
}

/* CHIP */
.bank-card-chip {
    width: 42px;
    height: 30px;
    border-radius: 6px;
    background: linear-gradient(
        135deg,
        #e5e7eb,
        #9ca3af
    );
}

/* CONTENT */
.bank-card-content {
    margin-top: 70px;
}

.bank-card-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}

.bank-card-balance {
    margin-top: 6px;   
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}


/* FOOTER */
.bank-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 13px;
    color: rgba(255,255,255,0.65);
}

.card-brand {
    letter-spacing: 0.14em;
    font-weight: 700;
}
.bank-card-chip {
    position: relative;
    width: 42px;
    height: 30px;
    border-radius: 6px;

    background: linear-gradient(
        135deg,
        #e2c978,
        #caa64a
    );

    box-shadow:
        inset 0 0 0 1px rgba(80, 60, 20, 0.45),
        0 1px 2px rgba(0,0,0,0.35);

    overflow: hidden;
}

.bank-card-chip::before {
    content: "";
    position: absolute;
    inset: 4px;

    background:
        linear-gradient(
            to right,
            transparent 0%,
            transparent 28%,
            rgba(80,60,20,0.35) 28%,
            rgba(80,60,20,0.35) 34%,
            transparent 34%,
            transparent 66%,
            rgba(80,60,20,0.35) 66%,
            rgba(80,60,20,0.35) 72%,
            transparent 72%,
            transparent 100%
        );
}

.bank-card-chip::after {
    content: "";
    position: absolute;
    inset: 4px;

    background:
        linear-gradient(
            to bottom,
            transparent 0%,
            transparent 30%,
            rgba(80,60,20,0.3) 30%,
            rgba(80,60,20,0.3) 36%,
            transparent 36%,
            transparent 64%,
            rgba(80,60,20,0.3) 64%,
            rgba(80,60,20,0.3) 70%,
            transparent 70%,
            transparent 100%
        );
}
/* =========================
   DARK MODE — SOFT GRAY WALLET
   ========================= */

/* BANK CARD */
body.dark .bank-card {
    background: #d1d4d7;
    color: #020617;

    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

body.dark .bank-card-label,
body.dark .bank-card-footer,
body.dark .card-brand {
    color: rgba(2, 6, 23, 0.65);
}

body.dark .bank-card-balance {
    color: #020617;
}

body.dark .bank-card::before,
body.dark .bank-card::after {
    background: rgba(2,6,23,0.06);
}

body.dark .bank-card:hover {
    background: #d1d4d7;
    box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}


/* === HERO LAYOUT (OVERVIEW TOP) === */

.hero-row {
    display: grid;
    grid-template-columns: 360px 1fr; 
    gap: 30px;
    align-items: start;
    margin-top: -10px; 
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 360px;
    flex-shrink: 0;
}
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hero-right-header {
    margin-bottom: 16px;
}
.hero-stats-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: stretch;
}
.hero-section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.hero-section-title {
    margin-top: 6px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-main);
}


.stats-mini-grid {
    width: 100%;
}
/* =========================
   QUICK TRANSFER
   ========================= */

.quick-transfer {
    padding: 0px;
    background: transparent;
    max-width: 360px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quick-transfer-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* INPUT */
.quick-transfer-input {
    position: relative;
}

.quick-transfer-input .currency {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--text-secondary);
}

.quick-transfer-input input {
    width: 100%;
    padding: 16px 16px 16px 34px;

    font-size: 17px;
    font-weight: 600;

    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
}

/* BUTTON */
.quick-transfer-btn {
    padding: 16px;
    border-radius: 14px;
    border: none;
    width: 100%;

    font-size: 16px;
    font-weight: 700;

    background: #000000;        
    color: #ffffff;
    cursor: pointer;

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-transfer-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37,99,235,0.35);
}

.quick-transfer-btn:active {
    transform: translateY(0);
}

body.dark .quick-transfer-input input {
    background: #020617;
    border-color: rgba(255,255,255,0.1);
    color: #ffffff;
}

body.dark .quick-transfer-btn {
    background: #d1d4d7;
    color: #020617;
}

body.dark .quick-transfer-input input:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}

.wallet {
    width: 360px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.bank-card {
    z-index: 2;
}

.wallet-frame {
    margin-top: -22px;       
    padding: 26px 20px 20px;

    border: 1px solid var(--border);
    border-top: none;

    border-radius: 0 0 22px 22px;
    box-sizing: border-box;
}
.quick-transfer,
.quick-transfer-input input,
.quick-transfer-btn {
    width: 100%;
    box-sizing: border-box;
}

.store-cat-btn {
    background: var(--bg-card);
    color: var(--text-main);
}

.store-cat-btn.active {
    background: var(--text-main);
    color: white;
}
.store-cat-btn:hover {
    background: var(--btn-hover-bg);
}


.store-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    margin-top: -10px;
}

.store-categories {
    display: flex;
    gap: 10px;
    margin-top: -6px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.store-cat-pill {
    padding: 10px 18px;
    border-radius: 999px;

    border: 2.5px solid #000000;
    background: transparent;

    font-size: 14px;
    font-weight: 600;

    color: #374151;
    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}
body:not(.dark) .store-cat-pill:hover {
    background: rgba(0,0,0,0.04);
}
body:not(.dark) .store-cat-pill.active {
    background: #020617;
    color: #ffffff;
    border-color: #020617;
}
body.dark .store-cat-pill {
    border-color: #ffffff;
    color: rgba(255,255,255,0.75);
}
body.dark .store-cat-pill:hover {
    background: rgba(255,255,255,0.08);
}
body.dark .store-cat-pill.active {
    background: #ffffff;
    color: #020617;
    border-color: #ffffff;
}

.product-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.theme-invert {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.25);
}
body.dark .theme-invert {
    background: #f8fafc; 
    color: #000000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.product-img-container {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        circle at top,
        rgba(255,255,255,0.12),
        transparent 70%
    );
}
.product-img-container img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}
.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;

    flex: 1;           
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}
.product-category {
    font-size: 13px;
    opacity: 0.65;
}
.product-price {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 600;
}


/* =========================
   BUY BUTTON — FINAL FIX
   ========================= */

.product-card .btn-buy {
    margin-top: auto;            

    height: 44px;
    border-radius: 999px;
    border: none;

    background: #ffffff;
    color: #020617;

    font-size: 14px;
    font-weight: 600;
    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}


.product-card .btn-buy:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}
.product-card .btn-buy {
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.12s ease,
        box-shadow 0.12s ease;
}

.product-card .btn-buy:active:not(:disabled) {
    transform: translateY(0); 
    box-shadow: 0 2px 6px rgba(0,0,0,0.12); 
}
body:not(.dark) .product-card .btn-buy {
    background: #ffffff;
    color: #020617;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

body:not(.dark) .product-card .btn-buy:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}
body.dark .product-card .btn-buy {
    background: #020617;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

body.dark .product-card .btn-buy:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.75);
}

/* =========================
   TOAST NOTIFICATION
   ========================= */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.toast {
    background: #2fa75b;
    color: white;

    padding: 18px 22px;          
    border-radius: 16px;

    min-width: 320px;            
    max-width: 380px;

    box-shadow: 0 20px 50px rgba(0,0,0,0.3);

    opacity: 0;
    transform: translateY(20px) scale(0.96); 
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1); 
}


.toast-title {
    font-size: 15px;
    font-weight: 700;
}

.toast-text {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.95;
}

@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.hide {
    animation: toast-out 0.3s ease forwards;
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateY(16px);
    }
}
/* === INVENTORY LIST (LUXE STYLE) === */

.inventory-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;

    height: 92px;              
    padding: 10px 20px;       

    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;

    box-sizing: border-box;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

        gap: 20px;
}

.inventory-row:not(:last-child) {
    margin-bottom: 12px;
}

.inventory-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.inv-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.inv-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #f3f4f6;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.inv-thumb img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.inv-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inv-name {
    font-size: 16px;
    font-weight: 600;
}

.inv-category {
    font-size: 13px;
    color: var(--text-secondary);
}


.inv-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--text-secondary);
}

.inv-stats span {
    color: var(--text-main);
    font-weight: 500;
}

.inv-value {
    font-weight: 600;
    color: var(--text-main);
}

.inv-sell-btn {
    padding: 10px 18px;
    border-radius: 10px;

    border: 1px solid var(--border);
    background: transparent;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.inv-sell-btn:hover {
    background: #020617;
    color: #ffffff;
}

body.dark .inventory-row {
    background: #0b1220;
    border-color: rgba(255,255,255,0.08);
}

body.dark .inv-thumb {
    background: rgba(255,255,255,0.06);
}

body.dark .inv-sell-btn {
    border-color: rgba(255,255,255,0.2);
    color: #ffffff;
}

body.dark .inv-sell-btn:hover {
    background: #ffffff;
    color: #020617;
}
.inventory-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;

    font-size: 14px;
    color: var(--text-secondary);
}

.inventory-sort button {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    font-weight: 600;
}
body.dark .inventory-sort button {
    color: #ffffff;
}


.inventory-sort button.active {
    background: #020617;
    color: #ffffff;
    border-color: #020617;
}

body.dark .inventory-sort button.active {
    background: #ffffff;
    color: #020617;
    border-color: #ffffff;
}
.allocation-wrap {
    display: flex;
    gap: 20px;
    align-items: center;
}

.allocation-chart {
    transform: rotate(-90deg);
}

.allocation-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.alloc-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alloc-legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.store-add-object {
    margin-bottom: 16px;
}

.add-object-pill {
    padding: 16px 28px;          
    font-size: 16px;
    font-weight: 700;

    border-radius: 999px;
    border: 2px solid #020617;

    background: transparent;
    color: #020617;            

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.add-object-pill:hover {
    background: rgba(2, 6, 23, 0.04);
}

body.dark .add-object-pill {
    border-color: #ffffff;
    color: #ffffff;
}

body.dark .add-object-pill:hover {
    background: rgba(255,255,255,0.08);
}

body:not(.dark) .store-cat-pill.active {
    background: #020617;
    color: #ffffff;
    border-color: #020617;
}

body.dark .store-cat-pill.active {
    background: #ffffff;
    color: #020617;
    border-color: #ffffff;
}
/* =========================
   ADD OBJECT CARD
   ========================= */

.add-object-card {
    height: 420px;        
    border: 2px dashed #9ca3af;
    background: transparent;
    margin-top: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.2s ease;
}

.add-object-card:hover {
    border-color: #020617;
    background: rgba(0,0,0,0.03);
    transform: translateY(-4px);
}

.add-object-inner {
    height: 100%;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.add-object-plus {
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
}

.add-object-label {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

body.dark .add-object-card {
    border-color: rgba(255,255,255,0.35);
}

body.dark .add-object-inner {
    color: rgba(255,255,255,0.6);
}

body.dark .add-object-card:hover {
    border-color: #ffffff;
    background: rgba(255,255,255,0.06);
}
/* =========================
   ADD OBJECT MODAL
   ========================= */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;

    align-items: center;
    justify-content: center;

    z-index: 999;
}

.modal-backdrop.show {
    display: flex;
}

.modal {
    width: 420px;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;

    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

body.dark .modal {
    background: #020617;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.modal-header h3 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-label {
    font-size: 13px;
    font-weight: 600;
}

.modal-body input,
.modal-body select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

body.dark .modal-body input,
body.dark .modal-body select {
    background: #020617;
    color: #ffffff;
    border-color: #374151;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.modal-cancel {
    background: transparent;
    border: 1px solid #9ca3af;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
}

.modal-confirm {
    background: #020617;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
}

body.dark .modal-confirm {
    background: #ffffff;
    color: #020617;
}
.product-card {
    position: relative;
}

.remove-custom-btn {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 28px;
    height: 28px;

    border: none;
    border-radius: 50%;

    background: rgba(0,0,0,0.75);
    color: #fff;

    font-size: 18px;
    font-weight: bold;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 5;
}

.remove-custom-btn:hover {
    background: #ef4444;
}
.store-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.tooltip {
    position: absolute;
    top: 24px;
    right: 0;
    max-width: 260px;
    background: #111;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.tooltip-wrap:hover .tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.store-disclaimer,
.overview-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af; 
    max-width: 420px;
    text-align: right;
    line-height: 1.4;
}

/* ⓘ icon */
.info-icon {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    opacity: 0.8;
    flex-shrink: 0;
}
.feedback-section,
.donate-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px; 
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}


.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.feedback-title {
    font-weight: 600;
    font-size: 16px;
}

.feedback-info {
    font-size: 14px;
    opacity: 0.6;
}

.feedback-form textarea {
    width: 100%;
    min-height: 96px;
    max-width: 100%;
    box-sizing: border-box;
    resize: vertical;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-family: inherit;
    margin-bottom: 12px;
}

.feedback-form button {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: #000000;
    color: #fff;
}

body.dark .feedback-section {
    background: #111827;
    border-color: #1f2937;
}

body.dark .feedback-form textarea {
    background: #020617;
    color: #fff;
    border-color: #1f2937;
}

.feedback-donate-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 24px; 
    align-items: stretch; 
}


.feedback-section,
.donate-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.feedback-header,
.donate-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.feedback-title,
.donate-title {
    font-weight: 600;
    font-size: 15px;
}

.feedback-form textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    background: #fafafa;
}

.feedback-form textarea:focus {
    outline: none;
    border-color: #000000;
    background: #fff;
}

.feedback-form button {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    border: none;
    background: #000000;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}

.donate-text {
    font-size: 14px;
    line-height: 1.4;
    color: #374151;
    margin: 8px 0 16px;
    margin-top: auto;
}

.donate-btn {
    background: #000000;       
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 500;
    cursor: pointer;
     margin-top: auto;

    transition: none;
}




/* MOBILE */
/* =====================================================
   MOBILE BANKING MODE — FINAL (CLEAN & STABLE)
   ===================================================== */
/* =====================================================
   MOBILE BANKING MODE — CLEAN FINAL
   ===================================================== */
/* =====================================================
   MOBILE VERSION — CLEAN FINAL (STABLE 3x2 GRID)
   ===================================================== */
@media (max-width: 640px) {

  /* =========================
     1. BASE
     ========================= */

  html,
  body {
    max-width: 100vw;
    overflow-x: hidden;
    background: var(--bg-body);
  }

  body {
    padding-bottom: 96px;
  }

  .app-container {
    display: block;
    height: auto;
  }

  .main-content {
    width: 100%;
    padding: 16px 16px 96px;
    overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  }

  .header,
  .overview-header {
    display: none;
  }

  /* =========================
     2. HERO LAYOUT
     ========================= */

  .hero-row {
    display: block;
  }

  .hero-left {
    display: flex;
    justify-content: center;
  }

  .wallet {
    width: 100%;
  }

  .bank-card {
    width: 92%;
    max-width: 360px;
    margin: 20px auto 8px;
  }

  .quick-transfer {
    max-width: 360px;
    margin: 0 auto;
  }

  /* =========================
     3. STATISTICS
     ========================= */



  .analytics-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .analytics-card {
    min-height: 100px;
  }

  /* =========================
     4. PORTFOLIO / TOTAL / MOST ASSET
     ========================= */

  .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-top: 16px;
  }

  .portfolio-card,
  .total-items-card,
  .most-asset-card {
    height: 110px !important;
    min-height: 110px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .portfolio-value,
  .total-items-value,
  .most-asset-card .portfolio-value {
    font-size: 18px !important;
  }

  /* =========================
     5. BOTTOM NAVIGATION
     ========================= */

  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 76px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    z-index: 9999;
  }

  .main-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-btn {
    flex-direction: column;
    font-size: 22px;
    background: none;
  }

  .nav-btn span,
  .sidebar-title,
  .theme-switch {
    display: none;
  }


/* =========================
   MOBILE — COMPACT FEEDBACK
   ========================= */

.feedback-donate-row {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

.feedback-section,
.donate-section {
  padding: 16px !important;
}

.feedback-form textarea {
  min-height: 80px !important;
  font-size: 13px !important;
}

.feedback-business {
  margin: 8px 0 !important;
}

.feedback-form button {
  padding: 8px 14px !important;
  font-size: 13px !important;
}

.donate-text {
  font-size: 13px !important;
  margin-bottom: 12px !important;
}

.donate-btn {
  padding: 10px 14px !important;
}

}


@media (max-width: 640px) {


  .product-card {
    flex-direction: row !important;
    align-items: center !important;
    height: 110px !important;
    padding: 10px !important;
    gap: 12px !important;
  }

  .product-img-container {
    width: 80px !important;
    height: 80px !important;
    flex-shrink: 0 !important;
  }

  .product-img-container img {
    max-height: 70px !important;
  }

  .product-info {
    flex: 1 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2px !important;
  }

  .product-name {
    font-size: 14px !important;
  }

  .product-category {
    font-size: 12px !important;
    opacity: 0.6 !important;
  }

  .product-price {
    font-size: 13px !important;
  }

  .product-card .btn-buy {
    width: 70px !important;
    height: 34px !important;
    margin-top: 0 !important;
    margin-left: auto !important;
    font-size: 12px !important;
  }


.store-grid {
    padding-left: -10px !important;   
    padding-right: 25px !important; 
  }

  #toast-container {
    display: none !important;
  }

.inv-sell-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }

  .inventory-row {
    transform: translateZ(0);
    will-change: transform;
  }

.store-disclaimer {
    text-align: left;
    margin-left: auto;
    max-width: 480px;
    flex: 1;
}
.portfolio-card,
.total-items-card {
  display: none !important;
}

.allocation-card {
  display: block !important;
  grid-column: 1 / -1 !important;
}
}

/* =====================================================
   TABLET VERSION (641px – 1024px)
   ===================================================== */
@media (min-width: 641px) and (max-width: 1024px) {

  /* ---------- LAYOUT ---------- */

  .app-container {
    grid-template-columns: 200px 1fr; 
  }

  .main-content {
    padding: 20px;
  }

  /* ---------- HERO ---------- */

.hero-row {
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
  }
.hero-left {
    grid-column: 1;
    grid-row: 1;
  }
 .hero-right {
    display: block !important;
    grid-column: 2;
    grid-row: 1;
  }

  .bank-card {
    max-width: 320px;
    height: 190px;
  }

  /* ---------- STATS GRID ---------- */

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* ---------- ANALYTICS ---------- */

  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  /* ---------- STORE GRID ---------- */

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

  .wallet {
    width: 320px;
  }

  .bank-card {
    width: 100%;
    height: 190px;
    padding: 16px 18px;
  }

  .bank-card-content {
    margin-top: 50px;
  }

  .bank-card-balance {
    font-size: 28px;
  }

  .bank-card-chip {
    width: 36px;
    height: 24px;
  }
  .quick-transfer {
    width: 100%;
    max-width: 320px;
  }

.store-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px;
  }

  .product-img-container {
    height: 150px;
  }

  .product-name {
    font-size: 15px;
  }

  .product-price {
    font-size: 14px;
  }

  .product-card .btn-buy {
    height: 36px;
    font-size: 13px;
  }
  #toast-container {
    display: none !important;
  }
  .app-container {
    grid-template-areas: "sidebar main";
    grid-template-rows: 1fr;
  }


.allocation-card {
  display: block !important;
  width: 100%;
   margin-top: 20px;
}

.insights-layout {
    grid-template-columns: 1fr 1fr;  
    gap: 20px;
}
}
