/* ===== FUTURISZTIKUS DESIGN RENDSZER ===== */
:root {
    /* Világos mód színek */
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #3388FF;
    --secondary: #FF6BFF;
    --secondary-dark: #CC33CC;
    --accent: #FFD700;
    --success: #00CC77;
    --danger: #FF4466;
    --warning: #FFAA00;
    --info: #00B4D8;
    
    --glow-primary: 0 0 30px rgba(0, 102, 255, 0.2);
    --glow-secondary: 0 0 30px rgba(255, 107, 255, 0.2);
    --glow-success: 0 0 30px rgba(0, 204, 119, 0.2);
    
    --bg-body: #F0F4FF;
    --bg-header: rgba(255, 255, 255, 0.92);
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --bg-input: rgba(255, 255, 255, 0.8);
    --bg-modal: rgba(255, 255, 255, 0.95);
    
    --text-primary: #1A1A3E;
    --text-secondary: #555577;
    --text-muted: #8888AA;
    --text-inverse: #FFFFFF;
    --text-glow: #0066FF;
    
    --border-color: rgba(0, 102, 255, 0.15);
    --border-glow: 0 0 20px rgba(0, 102, 255, 0.1);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.05);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SÖTÉT MÓD ===== */
[data-theme="dark"] {
    --primary: #00F0FF;
    --primary-dark: #0099FF;
    --primary-light: #66F0FF;
    --secondary: #FF6BFF;
    --secondary-dark: #CC33CC;
    --success: #00FF88;
    --danger: #FF4466;
    --warning: #FFAA00;
    --info: #00D4FF;
    
    --glow-primary: 0 0 30px rgba(0, 240, 255, 0.3);
    --glow-secondary: 0 0 30px rgba(255, 107, 255, 0.3);
    --glow-success: 0 0 30px rgba(0, 255, 136, 0.3);
    
    --bg-body: #0A0E17;
    --bg-header: rgba(10, 14, 23, 0.92);
    --bg-card: rgba(20, 30, 50, 0.6);
    --bg-card-hover: rgba(30, 45, 70, 0.8);
    --bg-input: rgba(20, 30, 50, 0.8);
    --bg-modal: rgba(10, 14, 23, 0.95);
    
    --text-primary: #E8F0FE;
    --text-secondary: #8899BB;
    --text-muted: #556688;
    --text-inverse: #0A0E17;
    --text-glow: #00F0FF;
    
    --border-color: rgba(0, 240, 255, 0.15);
    --border-glow: 0 0 20px rgba(0, 240, 255, 0.1);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(0, 240, 255, 0.05);
}

/* ===== ALAP BEÁLLÍTÁSOK ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    padding-bottom: 90px;
    padding-top: 75px;
    min-height: 100vh;
    transition: background 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* ===== GYÖNGYHÁZ EFFEKT (csak sötét módban) ===== */
[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(2px 2px at 20% 30%, rgba(0, 240, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255, 107, 255, 0.2), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(0, 240, 255, 0.2), transparent),
        radial-gradient(2px 2px at 80% 80%, rgba(255, 107, 255, 0.2), transparent);
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(2px 2px at 20% 30%, rgba(0, 102, 255, 0.1), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(0, 102, 255, 0.1), transparent);
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 0;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 20px;
    position: relative;
    z-index: 1;
}

/* ===== FEJLÉC ===== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    box-shadow: var(--shadow-card);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.header-content {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
}

.logo .icon {
    font-size: 24px;
}

.logo span:last-child {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    font-size: 16px;
    letter-spacing: 0.5px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.header-actions .btn {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    background: rgba(0, 102, 255, 0.05);
    border: 1px solid rgba(0, 102, 255, 0.1);
    color: var(--text-primary);
    transition: var(--transition);
}

[data-theme="dark"] .header-actions .btn {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.header-actions .btn:hover {
    background: rgba(0, 102, 255, 0.15);
    border-color: var(--primary);
}

[data-theme="dark"] .header-actions .btn:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary);
}

/* ===== HEADER GOMBOK - MOBIL REJTVE ===== */
.header-actions .btn-logout {
    display: none;
}

