:root { 
    --primary: #0f74bd; 
    --primary-light: #4dabf7;
    --bg: #050505; 
    --text: #ffffff; 
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --font: 'Space Grotesk'!important;
    --section-spacing: clamp(80px, 15vh, 180px); 
    --content-gap: clamp(40px, 5vh, 60px);       
    --grid-gap: 24px;                            
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: var(--font) !important; 
    background-color: var(--bg); 
    color: var(--text); 
    overflow-x: hidden;
    overscroll-behavior: none;
}

#canvas-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1; opacity: 0.5; pointer-events: none;
}

main { position: relative; z-index: 1; width: 100%; }

header {
    position: fixed; top: 0; width: 100%;
    padding: 20px 5vw;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100; mix-blend-mode: difference;
}

.logo-img { height: 40px; filter: brightness(100); }

nav { display: flex; gap: 20px; }

.nav-link { 
    color: #fff; text-decoration: none; text-transform: uppercase; 
    font-size: 0.8rem; letter-spacing: 1px; position: relative; 
}

.hamburger {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 30px; height: 20px; position: relative;
    z-index: 200; 
}

.hamburger span {
    display: block; width: 100%; height: 2px;
    background: #fff; position: absolute;
    transition: 0.3s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { bottom: 9px; } 
.hamburger span:nth-child(3) { bottom: 0; }


#nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
    z-index: 101; opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
body.nav-open #nav-overlay { opacity: 1; pointer-events: auto; }

section {
    min-height: auto; 
    padding: var(--section-spacing) 5vw;
    display: flex; flex-direction: column; justify-content: center;
    max-width: 1600px; margin: 0 auto;
}

#hero {
    min-height: 100vh; padding-top: 100px; padding-bottom: 0;
    justify-content: center;
}

h1 {
    font-size: clamp(3.5rem, 9vw, 8.5rem);
    line-height: 0.9; font-weight: 700; text-transform: uppercase;
    mix-blend-mode: overlay; opacity: 0; 
    transform: translateY(100px) skewY(10deg);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: var(--content-gap); line-height: 1;
}

p {
    font-size: 1.2rem; max-width: 600px; line-height: 1.6;
    color: #aaa; margin-bottom: 20px;
}

.btn {
    display: inline-block; padding: 15px 40px;
    border: 1px solid rgba(255,255,255,0.2); border-radius: 20px;
    color: #fff; text-decoration: none; text-transform: uppercase;
    font-size: 0.9rem; letter-spacing: 1px; transition: 0.3s;
    backdrop-filter: blur(10px);
}
.btn:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.05); }

.gallery-track { display: flex; gap: var(--grid-gap); width: 100%; }

.gallery-item {
    flex: 1; height: 500px;
    position: relative; overflow: hidden;
    border-radius: 20px; transform-style: preserve-3d;
    will-change: transform, opacity;
}
.gallery-item img {
    width: 100%; height: 120%; object-fit: cover;
    position: absolute; top: -10%;
}

.feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--grid-gap); width: 100%;
    padding: clamp(30px, 5vw, 60px);
}

.feature-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--border); border-radius: 20px;
    padding: clamp(30px, 5vw, 60px);
    backdrop-filter: blur(20px); width: 100%; max-width: 900px; 
}
.feature-card:hover { background: rgba(255,255,255,0.08); }

.feature-icon {
    width: 48px; height: 48px; color: var(--primary);
    margin-bottom: 24px; fill: none; stroke: none;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.calculator-wrapper {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--border); border-radius: 20px;
    padding: clamp(30px, 5vw, 60px);
    backdrop-filter: blur(20px); width: 100%; max-width: 900px; 
}

.calc-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; 
    padding-bottom: 20px;
}

input {
    background: transparent; border: none; color: #fff;
    font-size: 2rem; text-align: right; font-family: var(--font); width: 200px;
}
input:focus { outline: none; }

.result-big {
    font-size: clamp(3rem, 6vw, 6rem); color: var(--primary-light);
    font-weight: 700; margin-top: 10px;
}

footer {
    padding: 50px 5vw; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between;
    color: #666; font-size: 0.9rem; margin-top: var(--section-spacing); 
}

