* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === ALAP SÖTÉT TÉMA === */
body {
    font-family: 'Poppins', sans-serif;
    /* Új sötét, "liquid" háttér */
    background: linear-gradient(135deg, #1f005c 0%, #10002b 50%, #000 100%);
    background-attachment: fixed; /* Fixáljuk a hátteret görgetéskor */
    min-height: 100vh;
    overflow-x: hidden;
    color: #e0e0e0; /* Alapértelmezett világos szövegszín */
}

/* VENDÉG FELÜLET STÍLUSOK */
.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Animált háttér (Buborékok) - Ezek tökéletesek a glassmorphism-hez */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none !important; /* ⬅️ EZ HIÁNYZOTT! */
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none !important; /* ⬅️ EZ IS HIÁNYZOTT! */
}

/* Buborék animációk (változatlan) */
.bubble:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-delay: 0s; animation-duration: 6s; }
.bubble:nth-child(2) { width: 120px; height: 120px; left: 20%; animation-delay: 2s; animation-duration: 8s; }
.bubble:nth-child(3) { width: 60px; height: 60px; left: 70%; animation-delay: 4s; animation-duration: 7s; }
.bubble:nth-child(4) { width: 100px; height: 100px; left: 80%; animation-delay: 1s; animation-duration: 9s; }
.bubble:nth-child(5) { width: 140px; height: 140px; left: 50%; animation-delay: 3s; animation-duration: 10s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%, 90% { opacity: 1; }
    50% { transform: translateY(-100px) rotate(180deg); }
}

/* Fő tartalom */
.main-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

/* Logo szekció (változatlan, sötét háttéren jól mutat) */
.logo-section { margin-bottom: 40px; animation: slideDown 1s ease-out; }
.beer-icon { font-size: 4rem; margin-bottom: 20px; animation: bounce 2s ease-in-out infinite; }
.app-title { font-size: 2.5rem; font-weight: 700; color: white; margin-bottom: 10px; text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }
.app-subtitle { font-size: 1.1rem; color: rgba(255, 255, 255, 0.8); font-weight: 300; }

/* === "LIQUID GLASS" KÁRTYA STÍLUS (VENDÉG) === */
.auth-container { position: relative; margin-bottom: 30px; }


.auth-card {
    /* Glassmorphism Effekt */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    border-radius: 20px;
    padding: 40px;
    position: absolute;
    width: 100%;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.auth-card.active {
    position: relative;
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.card-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff; /* Sötétről fehérre */
    margin-bottom: 30px;
}

/* Form stilizálás (sötét téma) */
.auth-form { text-align: left; }

.input-group { 
    position: relative; 
    margin-bottom: 55px; /* 25px-ről 35px-re növelve */
}

.input-group input {
    width: 100%;
    padding: 15px 0;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    outline: none;
    transition: all 0.3s ease;
    color: #ffffff;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 16px;
    color: #d0d0d0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: -5px;
    font-size: 12px;
    color: #b19cd9;
    text-shadow: 0 0 5px rgba(177, 156, 217, 0.4);
}

/* Auth gomb (változatlan, jól mutat) */
.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-loading, .spinner, @keyframes spin { /* Változatlan */
    display: none;
    .auth-btn.loading .btn-text { opacity: 0; }
    .auth-btn.loading .btn-loading { display: block; }
    .spinner { width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.3); border-top: 2px solid white; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }
    @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
}

/* Card footer (sötét téma) */
.card-footer { text-align: center; margin-top: 25px; }
.card-footer p { color: #e0e0e0; font-size: 14px; }
.switch-auth { color: #8a73ff; text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.switch-auth:hover { color: #c3aaff; }

/* Admin szekció (változatlan, jól mutat) */
.admin-section { animation: slideUp 1s ease-out 0.5s both; }
.admin-btn { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; border: none; padding: 15px 30px; border-radius: 50px; font-size: 16px; font-weight: 600; cursor: pointer; position: relative; overflow: hidden; transition: all 0.4s ease; display: flex; align-items: center; gap: 10px; margin: 0 auto; }
.admin-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 15px 30px rgba(245, 87, 108, 0.4); }
.admin-icon { font-size: 1.2rem; animation: pulse 2s ease-in-out infinite; }
.admin-shine { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); transition: left 0.6s ease; }
.admin-btn:hover .admin-shine { left: 100%; }

/* === ADMIN / FELHASZNÁLÓI NÉZET === */
.admin-view {
    min-height: 100vh;
    /* Eltávolítva: background: #f8fafc; - így megörökli a body sötét hátterét */
}

/* === "LIQUID GLASS" FEJLÉC === */
.admin-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: white;
    padding: 20px 40px;
    position: sticky; /* Fejléc fixálása */
    top: 0;
    z-index: 100;
}

.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 15px; }
.logo h1 { font-size: 1.8rem; font-weight: 600; }
.admin-actions, .header-actions { display: flex; gap: 15px; }