.header-actions .btn-profile {
    display: none;
}

/* ===== LÁBLÉC NAVIGÁCIÓ - FUTURISZTIKUS ===== */
.bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 8px 12px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 420px;
    width: calc(100% - 32px);
    box-shadow: var(--shadow-card);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.bottom-nav::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    filter: blur(4px);
    opacity: 0.6;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 10px;
    padding: 6px 14px;
    transition: var(--transition);
    position: relative;
    border-radius: var(--radius-sm);
    min-width: 52px;
}

.nav-item .nav-icon {
    font-size: 20px;
    margin-bottom: 2px;
    transition: var(--transition);
}

.nav-item .nav-label {
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.6;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(0, 102, 255, 0.05);
}

[data-theme="dark"] .nav-item:hover {
    background: rgba(0, 240, 255, 0.05);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(0, 102, 255, 0.08);
}

[data-theme="dark"] .nav-item.active {
    background: rgba(0, 240, 255, 0.08);
}

.nav-item.active .nav-icon {
    transform: translateY(-3px) scale(1.15);
    filter: drop-shadow(0 0 10px var(--primary));
}

.nav-item.active .nav-label {
    opacity: 1;
    color: var(--primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 30%;
    right: 30%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
    filter: blur(2px);
}

/* ===== GOMBOK ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--text-inverse);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}

[data-theme="dark"] .btn-primary {
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #00AA66, var(--success));
    color: var(--text-inverse);
    box-shadow: 0 4px 20px rgba(0, 204, 119, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 204, 119, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #CC2244, var(--danger));
    color: var(--text-inverse);
    box-shadow: 0 4px 20px rgba(255, 68, 102, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 68, 102, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #CC8800, var(--warning));
    color: var(--text-inverse);
    box-shadow: 0 4px 20px rgba(255, 170, 0, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, #0088BB, var(--info));
    color: var(--text-inverse);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
}

.btn-sm {
    padding: 4px 12px;
    font-size: 11px;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== ASZTALI MEGJELENÍTÉS ===== */
@media (min-width: 769px) {
    .header-actions .btn-logout {
        display: inline-flex;
    }
    
    .header-actions .btn-profile {
        display: inline-flex;
    }
}

/* ===== MOBIL MEGJELENÍTÉS ===== */
@media (max-width: 768px) {
    .header-actions .btn-logout {
        display: none !important;
    }
    
    .header-actions .btn-profile {
        display: none !important;
    }
    
    /* Profil és kijelentkezés a menüben */
    .bottom-nav .nav-item-logout {
        display: flex;
    }
    
    .bottom-nav .nav-item-profile {
        display: flex;
    }
}

/* ===== ASZTALI TELJES MÉRET ===== */
@media (min-width: 769px) {
    .bottom-nav .nav-item-logout {
        display: none !important;
    }
    
    .bottom-nav .nav-item-profile {
        display: none !important;
    }
}

/* ===== NAV ITEMEK A MENÜBEN ===== */
.nav-item-logout,
.nav-item-profile {
    display: none;
}

/* ===== KÁRTYÁK ===== */
.list-card,
.product-item,
.friend-item,
.profile-info,
.admin-section,
.add-friend-section,
.add-product-section,
.share-section {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.list-card:hover,
.product-item:hover,
.friend-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-card), var(--border-glow);
}

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

.list-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.list-stats {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.list-actions {
    display: flex;
    gap: 6px;
}

/* ===== TERMÉKEK ===== */
.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid var(--primary);
}

.product-item.purchased {
    opacity: 0.6;
    border-left-color: var(--success);
}

