:root {
    /* iOS 26 Liquid Glass Color Scheme - Subtle, Light Tones */
    --primary: #007AFF; /* iOS blue */

    --primary-light: #5AC8FA; /* light blue */

    --secondary: #00C7BE; /* teal */

    --success: #34C759; /* green */

    --light: #f8f9fa;

    --dark: #212529;

    --darker: #0a0e27;

    --danger: #FF3B30; /* red */

    --warning: #FF9500; /* orange */

    --gray: #8E8E93;

    --card-bg: rgba(255, 255, 255, 0.95);

    --time-bg: rgba(0, 122, 255, 0.08);

    --header-height: 80px;

    --card-spacing: 30px;

    --aurora-hue-1: 210; /* soft blue hue */

    --aurora-hue-2: 200; /* light blue hue */

    --aurora-angle: 0deg;

    --card-border-glow: rgba(0, 122, 255, 0.25);

    --orb-color: rgba(90, 200, 250, 0.2);

    /* iOS 26 Liquid Glass Variables */
    --glass-tint: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow-1: rgba(0, 0, 0, 0.1);
    --glass-shadow-2: rgba(0, 0, 0, 0.2);
    --glass-highlight: rgba(255, 255, 255, 0.25);

    color-scheme: light;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 14, 39, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    border: 2px solid rgba(10, 14, 39, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    box-shadow: 0 0 10px rgba(255, 20, 97, 0.5);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(10, 14, 39, 0.5);
}

body {
    background: linear-gradient(135deg, #0a0e27 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 0;
    color: #ffffff;
    overflow-x: hidden;
    transition:
        background-color 0.35s ease,
        color 0.35s ease,
        background 0.35s ease;
    position: relative;
    z-index: 0;
}

/* Subtle grid overlay for depth */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 20, 97, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 20, 97, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -2;
    opacity: 0.3;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: -10%;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

body::before {
    background:
        radial-gradient(circle at 20% 25%, hsla(var(--aurora-hue-1), 100%, 60%, 0.4), transparent 50%),
        radial-gradient(circle at 80% 10%, hsla(var(--aurora-hue-2), 100%, 60%, 0.35), transparent 45%),
        radial-gradient(circle at 40% 70%, hsla(200, 100%, 60%, 0.25), transparent 40%);
    filter: blur(80px);
    opacity: 0.6;
    transform: rotate(var(--aurora-angle));
    animation: pulse-aurora 8s ease-in-out infinite alternate;
    z-index: -1;
}

/* Grid overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 20, 97, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 20, 97, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -2;
    opacity: 0.3;
}

@keyframes pulse-aurora {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

#ambientOrbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: screen;
}

.ambient-orb {
    position: absolute;
    width: clamp(150px, 20vw, 350px);
    height: clamp(150px, 20vw, 350px);
    border-radius: 50%;
    background: radial-gradient(circle, var(--orb-color), transparent 70%);
    filter: blur(20px);
    opacity: 0.35;
    box-shadow: 0 0 60px var(--orb-color);
}

#ambientOrbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    mix-blend-mode: screen;
}

.ambient-orb {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 65%);
    opacity: 0.45;
    filter: blur(8px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Header styles */
header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: var(--header-height);
    background: linear-gradient(
        180deg,
        rgba(10, 14, 39, 0.72) 0%,
        rgba(10, 14, 39, 0.65) 100%
    );
    z-index: 100;
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 var(--glass-highlight);
    transition:
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease,
        box-shadow 0.35s ease,
        backdrop-filter 0.35s ease;
}

/* iOS liquid glass shine effect on header */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: liquid-shine 8s ease-in-out infinite;
}

@keyframes liquid-shine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.pill-btn {
    appearance: none;
    background: linear-gradient(
        135deg, 
        rgba(0, 122, 255, 0.65) 0%, 
        rgba(90, 200, 250, 0.55) 100%
    );
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    border: 1.5px solid var(--glass-border);
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 4px 16px rgba(0, 122, 255, 0.25),
        inset 0 1px 0 var(--glass-highlight),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition:
        background 0.3s ease,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
    overflow: hidden;
}

/* Liquid glass shimmer effect */
.pill-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    animation: btn-shimmer 3s ease-in-out infinite;
}