@media(max-width: 768px) {
    :root { --section-spacing: 100px; }
    
    h1 { font-size: 3.5rem; }
    header { padding: 20px; }
    
    .hamburger { display: block; }
    
    .gallery-track { display: block; width: 100%; }
    .gallery-item { 
        width: 100%; height: 300px; min-height: 300px; 
        margin-bottom: 20px; transform: none !important;
    }
    .gallery-item:last-child { margin-bottom: 0; }
    
    .calc-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    input { text-align: left; width: 100%; }

    nav {
        position: fixed;
        top: 0; right: 0;
        height: 100vh; width: 70%; max-width: 300px;
        background: #0a0a0a;
        display: flex; 
        flex-direction: column;
        justify-content: center;
        padding: 40px; gap: 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 102;
        border-left: 1px solid var(--border);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    body.nav-open nav { transform: translateX(0); }

    .nav-link {
        font-size: 1.2rem;
        opacity: 0;
        transform: translateY(10px);
        transition: 0.3s;
    }

    body.nav-open .nav-link {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }
}
nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px; 
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--primary-light);
}

.nav-icon {
    width: 20px;
    height: 20px;
    fill: none;
    transition: stroke 0.3s;
}

.nav-item.has-subnav {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.subnav {
    position: absolute;
    top: 100%; 
    right: 0;  
    width: 240px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 150;
}

.nav-item.has-subnav:hover .subnav {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px); 
}

.subnav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #bbb;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.subnav-link:hover {
    color: var(--primary-light);
}

.subnav-link .nav-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.subnav-link:hover .nav-icon {
    opacity: 1;
    color: var(--primary-light);
}