/* Fejléc gombjai (már eleve glassmorphism stílusúak voltak) */
.refresh-btn, .logout-btn, .header-btn {
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.refresh-btn:hover, .logout-btn:hover, .header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.admin-main { padding: 40px; }

/* === FŐ NAVIGÁCIÓS FÜLEK (SÖTÉT TÉMA) === */
.main-tabs {
    display: flex;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.2); /* Sötét, áttetsző háttér */
    padding: 8px;
    border-radius: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.main-tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    color: #b0b0b0; /* Világos szürke szöveg */
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.main-tab-btn:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-tab-content-container { position: relative; }
.main-tab-pane { display: none; animation: fadeIn 0.5s ease-in-out; }
.main-tab-pane.active { display: block; }
.main-tab-pane > .card { margin-top: 0; }


/* === "LIQUID GLASS" KÁRTYA STÍLUS (ADMIN/USER) === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card, .card {
    /* Glassmorphism Effekt */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.stat-card:hover { transform: translateY(-5px); }

/* Stat kártya belső elemek (változatlan ikon) */
.stat-icon { font-size: 3rem; background: linear-gradient(135deg, #667eea, #764ba2); width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; border-radius: 15px; color: white; }
.stat-icon.average { background: linear-gradient(135deg, #f39c12, #e67e22); }
.stat-card { display: flex; align-items: center; gap: 20px; }

/* Stat kártya szövegek (sötét téma) */
.stat-info p, .stat-info h3 { /* h3 felülírja a p-t, ezért összevonjuk */
    color: #cccccc;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
}
.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}
#sheetsStatus { color: #27ae60; } /* Ez maradhat zöld */
#averageScore { font-size: 2rem; font-weight: 700; margin: 0; transition: color 0.3s ease; }


/* === MODERN ÉLŐKERESÉS STÍLUSOK (SÖTÉT TÉMA) === */
.live-search-container { flex-grow: 1; max-width: 500px; position: relative; }
.search-input-wrapper { position: relative; display: flex; align-items: center; }

.live-search-input {
    width: 100%;
    padding: 12px 50px 12px 45px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.live-search-input:focus {
    outline: none;
    border-color: #8a73ff;
    box-shadow: 0 0 0 3px rgba(138, 115, 255, 0.3), 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.search-icon { position: absolute; left: 15px; font-size: 18px; color: #94a3b8; pointer-events: none; }

.clear-search {
    position: absolute;
    right: 15px;
    width: 24px;
    height: 24px;
    background: #555; /* Sötétebb X */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    transition: all 0.2s ease;
}
.clear-search:hover { background: #777; transform: scale(1.1); }

/* Keresési javaslatok (sötét téma) */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e; /* Sötét háttér a dropdown-nak */
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.suggestion-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestion-item:last-child { border-bottom: none; }

.suggestion-item:hover,
.suggestion-item.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.suggestion-item:hover .suggestion-type,
.suggestion-item.selected .suggestion-type { color: rgba(255, 255, 255, 0.8); }
.suggestion-icon { font-size: 16px; min-width: 20px; }
.suggestion-text { flex-grow: 1; font-weight: 500; }
.suggestion-text mark { background: rgba(255, 255, 255, 0.3); color: inherit; padding: 2px 4px; border-radius: 3px; }
.suggestion-type { font-size: 12px; color: #94a3b8; font-weight: 400; }

.search-results-info { margin-top: 8px; font-size: 14px; color: #aaa; font-weight: 500; }
.search-results-info[style*="color: rgb(52, 152, 219)"] { color: #58a6ff; } /* Kék felülírása */
.search-results-info[style*="color: rgb(231, 76, 60)"] { color: #ff7b72; } /* Piros felülírása */

/* Config szekció (sötét téma) */
.card-header h3 {
    font-size: 1.5rem;
    color: #ffffff; /* Szövegszín */
    margin-bottom: 0; /* Eltávolítva a felesleges margó */
    font-weight: 600;
}
.card-header { margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.config-form { display: grid; gap: 20px; }

/* Akció gombok (változatlan, jól mutat) */
.config-btn, .action-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
}
.config-btn:hover, .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* === TÁBLÁZAT (SÖTÉT TÉMA) === */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: transparent; /* Átlátszó háttér */
}

table th {
    background: rgba(255, 255, 255, 0.1); /* Enyhén kiemelt fejléc */
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #ffffff; /* Fejléc szöveg */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0; /* Táblázat szöveg */
    transition: all 0.3s ease;
}

table tr:hover {
    background: rgba(255, 255, 255, 0.05); /* Hover effekt */
}

/* Keresés kiemelése (változatlan, jól mutat) */
table td mark {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.score-cell { font-weight: 600; color: #8a73ff; } /* Világosabb lila pontszám */
.no-results { text-align: center; color: #94a3b8; font-style: italic; padding: 40px 15px !important; }

/* Gombok (változatlan) */
.edit-btn, .delete-btn { padding: 5px 10px; border: none; border-radius: 5px; cursor: pointer; margin-right: 5px; font-size: 12px; }
.edit-btn { background: #3b82f6; color: white; }
.delete-btn { background: #ef4444; color: white; }

/* === "LIQUID GLASS" MODAL === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;       /* EZ NAGYON FONTOS */
    align-items: center; /* FÜGGŐLEGES KÖZÉP */
    justify-content: center; /* VÍZSZINTES KÖZÉP */
    z-index: 10000;      /* LEGYEN MINDEN FELETT */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    /* Glassmorphism Effekt */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content { transform: scale(1); }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.modal-header h3 { font-size: 1.5rem; color: #ffffff; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #ccc; transition: color 0.3s ease; }
.modal-close:hover { color: #fff; }

.admin-submit-btn { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.admin-submit-btn:hover { box-shadow: 0 10px 25px rgba(245, 87, 108, 0.4); }

/* Animációk (változatlan) */
@keyframes slideDown { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* Responsive (változatlan) */
@media (max-width: 768px) { .main-content { max-width: 350px; } .auth-card { padding: 30px; } .app-title { font-size: 2rem; } .beer-icon { font-size: 3rem; } .admin-main { padding: 20px; } .admin-header { padding: 15px 20px; } .header-content { flex-direction: column; gap: 15px; text-align: center; } .stats-section, .stats-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } .beer-controls, .card-header { flex-direction: column; align-items: stretch; } .beer-actions { flex-direction: column; } .live-search-container { max-width: 100%; } #liveSearchInput { font-size: 16px; } }
@media (max-width: 480px) { .container { padding: 10px; } .auth-card { padding: 25px; } .modal-content { padding: 30px; } .stat-card { padding: 20px; flex-direction: column; text-align: center; } .search-suggestions { border-radius: 10px; } .suggestion-item { padding: 10px 12px; } .stats-grid { grid-template-columns: 1fr 1fr; } }

/* Táblázat átlag cella (sötét téma) */
.average-cell {
    font-weight: 700;
    background-color: rgba(102, 126, 234, 0.2); /* Áttetsző lila háttér */
    color: #e0e0e0; /* Világos szöveg */
}
table tr:hover .average-cell {
    background-color: rgba(102, 126, 234, 0.3); /* Kicsit sötétebb lila hover esetén */
}

/* Regisztrációs feltételek (sötét téma) */
.terms-group { display: flex; align-items: center; gap: 10px; margin-top: 15px; margin-bottom: 25px; }
.terms-group input[type="checkbox"] { width: auto; flex-shrink: 0; }
.terms-group label { color: #d0d0d0; font-size: 14px; cursor: pointer; line-height: 1.4; }
.terms-group label a { text-decoration: underline; }

/* Fiók törlése gomb (változatlan, jól mutat) */
.delete-btn-user { background: #e74c3c; justify-self: start; }
.delete-btn-user:hover { background: #c0392b; box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4); }
.terms-group { display: flex; align-items: center; gap: 10px; margin-top: 5px; margin-bottom: 25px; }
.terms-group input[type="checkbox"] { width: auto; flex-shrink: 0; height: 18px; width: 18px; }
.terms-group label { color: #d0d0d0; font-size: 14px; cursor: pointer; line-height: 1.4; position: static; font-weight: 400; }
.terms-group label a { color: #8a73ff; text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.terms-group label a:hover { text-decoration: underline; color: #c3aaff; }

/* === STATISZTIKA SZEKCIÓ (SÖTÉT TÉMA) === */
.stats-tabs {
    display: flex;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.2); /* Sötét háttér */
    padding: 5px;
    border-radius: 25px;
}

.stat-tab-btn {
    flex: 1;
    padding: 8px 15px;
    border: none;
    background: transparent;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    color: #b0b0b0; /* Világos szürke szöveg */
    cursor: pointer;
    transition: all 0.3s ease;
}

.stat-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.stats-content { margin-top: 25px; }
.stat-pane { display: none; }
.stat-pane.active { display: block; animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* KPI kártyák (sötét téma) */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.kpi-card {
    background: rgba(0, 0, 0, 0.2); /* Sötétebb belső kártya */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}
.kpi-card h4 { font-size: 1rem; color: #b0b0b0; font-weight: 500; margin-bottom: 10px; }
.kpi-card p { font-size: 1.5rem; font-weight: 700; color: #ffffff; margin: 0; }

/* Grafikon konténer (sötét téma) */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.chart-container {
    background: transparent; /* Átlátszó, hogy a glass kártya hátterét használja */
    padding: 0; /* Nincs szükség extra paddingra */
    border-radius: 12px;
    box-shadow: none; /* Nincs szükség dupla árnyékra */
    position: relative;
    height: 350px;
}
.chart-container.full-width { grid-column: 1 / -1; }

@media (max-width: 992px) { .chart-grid { grid-template-columns: 1fr; } }
/* === ÚJ: VISSZATEKINTŐ (RECAP) STÍLUSOK === */
.recap-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.recap-btn {
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
}

.recap-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.recap-btn.loading {
    background: rgba(102, 126, 234, 0.3);
    color: #ffffff;
    pointer-events: none;
}

.recap-results-container .kpi-grid {
    /* Újrahasznosítjuk az admin kpi-grid stílusát */
    margin-bottom: 0; /* Nincs szükség alsó margóra */
}

.recap-results-container .kpi-card h4 {
    font-size: 1rem;
    color: #b0b0b0;
    font-weight: 500;
    margin-bottom: 10px;
}

.recap-results-container .kpi-card p {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    word-wrap: break-word; /* Hosszú sörnevek tördelése */
}

.recap-placeholder,
.recap-no-results {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 40px 15px;
    font-size: 1.1rem;
}

.recap-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}
/* Statisztika szekción belüli elválasztó */
.stats-content hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}
/* Statisztika szekción belüli alcím */
.stats-content h4 {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 20px;
}
/* styles.css (ILLLESSZD BE A FÁJL VÉGÉRE) */

/* === ÚJ: "SPOTIFY-STÍLUSÚ" VISSZATEKINTŐ KÁRTYA === */
.recap-card-spotify {
    background: linear-gradient(145deg, #1f005c 0%, #3a006f 50%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease-out;
}

.recap-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
    margin-bottom: 25px;
}
.recap-card-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: white; /* Biztosítjuk, hogy fehér legyen */
}
.recap-card-header h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #d0d0d0;
    margin: 0;
}
.recap-card-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.recap-card-body {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.recap-stat-main {
    flex: 1;
    text-align: center;
}
.recap-stat-value {
    font-size: 3.5rem;
    font-weight: 700;
    display: block;
    line-height: 1.1;
}
.recap-stat-label {
    font-size: 1rem;
    color: #c0c0c0;
}

.recap-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}
.recap-stat-sub {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.recap-stat-sub h4 {
    font-size: 0.9rem;
    color: #b0b0b0;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.recap-stat-sub p {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    /* Hosszú nevek tördelése */
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.recap-stat-sub span {
    font-size: 0.9rem;
    color: #a0a0a0;
}

.recap-card-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #a0a0a0;
    opacity: 0.7;
}

/* Biztosítjuk, hogy a recap spinner középen legyen */
.recap-results-container .recap-spinner {
    margin: 40px auto;
}
/* === DINAMIKUS FEJLÉC "SÖR FELTÖLTÉS" ANIMÁCIÓVAL === */
.admin-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: white;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

/* Sör feltöltés effekt */
.admin-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(var(--fill-percent, 0) * 100%);
    background: linear-gradient(180deg, 
        rgba(255, 193, 7, 0.3) 0%,
        rgba(255, 160, 0, 0.4) 50%,
        rgba(255, 140, 0, 0.5) 100%);
    transition: height 0.1s ease;
    z-index: -1;
    pointer-events: none;
}

/* Fejléc elrejtése görgetéskor */
.admin-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Fejléc "megtelt" állapot */
.admin-header.filled::before {
    height: 100%;
}

/* Hab effekt a tetején */
.admin-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0px,
        rgba(255, 255, 255, 0.2) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.admin-header.filled::after {
    opacity: 1;
}
/* --- EGYEDI SÖR KURZOR (KÉP ALAPÚ) --- */
.beer-cursor-img {
    position: fixed;
    top: 0; 
    left: 0;
    width: 60px;
    height: 60px;
    background-image: url('sorkurzor.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 99999;
    
    /* TÖRÖLD KI INNEN A TRANSFORM SOROKAT! 
       Mert a JS fogja kezelni a pozíciót és a forgatást is. 
       Csak ez maradjon: */
    
    display: none;
    will-change: transform; /* Segít a böngészőnek optimalizálni */
    
    /* Csak az opacity-t animáljuk CSS-ből, a mozgást a JS intézi */
    transition: opacity 0.2s ease; 
}
/* Ha aktív a sör mód, eltüntetjük az összes rendszer kurzort */
body.custom-cursor-active,
body.custom-cursor-active * {
    cursor: none !important;
}

/* Megjelenítjük a saját képes kurzort */
body.custom-cursor-active .beer-cursor-img {
    display: block;
}

/* --- INTERAKCIÓ: Ha gomb fölé érsz --- */
body.hovering-clickable .beer-cursor-img {
    /* Effekt: kicsit nagyobbra nő és jobban megdől */
    transform: translate(-50%, -50%) rotate(-35deg) scale(1.2);
}

/* --- KATTINTÁS EFFEKT (Buborékok) --- */
.beer-bubble {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    animation: bubblePop 0.6s ease-out forwards;
}

@keyframes bubblePop {
    0% { transform: translate(0, 0) scale(1); opacity: 0.9; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* Mobilon kikapcsoljuk */
@media (max-width: 768px) {
    .beer-cursor-img { display: none !important; }
    body.custom-cursor-active, body.custom-cursor-active * { cursor: auto !important; }
}
/* === BEÁLLÍTÁSOK / KAPCSOLÓK STÍLUSA === */
.settings-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.setting-info h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.setting-info p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
}

/* Toggle Switch (Csúszka) */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0; /* Ne nyomódjon össze */
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

/* Bekapcsolt állapot (lila/kék gradient) */
input:checked + .slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input:focus + .slider {
    box-shadow: 0 0 1px #667eea;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Kerekített csúszka */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}
/* === SPOTIFY WRAPPED / STORY MÓD === */

/* A konténer, amiben a sztori fut */
.recap-story-container {
    position: relative;
    width: 100%;
    max-width: 400px; /* Telefon méret imitálása */
    height: 600px;
    margin: 0 auto;
    background: linear-gradient(180deg, #240046 0%, #10002b 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: white;
    display: flex;
    flex-direction: column;
}

/* Felső csíkok (Progress bars) */
.story-progress-container {
    display: flex;
    gap: 5px;
    padding: 10px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.story-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-fill {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s linear;
}

.story-progress-bar.completed .story-progress-fill { width: 100%; }
.story-progress-bar.active .story-progress-fill { 
    /* Ezt JS-sel fogjuk animálni */ 
}

/* Maga a slide tartalom */
.story-slide {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    display: none; /* Alapból rejtett */
    animation: fadeInSlide 0.5s ease-out;
    position: relative;
    z-index: 5;
}

.story-slide.active { display: flex; }

/* Animációk */
@keyframes fadeInSlide {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Tipográfia a sztoriban */
.story-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #e0aaff;
}

.story-big-number {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin: 20px 0;
    background: -webkit-linear-gradient(#e0aaff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(123, 44, 191, 0.3);
}

.story-text {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #e0e0e0;
}

.story-highlight {
    color: #c77dff;
    font-weight: 600;
    font-size: 1.4rem;
    display: block;
    margin-top: 10px;
}

/* Összesítő slide extra stílusa */
.story-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}
.summary-item {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
}
.summary-label { font-size: 0.8rem; color: #aaa; display: block;}
.summary-value { font-size: 1.1rem; font-weight: 700; color: white;}

/* Gombok a végén */
.story-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    width: 100%;
}
.story-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s;
}
.btn-download { background: #2ecc71; color: white; }
.btn-restart { background: rgba(255,255,255,0.2); color: white; }
.story-btn:hover { transform: scale(1.05); }

/* Navigációs zónák (láthatatlan gombok jobb/bal oldalt) */
.story-nav-left, .story-nav-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    z-index: 20;
    cursor: pointer;
}
.story-nav-left { left: 0; }
.story-nav-right { right: 0; }

/* Képgeneráláshoz rejtett konténer */
#captureArea {
    background: #10002b; /* Fix háttér a letöltéshez */
    padding: 20px;
}
/* === ÚJ STORY KIEGÉSZÍTÉSEK === */

/* Fullscreen gomb a jobb felső sarokban */
.story-fullscreen-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s;
}
.story-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Kétoszlopos elrendezés a "Legjobb vs Legrosszabb" slide-hoz */
.story-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}
.story-compare-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 15px 10px;
    border-radius: 12px;
}
.compare-label { font-size: 0.8rem; color: #aaa; display: block; margin-bottom: 5px; text-transform: uppercase;}
.compare-val-bad { color: #ff6b6b; font-weight: 700; font-size: 1.1rem; word-wrap: break-word;}
.compare-val-good { color: #51cf66; font-weight: 700; font-size: 1.1rem; word-wrap: break-word;}

/* Fullscreen mód stílusa */
.recap-story-container:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    justify-content: center;
    background: linear-gradient(180deg, #10002b 0%, #240046 100%);
}
/* Webkit támogatás (Safari/Chrome) */
.recap-story-container:-webkit-full-screen {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
}

/* Nagyobb betűk fullscreen módban */
.recap-story-container:fullscreen .story-big-number { font-size: 8rem; }
.recap-story-container:fullscreen .story-title { font-size: 3rem; }
.recap-story-container:fullscreen .story-text { font-size: 1.5rem; }

/* Szerkesztő gomb */
.edit-btn {
    padding: 5px 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}
.edit-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}
/* === ÖTLET DOBOZ & DICSŐSÉGFAL STÍLUSOK === */

/* Textarea stílusa a glassmorphism formában */
#ideaText {
    width: 100%;
    min-height: 100px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    resize: vertical;
    outline: none;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
}
#ideaText:focus {
    background: rgba(0, 0, 0, 0.3);
    border-bottom-color: #8a73ff;
}

/* Dicsőségfal konténer */
.hall-of-fame-container {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

.hall-header h2 {
    font-size: 2rem;
    color: #ffd700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
    margin-bottom: 5px;
}
.hall-header p {
    color: #e0e0e0;
    margin-bottom: 25px;
    font-style: italic;
}

/* Ötlet kártyák rácsa */
.idea-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Dicsőségfal kártya */
.fame-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fame-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
}

/* Arany csillogás effekt */
.fame-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.fame-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.fame-avatar {
    font-size: 1.5rem;
}
.fame-name {
    font-weight: 700;
    color: #ffd700;
}
.fame-idea {
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}
.fame-footer {
    font-size: 0.8rem;
    color: #aaa;
    text-align: right;
}

/* Várakozó lista (Vertical) */
.idea-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pending-idea-card {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #3498db; /* Kék csík */
    padding: 15px;
    border-radius: 0 10px 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pending-content h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}
.pending-content p {
    color: #ccc;
    font-size: 0.9rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}
.pending-status {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 10px;
}

/* Státusz színek az admin táblázathoz */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}
.status-done { background: rgba(39, 174, 96, 0.2); color: #2ecc71; }
.status-waiting { background: rgba(243, 156, 18, 0.2); color: #f39c12; }

/* Admin gomb */
.mark-done-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.mark-done-btn:hover { transform: scale(1.05); }
/* === DASHBOARD LAYOUT === */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #1f005c 0%, #10002b 50%, #000 100%);
}

/* Oldalsáv stílusok */
.dashboard-sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    
    /* 🔧 JAVÍTOTT GÖRGETÉS BEÁLLÍTÁSOK */
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh; /* Teljes képernyő magasság */
    box-sizing: border-box;
    overflow-y: auto; /* Függőleges görgetés engedélyezése */
    
    /* 🎨 LÁTHATÓ SCROLLBAR (opcióként) */
    scrollbar-width: thin; /* Firefox: vékony scrollbar */
    scrollbar-color: #764ba2 rgba(0,0,0,0.2); /* Lila csúszka, átlátszó háttér */
}


.sidebar-header {
    padding: 30px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 1.2rem;
    color: white;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 5px;
    background: transparent;
    border: none;
    color: #b0b0b0;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

.nav-item .icon {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 30px; /* Kis animáció jobbra */
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.2) 0%, transparent 100%);
    border-left: 4px solid #667eea;
    color: white;
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-link {
    color: #ff6b6b;
}
.logout-link:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff8787;
}

/* Fő tartalom eltolása */
.dashboard-main {
    flex: 1;
    margin-left: 260px; /* Oldalsáv szélessége */
    padding: 30px;
    width: calc(100% - 260px);
}

.dashboard-topbar {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-topbar h3 {
    color: white;
    font-size: 1.5rem;
}

/* === FLOATING ACTION BUTTON (FAB) === */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-container.active .fab-main {
    transform: rotate(45deg);
    background: #e74c3c; /* Pirosra vált nyitáskor */
}

.fab-options {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-container.active .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.fab-option:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.fab-option .emoji {
    font-size: 1.5rem;
}

/* Tooltip a gombok mellett */
.fab-option .tooltip {
    position: absolute;
    right: 65px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.fab-option:hover .tooltip {
    opacity: 1;
}

/* === MOBIL NÉZET (RESPONSIVE) === */
@media (max-width: 768px) {
    .dashboard-sidebar {
        width: 100%;
        height: auto !important;
        bottom: 0;
        top: auto;
        flex-direction: row;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0;
        background: #10002b; /* Sötétebb háttér mobilon */
    }

    .sidebar-header, .sidebar-footer {
        display: none; /* Mobilon rejtjük a fejlécet és a kijelentkezést */
    }

    .sidebar-nav {
        display: flex;
        justify-content: space-around;
        padding: 0;
        overflow-x: auto;
    }

    .nav-item {
        flex-direction: column;
        padding: 10px;
        font-size: 0.7rem;
        border-left: none;
        justify-content: center;
    }

    .nav-item .icon {
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 1.2rem;
    }

    .nav-item:hover {
        padding-left: 10px; /* Reset hover animation */
    }
    
    .nav-item.active {
        border-left: none;
        border-top: 3px solid #667eea;
        background: rgba(255,255,255,0.05);
    }

    .dashboard-main {
        margin-left: 0;
        padding: 15px;
        padding-bottom: 90px; /* Hely a mobil menünek */
        width: 100%;
    }

    .fab-container {
        bottom: 80px; /* Feljebb kell tolni a mobil menü miatt */
        right: 20px;
    }
}
/* === ÚJ: STATISZTIKÁK A FEJLÉCBEN === */
.user-header-with-stats .header-content-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
}

.header-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.header-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.header-stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-icon-small {
    font-size: 1.5rem;
}

.stat-info-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-label-small {
    font-size: 0.7rem;
    color: #b0b0b0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value-small {
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
}

/* Mobil nézet */
@media (max-width: 768px) {
    .user-header-with-stats .header-content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .header-stats {
        justify-content: center;
        gap: 10px;
    }
    
    .header-stat-item {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .stat-icon-small {
        font-size: 1.2rem;
    }
    
    .stat-value-small {
        font-size: 1rem;
    }
}
/* === SEGÍTSÉG GOMB (VENDÉG NÉZET) === */
.support-section {
    animation: slideUp 1s ease-out 0.7s both;
    position: absolute;
    bottom: -10px;
}

.support-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.support-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.4);
}

.support-icon {
    font-size: 1.1rem;
}
/* css.txt - ÚJ STÍLUSOK */

/* Progress Bar */
.level-progress-container {
    width: 100%;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.current-level-badge {
    background: linear-gradient(135deg, #ffd700, #f39c12);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}
.level-bar-wrapper {
    flex: 1;
    height: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}
.level-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.5s ease;
}
.level-text {
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 0.8rem;
    color: #aaa;
}

/* Achievement Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.achi-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    filter: grayscale(100%); /* Alapból szürke (zárt) */
    opacity: 0.6;
    position: relative;
}

.achi-card.unlocked {
    filter: grayscale(0%);
    opacity: 1;
    background: rgba(255,255,255,0.1);
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.achi-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.achi-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.achi-desc {
    font-size: 0.7rem;
    color: #aaa;
    line-height: 1.2;
}

/* Beállítások Select */
.badge-dropdown {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    width: 150px;
}

/* Header Badge megjelenítés */
.user-badge-display {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Toast Achievement Unlock */
.achievement-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #1f005c, #764ba2);
    border: 2px solid #ffd700;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10000;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.achievement-toast.active {
    transform: translateX(-50%) translateY(0);
}
/* --- LEGÖRDÜLŐ MENÜ (SELECT) JAVÍTÁSA --- */
select,
select.form-control {
    background-color: #240046 !important; /* Sötétlila háttér */
    color: #e0e0e0 !important;            /* Világosszürke szöveg */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* A legördülő lista elemei (Option) */
select option,
select.form-control option {
    background-color: #10002b !important; /* Mélyebb lila háttér a listának */
    color: #e0e0e0 !important;            /* Világos szöveg, hogy látszódjon */
}

/* Fókusz állapot (amikor ráklikkelsz) */
select:focus,
select.form-control:focus {
    background-color: #240046 !important;
    color: #ffffff !important;
    outline: none !important;
    border-color: #b19cd9 !important;
}
/* --- EGYEDI GÖRGETŐSÁV (SCROLLBAR) --- */

/* Firefox-hoz */
* {
    scrollbar-width: thin;            /* Vékonyabb legyen */
    scrollbar-color: #764ba2 #10002b; /* Csúszka színe | Háttér színe */
}

/* Chrome, Edge, Safari, Opera-hoz */
::-webkit-scrollbar {
    width: 10px; /* A sáv szélessége */
}

::-webkit-scrollbar-track {
    background: #10002b; /* A görgetősáv háttere (egyezik az oldaléval) */
}

::-webkit-scrollbar-thumb {
    background-color: #764ba2; /* A mozgó csúszka színe (lila) */
    border-radius: 20px;       /* Legyen kerekített */
    border: 2px solid #10002b; /* Kis rés a szélén, hogy "lebegjen" */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #9d4edd; /* Világosabb lila, ha ráviszed az egeret */
}
/* --- OLDALSÁV (SIDEBAR) GÖRGETŐSÁV --- */
.sidebar::-webkit-scrollbar {
    width: 8px; /* Scrollbar szélessége */
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2); /* Háttér színe */
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #764ba2; /* Lila csúszka (illeszkedik a dizájnhoz) */
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2); /* Kis szegély a "lebegő" effekthez */
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #9d4edd; /* Világosabb lila hover esetén */
}
/* === RECOVERY KÓD "MENŐ" STÍLUSOK === */

/* A kártya, ami megjelenik regisztráció után */
.recovery-reveal-card {
    border: 2px solid #00ff88 !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    background: #101e14 !important; /* Sötét háttér fixen */
    color: white;
    padding: 30px !important;
    text-align: center;
}
/* Animált lakat ikon */
.lock-icon-anim {
    font-size: 3rem;
    animation: unlockPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes unlockPop {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* A "Széf" konténer a kódnak */
.code-vault-container {
    background: #000;
    border: 2px dashed #444;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Kód balra, gomb jobbra */
    gap: 10px;
    width: 100%;
    box-sizing: border-box; /* Hogy a padding ne nyomja szét */
}

/* Maga a kód stílusa */
.code-vault-container code {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem; /* Kicsit kisebb, hogy kiférjen */
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 2px;
    word-break: break-all; /* Ha túl hosszú, törje el */
}

/* Másolás gomb */
.copy-btn {
    background: #333;
    border: 1px solid #555;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    flex-shrink: 0; /* A gomb ne nyomódjon össze */
}
.copy-btn:hover {
    background: #555;
    transform: scale(1.1);
    border-color: #fff;
}
.copy-btn:active {
    transform: scale(0.9);
}
/* === Fiók Törlés "Danger Zone" Stílusok === */

.delete-zone-card {
    border: 2px solid #ff4444 !important;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    background: #1a0505 !important; /* Sötét vöröses-fekete háttér */
    color: white;
    padding: 30px !important;
    max-width: 450px;
    width: 90%;
    margin: 0 auto;
}

.skull-icon-anim {
    font-size: 3rem;
    animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {
    0% { transform: scale(1); text-shadow: 0 0 0 rgba(255, 68, 68, 0.7); }
    50% { transform: scale(1.1); text-shadow: 0 0 20px rgba(255, 68, 68, 0); }
    100% { transform: scale(1); text-shadow: 0 0 0 rgba(255, 68, 68, 0); }
}

.danger-input-container input {
    width: 100%;
    padding: 15px;
    text-align: center;
    background: #000;
    border: 2px solid #555;
    color: #ff4444;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 8px;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.danger-input-container input:focus {
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
    outline: none;
}

/* Ha a gomb aktív */
#finalDeleteBtn:not([disabled]) {
    opacity: 1 !important;
    cursor: pointer !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}
/* --- ÚJ CSS: HEADER ÖSSZECSUKÁS --- */

/* A gomb stílusa */
.header-toggle-btn {
    position: absolute;
    bottom: -15px; /* Kilógatjuk kicsit alulra */
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50; /* Sötét háttér, hogy látszódjon */
    color: #fff;
    border: none;
    border-radius: 0 0 10px 10px; /* Lekerekítés alul */
    width: 40px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    line-height: 20px;
    z-index: 1001;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-toggle-btn:hover {
    background: #34495e;
}

/* Ha össze van csukva, forduljon meg a nyíl */
.header-toggle-btn.rotated {
    transform: translateX(-50%) rotate(180deg);
}

/* HEADER ANIMÁCIÓK */
.admin-header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible; /* Fontos a gomb kilógása miatt */
    /* Biztosítjuk, hogy a padding is animálódjon */
}

/* ÖSSZECSUKOTT ÁLLAPOT (Compact Mode) */
.admin-header.manual-collapsed {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    height: auto !important; /* Vagy fix magasság, ha ugrál */
    background: rgba(16, 0, 43, 0.95) !important; /* Sötét háttér */
}

/* Ilyenkor elrejtjük az üdvözlő szöveget és a rangot */
.admin-header.manual-collapsed #userWelcomeMessage {
    display: none; /* Vagy opacity: 0; pointer-events: none; az animációhoz */
}

/* A statisztikákat és a kilépés gombot igazítjuk */
.admin-header.manual-collapsed .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* A statisztika dobozokat kicsit összéb húzzuk */
.admin-header.manual-collapsed .stat-box {
    padding: 2px 10px;
    font-size: 0.9em;
}

/* DASHBOARD IGAZÍTÁS */
/* Amikor a body megkapja ezt a class-t, feljebb húzzuk a tartalmat */
body.header-is-collapsed .dashboard-container {
    padding-top: 80px !important; /* Kisebb helyet hagyunk */
    transition: padding-top 0.3s ease;
}

/* Alapállapotban a dashboard padding átmenetes legyen */
.dashboard-container {
    transition: padding-top 0.3s ease;
}
/* === FEJLÉC ÖSSZECSUKOTT ÁLLAPOT FINOMHANGOLÁS === */

/* Amikor a fejléc össze van csukva (.manual-collapsed) */
.admin-header.manual-collapsed .header-stat-item {
    /* Kicsit kisebbre vesszük a statisztika dobozokat */
    padding: 5px 10px;
    background: transparent; /* Eltüntetjük a doboz hátterét, hogy tisztább legyen */
    border: none;
}

/* 1. ELREJTJÜK a darabszámokat (Sörök, Italok száma) */
/* A :nth-child(1) és (3) a sör/ital DARABSZÁM, ezeket elrejtjük */
.admin-header.manual-collapsed .header-stats .header-stat-item:nth-child(1),
.admin-header.manual-collapsed .header-stats .header-stat-item:nth-child(3) {
    display: none; 
}

/* 2. KIEMELJÜK az Átlagokat */
/* Csak az ikon és az érték maradjon, a felirat ("Sör Átlag") tűnjön el, hogy kompaktabb legyen */
.admin-header.manual-collapsed .stat-label-small {
    display: none;
}

.admin-header.manual-collapsed .stat-value-small {
    font-size: 1.2rem; /* Nagyobb betűméret a számnak */
    color: #ffd700; /* Arany szín a kiemeléshez */
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.admin-header.manual-collapsed .stat-icon-small {
    font-size: 1.2rem; /* Ikon méret igazítása */
}

/* Logo és Üdvözlés elrejtése a helytakarékosság miatt */
.admin-header.manual-collapsed .logo {
    display: none;
}

/* Kijelentkezés gomb tömörítése - csak az ikon maradjon */
.admin-header.manual-collapsed #userLogoutBtn span:last-child {
    display: none; /* A "Kijelentkezés" szöveg eltűnik */
}
.admin-header.manual-collapsed #userLogoutBtn {
    padding: 5px 10px; /* Kisebb gomb */
    background: rgba(255, 68, 68, 0.2); /* Pirosas háttér */
}

/* Layout igazítása összecsukva */
.admin-header.manual-collapsed .header-content-grid {
    display: flex;
    justify-content: space-between; /* Átlagok balra, Kilépés jobbra */
    width: 100%;
    gap: 0;
}
/* === MOBIL KÁRTYA NÉZET (TABLE TRANSFORMATION) === */
@media (max-width: 768px) {
    /* 1. Táblázat szerkezetének "megtörése" */
    .table-container table, 
    .table-container thead, 
    .table-container tbody, 
    .table-container th, 
    .table-container td, 
    .table-container tr { 
        display: block; 
    }

    /* 2. Fejléc elrejtése (de hozzáférhető marad) */
    .table-container thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    /* 3. Sorok átalakítása KÁRTYÁKKÁ */
    .table-container tr {
        background: rgba(255, 255, 255, 0.05); /* Glass hatás */
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 15px;
        margin-bottom: 25px;
        padding: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        position: relative;
    }

    /* 4. Cellák formázása */
    .table-container td { 
        /* Reset */
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.05); 
        position: relative;
        padding-left: 50%; /* Hely a címkének */
        text-align: right;
        min-height: 35px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        color: #e0e0e0;
    }

    .table-container td:last-child {
        border-bottom: none;
        padding-top: 15px;
        justify-content: center;
        padding-left: 0;
    }

    /* 5. Címkék (pl. "Főzési hely:") beillesztése */
    .table-container td::before { 
        content: attr(data-label); /* JS-ből jön az adat! */
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px; 
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: #9ca3af; /* Szürkés címke */
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    /* 6. A "Menő" Cím (Sör/Ital neve) Kiemelése */
    .table-container td.mobile-card-title {
        display: block;
        text-align: center;
        padding-left: 0;
        font-size: 1.5rem;
        font-weight: 800;
        background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 10px;
        border-bottom: 2px solid rgba(255,255,255,0.1);
        padding-bottom: 10px;
    }
    
    /* A cím mellől tüntessük el a "Sör neve" feliratot, mert egyértelmű */
    .table-container td.mobile-card-title::before {
        content: '';
    }

    /* 7. Átlag pontszám kiemelése */
    .table-container td.average-cell {
        color: #ffd700; /* Arany szín */
        font-weight: bold;
        font-size: 1.1rem;
    }

    /* 8. Szerkesztés gomb teljes szélességben */
    .edit-btn {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        border-radius: 8px;
        margin-top: 5px;
    }
}
/* === MENŐ FELTÖLTŐ MODALOK STÍLUSA === */

/* 1. SÖR KÁRTYA (ARANY TÉMA) */
.beer-upload-card {
    background: linear-gradient(145deg, #1a1000 0%, #000000 100%) !important;
    border: 2px solid #ffb700 !important;
    box-shadow: 0 0 40px rgba(255, 183, 0, 0.2), inset 0 0 20px rgba(255, 183, 0, 0.1) !important;
    padding: 0 !important; /* Reset padding */
    overflow: hidden;
    max-width: 500px !important;
}

.beer-submit-btn {
    background: linear-gradient(135deg, #f39c12, #d35400) !important;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
    font-weight: 800;
    margin-top: 20px;
    letter-spacing: 1px;
}

/* 2. ITAL KÁRTYA (NEON LILA/KÉK TÉMA) */
.drink-upload-card {
    background: linear-gradient(145deg, #15002b 0%, #000000 100%) !important;
    border: 2px solid #d946ef !important;
    box-shadow: 0 0 40px rgba(217, 70, 239, 0.2), inset 0 0 20px rgba(217, 70, 239, 0.1) !important;
    padding: 0 !important;
    overflow: hidden;
    max-width: 500px !important;
}

.drink-submit-btn {
    background: linear-gradient(135deg, #8e2de2, #4a00e0) !important;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
    font-weight: 800;
    margin-top: 20px;
    letter-spacing: 1px;
}

/* KÖZÖS HERO FEJLÉC */
.modal-hero-header {
    padding: 30px 20px 20px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-icon {
    font-size: 3.5rem;
    margin-bottom: 10px;
    display: inline-block;
}

/* Animációk */
.beer-bounce { animation: bounceBeer 2s infinite ease-in-out; }
@keyframes bounceBeer {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.drink-shake { animation: shakeDrink 2s infinite ease-in-out; }
@keyframes shakeDrink {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.modal-hero-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.modal-hero-header p {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 5px;
}

.modal-close-abs {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-close-abs:hover { background: rgba(255,255,255,0.3); }

/* GRID FORM LAYOUT */
.cool-form {
    padding: 25px;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.full-width { grid-column: 1 / -1; }

/* MENŐ INPUT MEZŐK */
.cool-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cool-input-group label {
    font-size: 0.8rem;
    color: #bbb;
    font-weight: 500;
    text-transform: uppercase;
    margin-left: 5px;
}

.cool-input-group input, 
.cool-input-group select {
    background: rgba(0,0,0,0.4) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    color: white !important;
    font-size: 1rem !important;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
}

/* SÖR INPUT FÓKUSZ */
.beer-upload-card input:focus, 
.beer-upload-card select:focus {
    border-color: #ffb700 !important;
    box-shadow: 0 0 10px rgba(255, 183, 0, 0.3);
    transform: translateY(-2px);
    background: rgba(0,0,0,0.6) !important;
}

/* ITAL INPUT FÓKUSZ */
.drink-upload-card input:focus, 
.drink-upload-card select:focus {
    border-color: #d946ef !important;
    box-shadow: 0 0 10px rgba(217, 70, 239, 0.3);
    transform: translateY(-2px);
    background: rgba(0,0,0,0.6) !important;
}

/* ÉRTÉKELŐ RÁCS (Külalak/Illat/Íz) */
.score-grid-title {
    margin: 20px 0 10px 0;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
}

.score-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.score-grid input {
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem !important;
}

/* SELECT MEZŐK MOBILRA */
select.cool-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}
/* === LÁTHATATLAN SCROLLBAR A MODALOKHOZ === */

/* 1. Beállítjuk a maximális magasságot és a görgetést */
.beer-upload-card, 
.drink-upload-card {
    overflow-y: auto !important; /* Függőleges görgetés engedélyezése */
    
    /* Firefox specifikus elrejtés */
    scrollbar-width: none; 
    -ms-overflow-style: none;  /* IE és Edge */
}

/* 2. Chrome, Safari és Opera böngészők elrejtése */
.beer-upload-card::-webkit-scrollbar,
.drink-upload-card::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.level-text {
    position: absolute;
    right: 0;
    top: -22px; /* Kicsit feljebb toljuk */
    font-size: 0.8rem;
    color: #aaa;
    width: 100%; /* Teljes szélesség */
    display: flex;
    justify-content: flex-end; /* Jobbra igazítás */
}
/* [styles.css] */

/* Achievement Kártya Progress */
.achi-progress-container {
    margin-top: 10px;
    width: 100%;
}

.achi-progress-text {
    font-size: 0.7rem;
    color: #aaa;
    margin-bottom: 3px;
    text-align: right; /* Jobbra igazítva a számok */
}

.achi-progress-bar-bg {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.achi-progress-bar-fill {
    height: 100%;
    background: #667eea; /* Kék töltés */
    transition: width 0.3s ease;
}

/* Ha zárolva van, a kártya legyen picit átlátszóbb, de a tartalom olvasható */
.achi-card:not(.unlocked) {
    opacity: 0.8; 
}
/* === AJÁNLÁSOK STÍLUSAI === */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.rec-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.rec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Sör kártya kiemelés */
.rec-card.type-beer {
    border-left: 4px solid #f39c12; /* Sör sárga */
}

/* Ital kártya kiemelés */
.rec-card.type-drink {
    border-left: 4px solid #d946ef; /* Ital lila */
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.rec-item-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.rec-type-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    text-transform: uppercase;
}

.rec-desc {
    color: #d0d0d0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
    font-style: italic;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.rec-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
    font-size: 0.85rem;
}

.rec-user {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #8a73ff;
}

.rec-user.anon {
    color: #aaa;
}

.rec-date {
    color: #777;
    font-size: 0.75rem;
}
/* === AJÁNLÓ RENDSZER - VÉGLEGES STÍLUSOK === */

/* Szűrő Sáv Elrendezése */
.rec-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.rec-filters .cool-select {
    min-width: 140px;
    background: rgba(0, 0, 0, 0.3);
}

/* Szűrő Checkbox - Szebben elrendezve */
.checkbox-wrapper-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: background 0.3s;
}

.checkbox-wrapper-filter:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Kártya belső elrendezés javítása */
.rec-card {
    position: relative; /* A szerkesztő gomb miatt */
    padding: 20px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rec-header {
    padding-right: 35px; /* Helyet hagyunk a ceruzának */
}

.rec-sub-info {
    font-size: 0.85rem;
    color: #96c93d; /* Zöldes kiemelés a kategóriának */
    font-weight: 500;
    margin-top: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Szerkesztés Gomb */
.edit-rec-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.4);
    color: #3498db;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.edit-rec-btn:hover {
    background: #3498db;
    color: white;
    transform: rotate(-10deg) scale(1.1);
}

/* Meta adatok és Módosítva jelző */
.rec-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.rec-edited-tag {
    font-size: 0.7rem;
    color: #7f8c8d;
    font-style: italic;
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.rec-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 1.1rem;
}
/* === TÖRLÉS GOMBOK STÍLUSAI === */
/* Add hozzá a styles.css végéhez */

/* 1. KIS TÖRLÉS GOMB (Táblázatokhoz) */
.delete-btn-mini {
    padding: 5px 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.delete-btn-mini:hover {
    background: linear-gradient(135deg, #c0392b, #922b21);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.delete-btn-mini:active {
    transform: scale(0.98);
}

/* 2. ÖTLET TÖRLÉS GOMB */
.delete-idea-btn {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #e74c3c;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.delete-idea-btn:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

/* 3. AJÁNLÁS TÖRLÉS GOMB */
.delete-rec-btn {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #e74c3c;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.delete-rec-btn:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

/* 4. AJÁNLÁS KÁRTYA AKCIÓ GOMBOK KONTÉNERE */
.rec-action-btns {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

/* Szerkesztés gomb kicsit átrendezve */
.edit-rec-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 45px;
    left: 1px;
}

/* 5. VÁRAKOZÓ ÖTLET AKCIÓK KONTÉNERE */
.pending-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Pending kártya frissítése hogy elférjen a gomb */
.pending-idea-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    overflow: hidden
}

/* 6. MOBIL OPTIMALIZÁCIÓ */
@media (max-width: 768px) {
    /* Táblázatos gombok mobilon */
    .delete-btn-mini {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .edit-btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    /* Ötlet törlés gomb */
    .pending-idea-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pending-actions {
        justify-content: space-between;
        width: 100%;
    }
    
    .delete-idea-btn {
        width: auto;
        padding: 8px 15px;
        border-radius: 8px;
    }
    
    /* Ajánlás gombok */
    .rec-action-btns {
        position: static;
        margin-bottom: 10px;
        justify-content: flex-end;
    }
}

/* 7. KIEGÉSZÍTŐ ANIMÁCIÓK */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.delete-btn-mini:hover,
.delete-idea-btn:hover,
.delete-rec-btn:hover {
    animation: shake 0.3s ease-in-out;
}

/* 8. TOOLTIP EFFEKT (Opcionális) */
.delete-btn-mini::after,
.delete-idea-btn::after,
.delete-rec-btn::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.delete-btn-mini:hover::after,
.delete-idea-btn:hover::after,
.delete-rec-btn:hover::after {
    opacity: 1;
}
/* === EXTRA STÍLUSOK A TÖRLÉS MODALOKHOZ === */
/* Illeszd be a styles.css fájl végére */

/* Sör törlés - Arany téma */
#deleteBeerModal .delete-zone-card {
    border-color: #f39c12 !important;
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.2);
}

/* Ital törlés - Lila téma */
#deleteDrinkModal .delete-zone-card {
    border-color: #d946ef !important;
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.2);
}

/* Ötlet törlés - Kék téma */
#deleteIdeaModal .delete-zone-card {
    border-color: #3498db !important;
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.2);
}

/* Ajánlás törlés - Zöld téma */
#deleteRecModal .delete-zone-card {
    border-color: #00b09b !important;
    box-shadow: 0 0 30px rgba(0, 176, 155, 0.2);
}

/* Scroll a részleteknél */
#deleteIdeaText,
#deleteRecDesc {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

#deleteIdeaText::-webkit-scrollbar,
#deleteRecDesc::-webkit-scrollbar {
    width: 4px;
}

#deleteIdeaText::-webkit-scrollbar-thumb,
#deleteRecDesc::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Mobil optimalizálás */
@media (max-width: 768px) {
    .delete-zone-card {
        max-width: 95%;
        padding: 20px !important;
    }
    
    .skull-icon-anim {
        font-size: 2.5rem !important;
    }
    
    .danger-input-container input {
        font-size: 1rem;
        padding: 12px;
    }
    
    /* Gombok egymás alá mobilon */
    .delete-zone-card .auth-btn {
        width: 100%;
    }
    
    .delete-zone-card > div > div[style*="display: flex"] {
        flex-direction: column;
    }
}

/* Extra animációk */
@keyframes dangerPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.2); 
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 68, 68, 0.4); 
    }
}

#finalDeleteBeerBtn:not([disabled]),
#finalDeleteDrinkBtn:not([disabled]),
#finalDeleteIdeaBtn:not([disabled]),
#finalDeleteRecBtn:not([disabled]) {
    animation: dangerPulse 2s infinite;
}

/* Speciális ikon animációk */
#deleteBeerModal .skull-icon-anim { animation: bounceBeer 2s infinite ease-in-out; }
#deleteDrinkModal .skull-icon-anim { animation: shakeDrink 2s infinite ease-in-out; }
#deleteIdeaModal .skull-icon-anim { animation: pulse 2s infinite ease-in-out; }
#deleteRecModal .skull-icon-anim { animation: pulseRed 2s infinite ease-in-out; }

/* Részletek doboz hover effekt */
#deleteBeerModal > div > div[style*="background: rgba(243, 156, 18"],
#deleteDrinkModal > div > div[style*="background: rgba(217, 70, 239"],
#deleteIdeaModal > div > div[style*="background: rgba(52, 152, 219"],
#deleteRecModal > div > div[style*="background: rgba(0, 176, 155"] {
    transition: all 0.3s ease;
}

#deleteBeerModal > div > div[style*="background: rgba(243, 156, 18"]:hover {
    background: rgba(243, 156, 18, 0.2) !important;
}

#deleteDrinkModal > div > div[style*="background: rgba(217, 70, 239"]:hover {
    background: rgba(217, 70, 239, 0.2) !important;
}

#deleteIdeaModal > div > div[style*="background: rgba(52, 152, 219"]:hover {
    background: rgba(52, 152, 219, 0.2) !important;
}

#deleteRecModal > div > div[style*="background: rgba(0, 176, 155"]:hover {
    background: rgba(0, 176, 155, 0.2) !important;
}
/* === TELJES ADAT MEGTEKINTÉS MODAL STÍLUSOK === */
/* ILLESZD BE A STYLES.CSS FÁJL VÉGÉRE */

/* 1. VIEW GOMB A TÁBLÁZATBAN */
.view-btn {
    padding: 5px 10px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.view-btn:hover {
    background: linear-gradient(135deg, #8e44ad, #732d91);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4);
}

/* 2. MODAL TARTALOM ELRENDEZÉS */
.view-section {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.view-main-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.view-subtitle {
    font-size: 1.1rem;
    color: #c0c0c0;
    font-weight: 500;
}

/* 3. INFO GRID (Főzési hely, Alkohol %, Dátum) */
.view-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.view-info-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.view-label {
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 4. ÉRTÉKELÉS KÁRTYÁK */
.view-scores {
    margin-bottom: 25px;
}

.view-score-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.view-score-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.view-score-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.score-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.score-label {
    font-size: 0.8rem;
    color: #b0b0b0;
    margin-bottom: 5px;
}

.score-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

/* 5. ÖSSZESÍTÉS SZEKCIÓ */
.view-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 25px;
}

.summary-item {
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-big {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
}

.summary-big.highlight {
    background: linear-gradient(135deg, #ffd700, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* 6. JEGYZETEK DOBOZ */
.view-notes {
    margin-top: 20px;
}

.notes-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    font-style: italic;
}

/* 7. MOBIL OPTIMALIZÁLÁS */
@media (max-width: 768px) {
    .view-main-title {
        font-size: 1.5rem;
    }
    
    .view-score-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .view-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .summary-big {
        font-size: 2rem;
    }
    
    .view-info-grid {
        grid-template-columns: 1fr;
    }
    
    /* View gomb teljes szélességben mobilon */
    .view-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* 8. ANIMÁCIÓK */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-overlay.active .view-beer-content,
.modal-overlay.active .view-drink-content {
    animation: fadeInScale 0.3s ease-out;
}

/* 9. SCROLLBAR A MODAL-BAN */
.view-beer-content,
.view-drink-content {
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.view-beer-content::-webkit-scrollbar,
.view-drink-content::-webkit-scrollbar {
    width: 6px;
}

.view-beer-content::-webkit-scrollbar-thumb,
.view-drink-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.view-beer-content::-webkit-scrollbar-track,
.view-drink-content::-webkit-scrollbar-track {
    background: transparent;
}
/* === VIEW MODAL GÖRGETÉS JAVÍTÁS === */
.view-modal-card {
    /* Sötét háttér glassmorphism */
    background: rgba(15, 0, 30, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Görgetés engedélyezése */
    max-height: 90vh;
    overflow-y: auto !important;
    
    /* LÁTHATÓ scrollbar (fontos!) */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) rgba(0, 0, 0, 0.3);
}

/* Chrome/Safari scrollbar stílus */
.view-modal-card::-webkit-scrollbar {
    width: 8px;
}

.view-modal-card::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.view-modal-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}

.view-modal-card::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Tartalom padding finomhangolás */
.view-beer-content,
.view-drink-content {
    padding: 25px !important;
    max-height: none !important; /* Engedjük hogy a szülő kontrollálja */
    overflow: visible !important; /* Ne legyen dupla scroll */
}
/* === RENDEZÉS (SORTING) STÍLUSOK === */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 25px !important;
    transition: background 0.2s ease;
}

.sortable:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.sort-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: #666;
    transition: all 0.3s ease;
}

.sortable.sort-asc .sort-arrow::before {
    content: '▲';
    color: #667eea;
    font-weight: bold;
}

.sortable.sort-desc .sort-arrow::before {
    content: '▼';
    color: #667eea;
    font-weight: bold;
}

/* Mobil optimalizálás */
@media (max-width: 768px) {
    .sortable {
        padding-right: 15px !important;
    }
    
    .sort-arrow {
        right: 5px;
        font-size: 0.6rem;
    }
}
/* 18+ Modal stílus kiegészítés */
#ageVerificationModal {
    backdrop-filter: blur(20px); /* Erősebb homályosítás a háttérnek */
    background: rgba(0, 0, 0, 0.95) !important; /* Szinte teljesen fekete háttér */
    transition: opacity 0.5s ease;
}
.pending-controls {
    display: flex;
    flex-direction: column; /* Egymás alatt legyenek a gombok */
    gap: 10px; /* Ez a távolság a gombok (pl. ceruza és kuka) között, hogy ne lógjanak egybe */
    margin-top: 8px; /* Ezzel toljuk lejjebb az egészet, hogy ne a keret legtetején üljön */
    margin-left: 10px; /* Biztonsági távolság a szövegtől balra */
}
/* GitHub gomb stílus */
.github-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #24292e; /* GitHub fekete */
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.github-btn:hover {
    background-color: #2f363d;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.3);
}

.github-btn svg {
    transition: transform 0.4s ease;
}

.github-btn:hover svg {
    transform: rotate(360deg);
}
/* === NYEREMÉNYJÁTÉK STÍLUSOK === */

/* Lebegő Ajándék Gomb */
.prize-floating-btn {
    position: fixed;
    bottom: 75px; /* FAB felett */
    left: 2px;    /* Bal oldalon */
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff0000, #c0392b);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    display: flex; /* Kezdetben rejtett, JS hozza be ha User nézet van */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    animation: shakeGift 3s infinite ease-in-out;
    border: 2px solid #ffd700;
    transition: transform 0.3s;
}

.prize-floating-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

.prize-icon {
    font-size: 2rem;
}

.prize-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffd700;
    color: black;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

@keyframes shakeGift {
    0%, 90% { transform: rotate(0deg); }
    92% { transform: rotate(-10deg); }
    94% { transform: rotate(10deg); }
    96% { transform: rotate(-10deg); }
    98% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

/* Modal Választó Grid */
.prize-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.prize-option input {
    display: none;
}

.prize-card-inner {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.prize-emoji {
    font-size: 2rem;
}

/* Kijelölt állapot */
.prize-option input:checked + .prize-card-inner {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transform: translateY(-5px);
}

/* Mobil nézetben csak user nézetnél látszódjon */
#prizeFloatingBtn { display: none; }
body.user-view-active #prizeFloatingBtn { display: flex; }
/* "Még annál is többet?" stílus */
.mystery-text {
    font-size: 0.75rem;       /* Kisebb méret */
    font-weight: 300;         /* Vékony betű */
    font-style: italic;       /* Dőlt stílus */
    text-transform: uppercase; /* Nagybetűs, de kicsi */
    letter-spacing: 3px;      /* Szellős betűköz (ez adja a "menő" hatást) */
    margin-top: 8px;          /* Kis távolság a felette lévő szövegtől */
    
    /* Arany-Fehér Gradiens Szöveg */
    background: linear-gradient(90deg, #888, #ffd700, #fff, #ffd700, #888);
    background-size: 200% auto;
    color: transparent;       /* A szöveg színe átlátszó, hogy a háttér látszódjon */
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Finom csillogó animáció */
    animation: shine 5s linear infinite;
    opacity: 0.8;
}

/* Animáció a szöveg csillogásához */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}
/* === 2026 LAUNCH OVERLAY === */
.launch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a0505 100%);
    z-index: 999999; /* Minden felett legyen */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.launch-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

.launch-content {
    padding: 20px;
    max-width: 600px;
    width: 100%;
}

.launch-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.launch-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffd700; /* Arany */
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    margin-bottom: 10px;
    letter-spacing: 2px;
    cursor: default; /* Titkos klikk miatt */
}

.launch-subtitle {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.time-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 15px;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.time-box.highlight {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.time-box span {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
}

.time-box small {
    color: #bbb;
    text-transform: uppercase;
    font-size: 0.7rem;
    margin-top: 5px;
}

@media (max-width: 600px) {
    .launch-title { font-size: 2.5rem; }
    .time-box { min-width: 70px; padding: 10px; }
    .time-box span { font-size: 1.8rem; }
}
/* === MOBILOS HIBÁK JAVÍTÁSA === */

/* 1. ZOOM MEGAKADÁLYOZÁSA MOBILON */
/* Az iOS/Android automatikus zoomot okoz 16px alatti input méretnél */
@media (max-width: 768px) {
    /* Input mezők mérete mobilon - 16px a minimum a zoom elkerüléséhez */
    .auth-form input,
    .input-group input {
        font-size: 16px !important;
    }
    
    /* Auth kártya mobilon kisebb padding */
    .auth-card {
        padding: 25px 20px !important;
        margin: 0 auto;
    }
    
    /* Container igazítás mobilon */
    .container {
        padding: 15px !important;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Main content mobilon */
    .main-content {
        max-width: 100% !important;
        width: 100%;
        padding: 0 10px;
    }
    
    /* Logo szekció kisebb mobilon */
    .logo-section {
        margin-bottom: 25px !important;
    }
    
    .app-title {
        font-size: 1.8rem !important;
    }
    
    .app-subtitle {
        font-size: 1rem !important;
    }
    
    .beer-icon {
        font-size: 2.5rem !important;
    }
}

/* 2. COOKIE TOAST JAVÍTÁS MOBILON */
@media (max-width: 768px) {
    #cookieToast {
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
        max-width: none !important;
        padding: 15px !important;
        font-size: 0.85rem !important;
        z-index: 10001 !important; /* Minden más felett legyen */
    }
    
    #cookieToast h4 {
        font-size: 0.95rem !important;
    }
    
    #cookieToast p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }
    
    #cookieToast button {
        font-size: 0.85rem !important;
        padding: 6px 15px !important;
    }
}

/* 3. KIEGÉSZÍTŐ JAVÍTÁSOK KISEBB MOBILOKRA (iPhone SE, stb.) */
@media (max-width: 480px) {
    /* Auth kártya még kisebb */
    .auth-card {
        padding: 20px 15px !important;
    }
    
    /* Input mezők */
    .input-group {
        margin-bottom: 20px !important;
    }
    
    /* Gombok */
    .auth-btn {
        padding: 12px !important;
        font-size: 15px !important;
    }
    
    /* Card header */
    .card-header h2 {
        font-size: 1.5rem !important;
    }
    
    /* Container */
    .container {
        padding: 10px !important;
    }
}

/* 4. BIZTONSÁGOS VIEWPORT MÉRET */
/* Ez biztosítja, hogy semmi se lógjon ki a képernyőről */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }
    
    .container {
        max-width: 100vw;
        overflow: hidden;
    }
    
    /* Auth container ne lógjon ki */
    .auth-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
}

/* 5. INPUT FOCUS ÁLLAPOT MOBILON (Zoom megakadályozás) */
@media (max-width: 768px) {
    input:focus,
    textarea:focus,
    select:focus {
        font-size: 16px !important; /* 16px a MINIMUM mobilon zoom ellen */
    }
}

/* 6. COOKIE GOMB MOBILRA OPTIMALIZÁLVA */
@media (max-width: 768px) {
    #cookieToast div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    #cookieToast .cookie-icon {
        font-size: 1.2rem !important;
        margin-bottom: 10px;
    }
}
/* Művelet gombok cella normál nézetben */
.action-buttons-cell {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* Mobil nézet javítás */
@media (max-width: 768px) {
    /* Az utolsó cella (gombok) kezelése mobilon */
    .table-container td.action-buttons-cell {
        display: flex !important; /* Fontos hogy flex maradjon */
        flex-direction: column; /* Egymás alá rakjuk a gombokat */
        padding-left: 0 !important;
        gap: 8px;
        padding-top: 15px;
    }
    
    /* Címke elrejtése a gombok cellájánál */
    .table-container td.action-buttons-cell::before {
        content: '' !important;
        display: none !important;
    }
    
    /* Gombok teljes szélessé tétele mobilon */
    .action-buttons-cell .view-btn,
    .action-buttons-cell .edit-btn,
    .action-buttons-cell .delete-btn-mini {
        width: 100%;
        justify-content: center;
    }
}
/* === MOBIL JAVÍTÁS === */
@media (max-width: 900px) {
    .container {
        display: block; /* Flexbox kikapcsolása vagy módosítása */
        height: auto;
        min-height: 100vh;
        padding-top: 50px; /* Hagyunk egy kis helyet fent */
        padding-bottom: 50px;
        overflow-y: auto; /* Engedélyezzük a görgetést */
    }

    /* Ha van 'guest-card' vagy 'main-card' osztályod, ami a táblázatot tartja: */
    .guest-card, .main-card {
        margin: 0 auto; /* Vízszintesen középre igazítjuk */
        transform: none; /* Kikapcsoljuk az esetleges eltolásokat */
    }
}
/* === ÉLETKOR MODAL GOMBOK JAVÍTÁS (MOBIL) === */
@media (max-width: 768px) {
    /* Az életkor modal gombok konténere */
    #ageVerificationModal .modal-content > div > div[style*="display: flex"] {
        display: flex !important;
        flex-direction: row !important; /* Egymás mellett maradjanak */
        justify-content: center !important; /* Középre igazítás */
        align-items: center !important;
        gap: 15px !important;
        flex-wrap: nowrap !important; /* Ne törjön új sorba */
        width: 100% !important;
        padding: 0 10px; /* Kis margó oldalt */
        box-sizing: border-box;
    }
    
    /* Gombok mérete mobilon */
    #ageVerificationModal .auth-btn {
        min-width: 100px !important; /* Minimum szélesség */
        width: auto !important; /* Automatikus szélesség a szöveg alapján */
        flex: 1 1 auto; /* Egyenlő elosztás */
        max-width: 140px !important; /* Maximum szélesség */
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }
}

/* === EXTRA KISEBB KÉPERNYŐKRE (360px alatt) === */
@media (max-width: 400px) {
    #ageVerificationModal .modal-content > div > div[style*="display: flex"] {
        gap: 10px !important; /* Kisebb távolság */
    }
    
    #ageVerificationModal .auth-btn {
        min-width: 90px !important;
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
    }
}

































