@keyframes btn-shimmer {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

.pill-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 
        0 8px 28px rgba(0, 122, 255, 0.4),
        0 4px 12px rgba(90, 200, 250, 0.25),
        0 0 40px rgba(0, 122, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.pill-btn:active {
    transform: translateY(0) scale(0.96);
}

.pill-btn:focus {
    outline: none;
    box-shadow: 
        0 0 0 4px rgba(255, 20, 97, 0.25),
        0 4px 16px rgba(255, 20, 97, 0.4),
        inset 0 1px 0 var(--glass-highlight);
}

.pill-btn.lang-en {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.pill-btn.theme-light {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #1e3a8a;
}

.pill-btn.theme-dark {
    background: linear-gradient(135deg, #111827, #1f2937);
}

@media (max-width: 480px) {
    .header-controls {
        position: absolute;
        top: 12px;
        right: 20px;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
    .pill-btn {
        padding: 6px 14px;
        font-size: 0.7rem;
    }
}

.lang-switcher:hover,
.theme-switcher:hover {
    box-shadow: 0 6px 16px -6px rgba(67, 97, 238, 0.25);
}

.lang-switcher:focus-within,
.theme-switcher:focus-within {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.25);
}

/* legacy select styling removed (replaced by .pill-btn) */

.theme-switcher select {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.theme-switcher select.dark-active {
    background: linear-gradient(135deg, #111827, #1f2937);
}

.theme-switcher select.light-active {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #1e3a8a;
}
.lang-switcher select:hover,
.theme-switcher select:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -4px rgba(67, 97, 238, 0.4);
}

/* focus styles handled by .pill-btn:focus */

@media (max-width: 480px) {
    .lang-switcher,
    .theme-switcher {
        position: absolute;
        top: 12px;
        right: 20px;
        padding: 4px 10px;
    }

    .theme-switcher {
        top: 56px;
    }

    .lang-switcher select,
    .theme-switcher select {
        padding: 6px 24px 6px 12px;
        font-size: 0.7rem;
    }
}

:root[data-theme="dark"] {
    --primary: #FF1461;

    --primary-light: #FF4081;

    --secondary: #18FF92;

    --success: #00D9FF;

    --light: #1f2937;

    --dark: #f1f5f9;

    --darker: #f8fafc;

    --danger: #FF1461;

    --warning: #FFC107;

    --gray: #94a3b8;

    --card-bg: rgba(10, 14, 39, 0.85);

    --time-bg: rgba(255, 20, 97, 0.12);

    background-color: #0a0e27;

    color-scheme: dark;
}

/* Form controls and autofill improvements */
input,
select,
textarea,
button {
    accent-color: var(--primary);
}

/* Improve focus ring for inputs (light) */
.search-box input:focus {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.25);
}

/* Placeholder color (light) */
::placeholder {
    color: var(--gray);
    opacity: 0.8;
}

/* Autofill */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: inherit;
    caret-color: inherit;
    transition: background-color 9999s ease-in-out 0s;
}

/* Dark theme form controls */
:root[data-theme="dark"] .search-box input {
    background-color: #0f172a;
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

:root[data-theme="dark"] .search-box input:focus {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

:root[data-theme="dark"] ::placeholder {
    color: #94a3b8;
    opacity: 0.9;
}

:root[data-theme="dark"] input:-webkit-autofill,
:root[data-theme="dark"] textarea:-webkit-autofill,
:root[data-theme="dark"] select:-webkit-autofill {
    -webkit-text-fill-color: #e2e8f0;
    box-shadow: 0 0 0px 1000px #0f172a inset;
}

/* Dark mode contrast tweaks */
:root[data-theme="dark"] .items-section,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .item-card {
    border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .detail-label {
    color: #cbd5e1;
}

:root[data-theme="dark"] .detail-value {
    color: #e2e8f0;
}

:root[data-theme="dark"] .cost-calculation {
    background: #0f1a2b;
    border-color: rgba(59, 130, 246, 0.35);
}

:root[data-theme="dark"] body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    transition:
        background-color 0.35s ease,
        color 0.35s ease,
        background 0.35s ease;
}

:root[data-theme="dark"] header {
    background: var(--card-bg);

    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

:root[data-theme="dark"] body::before {
    opacity: 0.55;
}

:root[data-theme="dark"] body::after {
    opacity: 0.45;
}

/* Increase contrast for the time banner in dark mode */
:root[data-theme="dark"] .time-banner {
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}
:root[data-theme="dark"] .time-banner .current-time i {
    color: var(--primary);
}

:root[data-theme="dark"] .item-card,
:root[data-theme="dark"] .items-section,
:root[data-theme="dark"] .stat-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .item-detail {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .cost-calculation {
    background: #162032;
    border-color: rgba(59, 130, 246, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 20, 97, 0.5));
}

.logo h1 {
    font-weight: 800;
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 0 20px rgba(255, 20, 97, 0.6));
    text-shadow: 0 0 30px rgba(255, 20, 97, 0.4);
}

.title-char {
    display: inline-block;
    transform-origin: center 80%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 20, 97, 0.5));
}

.main-content {
    padding-top: 30px;
}

.time-banner {
    background: linear-gradient(
        135deg,
        rgba(10, 14, 39, 0.4) 0%,
        rgba(22, 33, 62, 0.35) 100%
    );
    border-radius: 24px;
    padding: 24px 32px;
    margin-bottom: var(--card-spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1.5px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px var(--glass-shadow-1),
        0 1px 2px var(--glass-shadow-2),
        inset 0 1px 0 var(--glass-highlight),
        inset 0 0 60px var(--glass-tint);
    transition:
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease,
        backdrop-filter 0.35s ease,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease;
}

/* Liquid glass refraction effect */
.time-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 70%
    );
    animation: liquid-flow 10s ease-in-out infinite;
}

@keyframes liquid-flow {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: translate(10%, 10%) scale(1.1);
        opacity: 0.8;
    }
}

.time-banner:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 16px 48px rgba(255, 20, 97, 0.15),
        0 4px 12px var(--glass-shadow-2),
        inset 0 1px 0 var(--glass-highlight),
        inset 0 0 60px var(--glass-tint);
    border-color: rgba(255, 20, 97, 0.4);
}