.product-item.purchased .product-name {
    text-decoration: line-through;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

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

.product-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.product-price {
    font-weight: 700;
    color: var(--primary);
}

.product-shop {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.product-actions .btn {
    padding: 4px 10px;
    font-size: 11px;
}

/* ===== BARÁTOK ===== */
.friend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.friend-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.friend-info strong {
    font-size: 15px;
    color: var(--text-primary);
}

.friend-id {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.friend-actions {
    display: flex;
    gap: 6px;
}

/* ===== QR KÓD ===== */
.qr-container {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    margin: 12px 0;
}

.qr-container canvas,
.qr-container img {
    max-width: 200px;
    height: auto !important;
    margin: 0 auto;
    border-radius: var(--radius-sm);
}

.qr-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.qr-actions .btn {
    flex: 1;
    min-width: 80px;
    font-size: 12px;
    padding: 8px 14px;
}

/* ===== QR MODAL ===== */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.qr-modal-content {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 450px;
    width: 100%;
    padding: 24px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

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

.qr-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== QR BEOLVASÓ ===== */
#scanner-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 12px auto;
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--primary);
}

#scanner-video {
    width: 100%;
    height: auto;
    display: block;
}

#scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#scanner-overlay div {
    border: 2px solid var(--primary);
    width: 200px;
    height: 200px;
    border-radius: 8px;
    box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.5);
    animation: scanPulse 2s ease-in-out infinite;
}

@keyframes scanPulse {
    0%, 100% { 
        border-color: var(--primary);
    }
    50% { 
        border-color: var(--secondary);
    }
}

/* ===== ALERT ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background: rgba(0, 204, 119, 0.1);
    color: var(--success);
    border-color: rgba(0, 204, 119, 0.2);
}

.alert-error {
    background: rgba(255, 68, 102, 0.1);
    color: var(--danger);
    border-color: rgba(255, 68, 102, 0.2);
}

.alert-info {
    background: rgba(0, 180, 216, 0.1);
    color: var(--info);
    border-color: rgba(0, 180, 216, 0.2);
}

/* ===== FORM ELEMEK ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-input);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .container {
        padding: 12px 14px;
    }
    
    .bottom-nav {
        bottom: 12px;
        padding: 6px 8px;
        border-radius: var(--radius-lg);
    }
    
    .nav-item {
        padding: 4px 10px;
        min-width: 44px;
    }
    
    .nav-item .nav-icon {
        font-size: 18px;
    }
    
    .nav-item .nav-label {
        font-size: 8px;
    }
    
    .product-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .product-actions {
        justify-content: flex-end;
    }
    
    .list-card {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .list-actions {
        justify-content: flex-end;
    }
    
    .friend-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .friend-actions {
        justify-content: flex-end;
    }
    
    .qr-actions .btn {
        min-width: 60px;
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .qr-modal-content {
        padding: 16px;
        margin: 10px;
    }
}

/* ===== SEGÉD OSZTÁLYOK ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none !important; }

/* ===== GÖRGŐSÁV ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

/* ===== BADGE ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-shared {
    background: rgba(0, 204, 119, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 204, 119, 0.2);
}

.badge-pending {
    background: rgba(255, 170, 0, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 170, 0, 0.2);
}

.badge-owner {
    background: rgba(0, 102, 255, 0.15);
    color: var(--primary);
    border: 1px solid rgba(0, 102, 255, 0.2);
}

[data-theme="dark"] .badge-owner {
    background: rgba(0, 240, 255, 0.15);
    color: var(--primary);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

/* ===== SHARE ===== */
.share-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.share-item .btn {
    font-size: 12px;
    padding: 4px 12px;
}

.share-list {
    max-height: 200px;
    overflow-y: auto;
}

/* ===== GYORS GOMBOK ===== */
.quick-actions {
    display: flex;
    gap: 12px;
    margin: 16px 0 24px;
}

.quick-actions .btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
}

/* ===== DASHBOARD ===== */
.dashboard-header {
    padding: 16px 0 8px;
}