.logo2 { display: none; }
@media(max-width: 768px) {
    nav {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: 70%; max-width: 300px;
        background: #0a0a0a;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;     
        padding: 80px 20px;          
        gap: 25px;                  
        
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 102;
        border-left: 1px solid var(--border);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        overflow-y: auto; 
    }

    body.nav-open nav { transform: translateX(0); }

    .nav-link {
        width: 100%;
        display: flex;
        align-items: center; 
        gap: 15px;           
        font-size: 1.1rem;   
        color: #fff;
        text-decoration: none;
        opacity: 0;
        transform: translateY(10px);
        transition: 0.3s;
        padding: 10px 0;    
    }

    .nav-link .nav-icon {
        width: 28px;  
        height: 28px;
        flex-shrink: 0;
        color: var(--primary-light); 
    }

    .nav-item.has-subnav {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .subnav {
        position: static; 
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 15px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .subnav-link {
        display: flex;
        align-items: center;
        gap: 15px;
        font-size: 1rem;
        color: #aaa;
        text-decoration: none;
    }

    .subnav-link .nav-icon {
        width: 24px;
        height: 24px;
    }

    body.nav-open .nav-link, 
    body.nav-open .subnav-link {
        opacity: 1;
        transform: translateY(0);
    }
    
    .logo2 {
        margin-top: auto; 
        padding-top: 20px;
        opacity: 0.5;
    }
    .logo2 img { height: 20px; }
}   
@media(max-width: 768px) {
    .nav-item.has-subnav > .nav-link {
        display: none !important;
    }

    .nav-item.has-subnav {
        width: 100%;
        display: contents; 
    }

    .subnav {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important; 
    }

    .subnav-link {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 15px;
        font-size: 1.1rem !important; 
        color: #fff !important;       
        text-decoration: none;
        padding: 10px 0 !important;
        background: transparent !important;
    }

    .subnav-link .nav-icon {
            width: 28px !important;
            height: 28px !important;
            color: var(--primary-light) !important;
            opacity: 1 !important;
            flex-shrink: 0;
    }
} 

#merchant-dashboard {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: 24px;
padding: 0 5vw 80px;
max-width: 1600px;
margin: 0 auto;
width: 100%;
}

.span-full {
grid-column: 1 / -1;
}

.card, 
.stat-card, 
.tile {
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 20px;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
overflow: hidden;
position: relative;
}

.welcome-card {
padding: 30px;
background: linear-gradient(135deg, rgba(15, 116, 189, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
display: flex;
flex-direction: column;
justify-content: center;
min-height: 140px;
}

.welcome-content h2 {
font-weight: 700;
letter-spacing: -1px;
color: #fff;
}

.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 24px;
margin-top: 24px;
}

.stat-card {
padding: 24px;
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 180px;
}

.stat-card:hover {
transform: translateY(-5px);
border-color: rgba(255, 255, 255, 0.25);
background: rgba(255, 255, 255, 0.05);
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon-bg {
font-size: 1.5rem;
color: var(--primary-light);
margin-bottom: 15px;
opacity: 0.7;
transition: opacity 0.3s;
}

.stat-card:hover .stat-icon-bg {
opacity: 1;
}

.stat-label {
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 1px;
color: #888;
margin-bottom: 5px;
}

.stat-value {
font-size: 2.2rem;
font-weight: 700;
color: #fff;
margin: 5px 0;
}

.stat-pill {
font-size: 0.75rem;
padding: 6px 12px;
border-radius: 20px;
background: rgba(255, 255, 255, 0.05);
width: fit-content;
border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-pill.positive {
background: rgba(129, 129, 129, 0.15);
color: #64748b;
border-color: rgba(53, 56, 55, 0.2);
}

.stat-details {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease;
opacity: 0;
}

.stat-card.expanded {
border-color: var(--primary);
background: rgba(15, 116, 189, 0.05);
}

.stat-card.expanded .stat-details {
max-height: 500px;
opacity: 1;
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid rgba(255,255,255,0.1);
}

.breakdown-item {
display: flex;
justify-content: space-between;
padding: 8px 0;
font-size: 0.9rem;
border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.breakdown-item:last-child {
border-bottom: none;
}

.tiles {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 20px;
}

.tile {
padding: 30px 20px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 15px;
cursor: grab;
user-select: none;
}

.tile:active {
cursor: grabbing;
}

.tile:hover {
background: rgba(255, 255, 255, 0.07);
border-color: var(--primary-light);
transform: scale(1.02);
}

.tile .icon {
font-size: 2rem;
filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
transition: transform 0.3s;
}

.tile:hover .icon {
transform: scale(1.1);
}

.tile h3 {
font-size: 1rem;
font-weight: 600;
color: #fff;
margin: 0;
}

.tile p {
font-size: 0.8rem;
color: #888;
margin: 0;
line-height: 1.2;
}

.move-icon {
position: absolute;
top: 10px;
right: 10px;
color: rgba(255,255,255,0.3);
opacity: 0;
transition: opacity 0.2s;
font-size: 0.9rem;
}

.tile:hover .move-icon {
opacity: 1;
}

.tile.dragging {
opacity: 0.5;
border: 1px dashed #fff;
}

.dragging-ghost {
background: #1a1a1a;
border: 1px solid var(--primary);
border-radius: 20px;
pointer-events: none;
z-index: 9999;
}

.card .head {
padding: 24px 24px 0;
}

.sales-list {
display: flex;
flex-direction: column;
gap: 10px;
}

.sale-item {
display: grid;
grid-template-columns: auto 2fr 2fr 1fr;
align-items: center;
gap: 20px;
padding: 16px;
border-radius: 20px;
background: rgba(255,255,255,0.02);
border: 1px solid transparent;
transition: all 0.2s;
cursor: pointer;
}

.sale-item:hover {
background: rgba(255,255,255,0.05);
border-color: rgba(255,255,255,0.1);
}

.sale-icon {
width: 45px;
height: 45px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary), var(--primary-light));
color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 0.9rem;
box-shadow: 0 4px 10px rgba(15, 116, 189, 0.3);
}

.sale-info h4 {
font-size: 1rem;
color: #fff;
margin-bottom: 4px;
font-weight: 500;
}

.sale-info p, .sale-sub {
font-size: 0.85rem;
color: #888;
}

.sale-meta {
text-align: right;
display: flex;
flex-direction: column;
align-items: flex-end;
}

.sale-price {
font-weight: 700;
color: #fff;
font-size: 1.1rem;
}

.sale-date {
font-size: 0.75rem;
color: #666;
}

.sale-expanded-details {
grid-column: 1 / -1;
max-height: 0;
overflow: hidden;
transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
background: rgba(0,0,0,0.2);
border-radius: 20px;
margin-top: 0;
}

.sale-item.expanded {
background: rgba(255,255,255,0.08);
border-color: var(--primary);
}

.sale-item.expanded .sale-expanded-details {
max-height: 200px;
margin-top: 15px;
padding: 15px;
}

.detail-row {
display: flex;
gap: 12px;
margin-bottom: 8px;
font-size: 0.9rem;
color: #ccc;
align-items: center;
}

.detail-row i {
width: 20px;
text-align: center;
color: var(--primary-light);
}

@media (max-width: 1024px) {
#merchant-dashboard {
    grid-template-columns: 1fr;
}
}

@media (max-width: 768px) {
.sale-item {
    grid-template-columns: auto 1fr;
    grid-template-areas: 
        "icon info"
        "meta meta"
        "details details";
    gap: 10px;
}

.sale-icon { grid-area: icon; }
.sale-info:first-of-type { grid-area: info; }
.sale-details-col { display: none; } 
.sale-meta { 
    grid-area: meta; 
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 10px;
    margin-top: 5px;
}
.sale-expanded-details { grid-area: details; }

.stats-grid {
    grid-template-columns: 1fr;
}
}
#merchant-dashboard {
margin-top: 80px;
}

#status-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
border-radius: 20px;
font-family: 'Space Grotesk', sans-serif;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}

#status-badge:hover {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.2);
transform: translateY(-1px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

#status-badge.ok {
color: #10b981;
background: rgba(16, 185, 129, 0.1);
border-color: rgba(16, 185, 129, 0.2);
box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.1);
}