.time-banner .current-time {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.2rem;
    font-weight: 500;
}

.time-banner .current-time i {
    font-size: 2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(0, 122, 255, 0.4));
}

.time-banner .time-info {
    text-align: right;
    font-size: 1rem;
    color: var(--gray);
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--card-spacing);
    margin-bottom: var(--card-spacing);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: linear-gradient(
        135deg,
        rgba(10, 14, 39, 0.45) 0%,
        rgba(15, 52, 96, 0.35) 100%
    );
    border-radius: 24px;
    padding: 32px;
    border: 1.5px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    box-shadow: 
        0 8px 32px var(--glass-shadow-1),
        0 1px 2px var(--glass-shadow-2),
        inset 0 1px 0 var(--glass-highlight),
        inset 0 0 60px var(--glass-tint);
    transition:
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease,
        box-shadow 0.5s ease;
}

/* Liquid glass surface shimmer */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

/* Gradient overlay for depth */
.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(0, 122, 255, 0.06), 
        rgba(90, 200, 250, 0.05)
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    border-radius: 24px;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 122, 255, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 0 80px rgba(90, 200, 250, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 0 60px rgba(255, 255, 255, 0.08);
}

.stat-card > * {
    position: relative;
    z-index: 1;
}

.stat-card .icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    opacity: 0.15;
}

.stat-card:nth-child(1) .icon {
    background: var(--primary);
    color: var(--primary);
}

.stat-card:nth-child(2) .icon {
    background: var(--danger);
    color: var(--danger);
}

.stat-card:nth-child(3) .icon {
    background: var(--success);
    color: var(--success);
}

.stat-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(255, 20, 97, 0.5));
}

.summary-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.summary-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-card .item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-card .item:last-child {
    border-bottom: none;
}

.summary-card .label {
    color: var(--gray);
    font-weight: 500;
}

.summary-card .value {
    font-weight: 600;
}

.items-section {
    background: linear-gradient(
        135deg,
        rgba(10, 14, 39, 0.4) 0%,
        rgba(22, 33, 62, 0.35) 100%
    );
    border-radius: 24px;
    padding: 32px;
    border: 1.5px solid var(--glass-border);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px var(--glass-shadow-1),
        0 1px 2px var(--glass-shadow-2),
        inset 0 1px 0 var(--glass-highlight),
        inset 0 0 60px var(--glass-tint);
    transition:
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease;
}