.dashboard-header h2 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* ===== ÜRES ÁLLAPOT ===== */
.empty-message {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.empty-message .empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.empty-message h3 {
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 18px;
}

.empty-message p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.page-header h2 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== LIST HEADER ===== */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.list-header h2 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.list-actions-header {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== AUTH ===== */
.auth-form {
    max-width: 400px;
    margin: 30px auto;
    padding: 32px 28px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
}

.auth-form h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.auth-form .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 15px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ===== WELCOME SCREEN ===== */
.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 20px;
}

.app-logo {
    margin-bottom: 40px;
}

.app-logo .icon {
    font-size: 80px;
    display: block;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

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

.app-logo h1 {
    font-size: 38px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    margin-bottom: 8px;
}

.app-logo p {
    color: var(--text-secondary);
    font-size: 16px;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
}

/* ===== NOTIFICATION TOAST ===== */
.notification-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    z-index: 9999;
    max-width: 90%;
    animation: slideDown 0.4s ease-out;
    font-weight: 500;
    backdrop-filter: blur(20px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.notification-toast.fade-out {
    opacity: 0;
    transition: opacity 0.5s;
}

/* ===== LANG SELECTOR ===== */
.lang-selector select {
    padding: 4px 24px 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238899BB' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
}

.lang-selector select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: var(--text-primary);
    background: var(--bg-input);
}

.theme-toggle:hover {
    border-color: var(--primary);
}

/* ===== INLINE FORM ===== */
.inline-form {
    display: flex;
    gap: 10px;
}

.inline-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-input);
    color: var(--text-primary);
}

.inline-form input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== CREATE LIST FORM ===== */
.create-list-form {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    animation: slideIn 0.3s ease-out;
}

.create-list-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

/* ===== PRODUCT FORM ===== */
.product-form {
    display: grid;
    gap: 10px;
}

.product-form input,
.product-form select {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-input);
    color: var(--text-primary);
}

.product-form input:focus,
.product-form select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== ADMIN TABLE ===== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: rgba(0, 102, 255, 0.05);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .admin-table th {
    background: rgba(0, 240, 255, 0.05);
}

/* ===== STATUS BADGE ===== */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background: rgba(0, 204, 119, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 204, 119, 0.2);
}

.status-pending {
    background: rgba(255, 170, 0, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 170, 0, 0.2);
}

.status-inactive {
    background: rgba(255, 68, 102, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 68, 102, 0.2);
}

/* ===== PROFILE ===== */
.profile-info p {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.profile-info p:last-child {
    border-bottom: none;
}

.profile-info strong {
    display: inline-block;
    min-width: 130px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===== SHOP ITEMS ===== */
.shop-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.shop-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.shop-item .btn {
    padding: 2px 8px;
    font-size: 12px;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* ===== SCAN RESULT ===== */
#scan-result {
    margin-top: 12px;
    display: none;
}

#scan-result .alert {
    margin-bottom: 0;
}

/* ===== KOSÁR FUNKCIÓ ===== */
.product-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.product-quantity {
    font-weight: 600;
    color: var(--primary);
}

.product-total {
    font-weight: 700;
    color: var(--secondary);
}

.total-cost-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-card);
}

.total-cost-section .total-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.total-cost-section .purchased-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--success);
}

/* ===== TERMÉK SZERKESZTÉS ===== */
.product-item .product-actions .btn-info {
    background: linear-gradient(135deg, #0099CC, var(--info));
    color: white;
    box-shadow: 0 2px 12px rgba(0, 180, 216, 0.3);
}

.product-item .product-actions .btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.4);
}

/* ===== RESPONSZÍV ===== */
@media (max-width: 480px) {
    .product-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .total-cost-section {
        padding: 12px;
    }
    
    .total-cost-section .total-amount {
        font-size: 18px;
    }
    
    .total-cost-section .purchased-amount {
        font-size: 16px;
    }
}

/* ===== ADD PRODUCT SECTION ===== */
.add-product-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.add-product-section h3 {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-primary);
}

/* ===== SHARE SECTION ===== */
.share-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.share-section h3 {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-primary);
}