#status-badge.ok::before {
content: '';
width: 6px;
height: 6px;
background: #10b981;
border-radius: 50%;
box-shadow: 0 0 10px #10b981;
animation: pulse-green 2s infinite;
}

#status-badge.warn {
color: #f59e0b;
background: rgba(245, 158, 11, 0.1);
border-color: rgba(245, 158, 11, 0.2);
}

#status-badge.err {
color: #ef4444;
background: rgba(239, 68, 68, 0.1);
border-color: rgba(239, 68, 68, 0.2);
}

@keyframes pulse-green {
0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
}
70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
}
100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
}
}

@media (max-width: 768px) {
#merchant-dashboard {
    margin-top: 100px;
    padding-bottom: 40px;
}
}
.tile .icon svg {
width: 36px;
height: 36px;
fill: none;
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tile:hover .icon svg {
transform: scale(1.5) rotate(5deg);
}

.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 24px;
margin-top: 24px;
align-items: flex-start; 
}

.stat-card {
display: flex;
flex-direction: column;
justify-content: space-between;

min-height: 180px; 
height: auto;

transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.stat-card.expanded {
z-index: 10;
background: rgba(15, 116, 189, 0.1);
border-color: var(--primary);
box-shadow: 0 15px 50px rgba(0,0,0,0.4);
}

.stats-grid:has(.stat-card.expanded) .stat-card:not(.expanded) {
opacity: 0.5;
transform: scale(0.98);
filter: blur(1px);
}
.refresh-btn {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 50%;
width: 36px;
height: 36px;
padding: 0; 
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
color: #94a3b8; 
}

.refresh-btn svg {
width: 16px;
height: 16px;
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.refresh-btn:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.25);
color: #fff;
box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.refresh-btn:hover svg {
transform: rotate(180deg);
}

.refresh-btn:active svg {
transform: rotate(360deg);
transition: 0.2s;
}
#welcome-title {
text-transform: uppercase;
letter-spacing: 1px; 
margin-bottom: 16px !important; 
}

.card .body {
padding-bottom: 8px !important; 
}

.sales-list {
margin-bottom: 0;
}

.sales-list .sale-item:last-child {
margin-bottom: 0;
}
@media (min-width: 768px) {
#sales-list .sale-item {
    padding: 8px 16px !important;
    gap: 12px !important;
    min-height: 50px !important;
}

#sales-list .sale-item .sale-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.8rem !important;
}

#sales-list .sale-item h4 {
    margin-bottom: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
}

#sales-list .sale-item p,
#sales-list .sale-item .sale-sub {
    font-size: 0.75rem !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

#sales-list .sale-meta .sale-price {
    font-size: 1rem !important;
}
}

#sales-list:not(.expanded) .sale-item:nth-child(n+6) {
display: none !important;
}

#show-more-sales {
display: none; 
margin: 15px auto 0;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.1);
color: var(--primary-light);
padding: 8px 24px;
border-radius: 20px;
cursor: pointer;
font-family: 'Space Grotesk', sans-serif;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 1px;
transition: all 0.3s ease;
width: fit-content;
}

#show-more-sales:hover {
background: rgba(255, 255, 255, 0.08);
border-color: var(--primary);
transform: translateY(-2px);
}
@media (max-width: 768px) {
.sale-item.expanded .sale-expanded-details {
    max-height: 500px !important; 
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: block !important;
}

.sale-expanded-details .detail-row {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}
}
.hamburger span {
transition: all 0.3s ease-in-out;
}

body.nav-open .hamburger span:nth-child(1) {
top: 9px;
transform: rotate(45deg);
}

body.nav-open .hamburger span:nth-child(2) {
opacity: 0;
transform: translateX(-20px);
}

body.nav-open .hamburger span:nth-child(3) {
bottom: 9px;
transform: rotate(-45deg);
}
@media (min-width: 1024px) {
.stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}
}

.loading-dots {
display: inline-flex;
gap: 6px;
align-items: center;
justify-content: center;
height: 30px;
}

.loading-dots span {
width: 8px;
height: 8px;
background-color: var(--primary-light);
border-radius: 50%;
display: inline-block;
animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
40% { transform: scale(1); opacity: 1; }
}

.stat-value {
white-space: nowrap;     
overflow: hidden;        
text-overflow: ellipsis;  
font-size: clamp(1.6rem, 2.5vw, 2.2rem) !important; 
max-width: 100%;           
}

.loading-dots span {
background-color: var(--primary-light);
width: 15px; 
height: 15px;
}

@media (max-width: 768px) {
    #merchant-dashboard {
        margin-top: 85px !important; 
        padding-top: 0 !important; 
    }
}