/* Liquid glass ambient light */
.items-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        rgba(24, 255, 146, 0.06) 0%,
        transparent 70%
    );
    animation: ambient-glow 12s ease-in-out infinite;
}

@keyframes ambient-glow {
    0%, 100% { 
        transform: translate(0, 0);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-20%, 20%);
        opacity: 0.6;
    }
}

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

.section-header h2 {
    font-size: 1.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    min-width: 250px;

    padding: 14px 20px;

    border: 1.5px solid var(--glass-border);

    border-radius: 16px;

    font-size: 1rem;

    background: linear-gradient(
        135deg,
        rgba(10, 14, 39, 0.5) 0%,
        rgba(15, 52, 96, 0.4) 100%
    );
    color: #ffffff;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 0 20px var(--glass-tint);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box input:focus {
    outline: none;
    border-color: rgba(0, 122, 255, 0.6);
    box-shadow: 
        0 0 0 4px rgba(0, 122, 255, 0.12),
        0 8px 24px rgba(0, 122, 255, 0.25),
        inset 0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(0, 122, 255, 0.08);
    background: rgba(10, 14, 39, 0.7);
    transform: translateY(-2px);
}

.search-box button {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 122, 255, 0.5);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.item-card {
    background: linear-gradient(
        135deg,
        rgba(10, 14, 39, 0.5) 0%,
        rgba(15, 52, 96, 0.4) 100%
    );
    border-radius: 24px;
    overflow: hidden;
    border: 1.5px solid var(--glass-border);
    position: relative;
    z-index: 1;
    --blur-amount: 0px;
    backdrop-filter: blur(var(--blur-amount)) saturate(200%);
    -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(200%);
    transition:
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease,
        backdrop-filter 0.35s ease,
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.5s ease;
    box-shadow: 
        0 8px 32px var(--glass-shadow-1),
        0 1px 2px var(--glass-shadow-2),
        inset 0 1px 0 var(--glass-highlight);
}

/* Liquid glass refraction layer */
.item-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.item-card:hover::before {
    opacity: 1;
}

/* Enhanced glow border on hover */
.item-card::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(
        135deg, 
        rgba(0, 122, 255, 0.5), 
        rgba(90, 200, 250, 0.4)
    );
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
    filter: blur(12px);
}

.item-card:hover::after {
    opacity: 1;
}

.item-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 24px 64px rgba(0, 122, 255, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 0 80px rgba(90, 200, 250, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.item-header {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.7), rgba(90, 200, 250, 0.6));
    color: white;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.item-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.item-card:hover .item-header::before {
    left: 100%;
}

.item-header h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.item-header .price {
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.item-body {
    padding: 24px;
    background: rgba(10, 14, 39, 0.4);
}

.item-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition:
        border-color 0.35s ease,
        color 0.35s ease;
}

.item-detail:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.detail-value {
    text-align: right;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.cost-calculation {
    background: rgba(255, 20, 97, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-top: 15px;
    border: 1px solid rgba(255, 20, 97, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease;
}

.cost-calculation .title {
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.status-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.active-tag {
    background: rgba(24, 255, 146, 0.2);
    color: #18FF92;
    border: 1px solid rgba(24, 255, 146, 0.4);
    box-shadow: 0 0 15px rgba(24, 255, 146, 0.3);
}

.expired-tag {
    background: rgba(255, 20, 97, 0.2);
    color: #FF1461;
    border: 1px solid rgba(255, 20, 97, 0.4);
    box-shadow: 0 0 15px rgba(255, 20, 97, 0.3);
}

.expiring-tag {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.4);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 193, 7, 0.6);
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(255, 20, 97, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
}

.system-info {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cost-info {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 5px;
    text-align: right;
}

.animated-line {
    width: 100%;
    height: 3px;
    background: rgba(67, 97, 238, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    margin-top: 10px;
}

.line-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    width: 0%;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .time-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .time-banner .current-time,
    .time-banner .time-info {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        flex: 1;
        min-width: auto;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;

        animation: none !important;
    }
    body::before,
    body::after {
        opacity: 0.15;
    }

    #ambientOrbs {
        display: none;
    }
}
