/* ============================================
   OsBebim - Tema Escuro com Animações
   ============================================ */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-card-hover: #1a2744;
    --bg-input: #0f1829;
    --accent: #f0a500;
    --accent-hover: #ff8c00;
    --accent-glow: rgba(240, 165, 0, 0.3);
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0b0;
    --text-muted: #666680;
    --border: #2a2a4a;
    --border-light: #3a3a5a;
    --success: #4caf50;
    --danger: #ef5350;
    --liquid-color: rgba(240, 165, 0, 0.15);
    --liquid-color2: rgba(240, 165, 0, 0.08);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.6);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --bg-hover: #1e2a4a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* === Navbar === */
.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.navbar-brand .brand-icon {
    width: 26px;
    height: 26px;
    color: var(--accent);
}

.navbar-brand span {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav Icons */
.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-nav li {
    position: relative;
}

.navbar-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--accent);
    background: rgba(240, 165, 0, 0.1);
}

.navbar-nav a .nav-icon {
    opacity: 0.7;
    transition: var(--transition);
}

.navbar-nav a:hover .nav-icon,
.navbar-nav a.active .nav-icon {
    opacity: 1;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

/* === Main Container === */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* === Goal Progress Bar === */
.goal-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.6s ease forwards;
    cursor: pointer;
    transition: var(--transition);
}

.goal-section:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(240, 165, 0, 0.1);
}

.goal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover), var(--accent));
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.goal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.goal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.goal-title .emoji {
    font-size: 22px;
    margin-right: 8px;
}

.goal-count {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.goal-count small {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.goal-bar-wrapper {
    background: var(--bg-primary);
    border-radius: 12px;
    height: 24px;
    overflow: hidden;
    position: relative;
}

.goal-bar {
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(90deg, #f0a500, #ff6f00, #ff8c00);
    background-size: 300% 100%;
    animation: goalPulse 3s ease infinite;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 0%;
}

.goal-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.15) 50%,
        transparent 100%
    );
    animation: goalShine 2s ease infinite;
}

@keyframes goalPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes goalShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.goal-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    z-index: 1;
    white-space: nowrap;
}

/* === Podium === */
.podium-section {
    margin-bottom: 32px;
}

.podium-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    min-height: 200px;
}

.podium-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 200px;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.podium-place:hover {
    transform: translateY(-6px);
}

.podium-avatar-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.podium-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #555;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.podium-place[data-place="1"] .podium-avatar {
    width: 90px;
    height: 90px;
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255,215,0,0.4);
}

.podium-place[data-place="2"] .podium-avatar {
    border-color: #c0c0c0;
    box-shadow: 0 0 15px rgba(192,192,192,0.3);
}

.podium-place[data-place="3"] .podium-avatar {
    border-color: #cd7f32;
    box-shadow: 0 0 15px rgba(205,127,50,0.3);
}

.podium-medal {
    position: absolute;
    bottom: -6px;
    right: -6px;
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.podium-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.podium-total {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.podium-pedestal {
    width: 100px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: rgba(255,255,255,0.25);
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.podium-place[data-place="1"] .podium-pedestal {
    height: 120px;
    background: linear-gradient(180deg, #ffd700 0%, #b8860b 100%);
    font-size: 32px;
}

.podium-place[data-place="2"] .podium-pedestal {
    height: 90px;
    background: linear-gradient(180deg, #c0c0c0 0%, #808080 100%);
}

.podium-place[data-place="3"] .podium-pedestal {
    height: 65px;
    background: linear-gradient(180deg, #cd7f32 0%, #8b4513 100%);
}

.podium-empty {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    padding: 40px 0;
    width: 100%;
    opacity: 0.5;
}

/* === Cards Grid === */
.cards-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* === User Card === */
.user-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.user-card:nth-child(1) { animation-delay: 0.1s; }
.user-card:nth-child(2) { animation-delay: 0.2s; }
.user-card:nth-child(3) { animation-delay: 0.3s; }
.user-card:nth-child(4) { animation-delay: 0.4s; }
.user-card:nth-child(5) { animation-delay: 0.5s; }
.user-card:nth-child(6) { animation-delay: 0.6s; }
.user-card:nth-child(7) { animation-delay: 0.7s; }
.user-card:nth-child(8) { animation-delay: 0.8s; }
.user-card:nth-child(9) { animation-delay: 0.9s; }
.user-card:nth-child(10) { animation-delay: 1.0s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.user-card-body {
    padding: 24px 20px 16px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.user-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.user-card:hover .user-card-avatar {
    border-color: var(--accent-hover);
    transform: scale(1.08);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.user-card-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.user-card-bio {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-card-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
}

.user-card-stat {
    text-align: center;
}

.user-card-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.user-card-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-card-last-drink {
    font-size: 11px;
    color: var(--text-secondary);
    padding: 8px 12px;
    background: rgba(240, 165, 0, 0.06);
    border-radius: var(--radius-xs);
    margin-top: 8px;
}

.user-card-last-drink strong {
    color: var(--accent);
}

/* === Liquid Wave Animation (Card Footer) === */
.user-card-wave {
    position: relative;
    height: 50px;
    overflow: hidden;
    z-index: 1;
    margin-top: auto;
}

.user-card-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
}

.user-card-wave .wave1 {
    animation: waveDrift 7s ease-in-out infinite alternate;
    opacity: 0.25;
}

.user-card-wave .wave2 {
    animation: waveDrift 5s ease-in-out infinite alternate-reverse;
    opacity: 0.15;
    bottom: -3px;
}

.user-card-wave .wave3 {
    animation: waveDrift 9s ease-in-out infinite alternate;
    opacity: 0.1;
    bottom: -5px;
}

@keyframes waveDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === FAB (Floating Action Button) — see new styles below === */

/* === Modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(40px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 83, 80, 0.2);
    color: var(--danger);
    border-color: var(--danger);
}

.modal-header {
    padding: 32px 32px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.modal-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 6px 25px var(--accent-glow);
    margin-bottom: 12px;
}

.modal-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-bio {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.modal-body {
    padding: 24px 32px 32px;
}

/* === Tags (Favorite Drinks) === */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(240, 165, 0, 0.12);
    border: 1px solid rgba(240, 165, 0, 0.25);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    transition: var(--transition);
}

.tag:hover {
    background: rgba(240, 165, 0, 0.2);
}

.tag .tag-remove {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: 0.6;
    transition: var(--transition);
}

.tag .tag-remove:hover {
    opacity: 1;
    color: var(--danger);
}

/* === Drink Log List === */
.drink-log-list {
    list-style: none;
    margin-top: 12px;
}

.drink-log-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.drink-log-item:hover {
    border-color: var(--border);
    background: var(--bg-card-hover);
}

.drink-log-info {
    display: flex;
    flex-direction: column;
}

.drink-log-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.drink-log-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #000;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    margin-right: 2px;
    min-width: 20px;
    line-height: 1;
}

.drink-log-date {
    font-size: 11px;
    color: var(--text-muted);
}

.drink-log-qty {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

.drink-log-qty small {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
}

/* === Drink Ranking === */
.drink-ranking {
    margin-top: 16px;
}

.drink-rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(42, 42, 74, 0.5);
}

.drink-rank-item:last-child {
    border-bottom: none;
}

.drink-rank-pos {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.drink-rank-pos.gold { background: rgba(255, 215, 0, 0.15); color: #ffd700; }
.drink-rank-pos.silver { background: rgba(192, 192, 192, 0.15); color: #c0c0c0; }
.drink-rank-pos.bronze { background: rgba(205, 127, 50, 0.15); color: #cd7f32; }

.drink-rank-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.drink-rank-bar-wrap {
    flex: 2;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
}

.drink-rank-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 4px;
    transition: width 1s ease;
}

.drink-rank-total {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 60px;
    text-align: right;
}

/* === Section Label === */
.section-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* === Forms === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #0d0d0d;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-danger {
    background: rgba(239, 83, 80, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 83, 80, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 83, 80, 0.25);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

/* === Toast Notification === */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    min-width: 280px;
    max-width: 400px;
    box-shadow: var(--shadow);
    animation: toastIn 0.4s ease forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    border-left: 4px solid #4caf50;
}

.toast.error {
    background: linear-gradient(135deg, #b71c1c, #c62828);
    border-left: 4px solid #ef5350;
}

.toast.info {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    border-left: 4px solid #42a5f5;
}

.toast.hide {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* === Login Page === */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--bg-primary);
}

.login-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.login-title {
    text-align: center;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.login-tabs {
    display: flex;
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.login-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    color: var(--text-muted);
    border: none;
    font-family: 'Poppins', sans-serif;
}

.login-tab.active {
    background: var(--accent);
    color: #0d0d0d;
}

.form-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* === Profile Page === */
.profile-container {
    max-width: 700px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease forwards;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.profile-avatar-upload {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--bg-secondary);
}

.profile-avatar-upload:hover {
    transform: scale(1.1);
}

.profile-name {
    font-size: 26px;
    font-weight: 700;
}

.profile-bio {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.profile-stats-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 20px;
}

.profile-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease forwards;
}

.profile-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === Tags Input === */
.tags-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-height: 44px;
    align-items: center;
    cursor: text;
    transition: var(--transition);
}

.tags-input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.tags-input-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    flex: 1;
    min-width: 120px;
}

.tags-input-wrapper input::placeholder {
    color: var(--text-muted);
}

/* === Autocomplete Dropdown === */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: var(--shadow);
    margin-top: 4px;
}

.autocomplete-dropdown.show {
    display: block;
    animation: fadeInUp 0.2s ease forwards;
}

.autocomplete-item {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid rgba(42, 42, 74, 0.3);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: rgba(240, 165, 0, 0.1);
    color: var(--accent);
}

.autocomplete-item .highlight {
    color: var(--accent);
    font-weight: 600;
}

/* === Drink Form (in modal) === */
.drink-form-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
}

.drink-form-grid .form-group {
    margin-bottom: 0;
}

.drink-units-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.qty-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.qty-presets .btn-sm {
    width: auto;
}

.drink-total-preview {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(240, 165, 0, 0.08);
    border-radius: var(--radius-xs);
    font-size: 13px;
    color: var(--accent);
    text-align: center;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* === Admin === */
.admin-goal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-state-text {
    font-size: 14px;
}

/* === Loading Spinner === */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Slide Down Animation === */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Admin Badge === */
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: rgba(240, 165, 0, 0.15);
    border: 1px solid rgba(240, 165, 0, 0.3);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Delete Drink Button === */
.drink-log-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
    transition: var(--transition);
    border-radius: 4px;
}

.drink-log-delete:hover {
    color: var(--danger);
    background: rgba(239, 83, 80, 0.1);
}

/* === Responsive === */

/* --- Tablet (768px) --- */
@media (max-width: 768px) {
    .main-container {
        padding: 16px 12px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .goal-section {
        padding: 18px 16px;
    }
    
    .goal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .goal-count {
        font-size: 24px;
    }
    
    .modal {
        max-height: 92vh;
        max-width: 100%;
        margin: 8px;
        border-radius: var(--radius-sm);
    }

    .modal-overlay {
        padding: 8px;
    }
    
    .modal-header {
        padding: 24px 20px 16px;
    }

    .modal-body {
        padding: 16px 20px 24px;
    }
    
    .navbar {
        padding: 0 16px;
    }
    
    .navbar-nav {
        gap: 2px;
    }
    
    .navbar-nav a {
        padding: 8px 10px;
    }
    
    .navbar-nav a span {
        display: none;
    }
    
    .login-box {
        padding: 32px 24px;
    }
    
    .fab-container {
        bottom: 20px;
        right: 20px;
    }

    .fab-main {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    /* Admin grid */
    .admin-goal-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Drink form */
    .drink-form-grid {
        grid-template-columns: 1fr;
    }

    /* Drink ranking bar */
    .drink-rank-bar-wrap {
        flex: 1;
    }

    .drink-rank-total {
        min-width: 50px;
        font-size: 12px;
    }
}

/* --- Mobile (540px) --- */
@media (max-width: 540px) {
    /* Bottom navigation on mobile */
    .navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        height: auto;
        padding: 0;
        border-bottom: none;
        border-top: 1px solid var(--border);
        z-index: 1000;
        flex-direction: row;
        justify-content: center;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
    }

    .navbar-brand {
        display: none;
    }

    .navbar-user {
        display: none;
    }

    .navbar-nav {
        display: flex;
        width: 100%;
        justify-content: space-around;
        padding: 6px 0 max(6px, env(safe-area-inset-bottom));
        gap: 0;
    }

    .navbar-nav li {
        flex: 1;
    }

    .navbar-nav a {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 4px 6px;
        font-size: 10px;
        border-radius: 0;
        gap: 3px;
    }

    .navbar-nav a .nav-icon {
        width: 22px;
        height: 22px;
        opacity: 0.6;
    }

    .navbar-nav a.active .nav-icon {
        opacity: 1;
    }

    .navbar-nav a span {
        display: block;
        font-size: 10px;
        line-height: 1;
        margin-top: 0;
    }

    .navbar-nav a:hover,
    .navbar-nav a.active {
        background: transparent;
    }

    .navbar-nav a.active {
        color: var(--accent);
    }

    .navbar-nav a.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 25%;
        right: 25%;
        height: 3px;
        background: var(--accent);
        border-radius: 3px 3px 0 0;
    }

    .navbar-nav a {
        position: relative;
    }

    /* Body padding for bottom nav */
    body {
        padding-bottom: 72px;
        padding-top: 0;
    }

    /* Main container adjustments */
    .main-container {
        padding: 16px 10px;
        max-width: 100%;
    }

    /* Goal section */
    .goal-section {
        padding: 16px 14px;
        border-radius: var(--radius-sm);
        margin-bottom: 20px;
    }

    .goal-title {
        font-size: 15px;
    }

    .goal-title .emoji {
        font-size: 18px;
        margin-right: 4px;
    }

    .goal-count {
        font-size: 22px;
    }

    .goal-count small {
        font-size: 12px;
    }

    .goal-bar-wrapper {
        height: 20px;
    }

    /* Podium */
    .podium-section {
        margin-bottom: 24px;
    }

    .podium-title {
        font-size: 17px;
        margin-bottom: 16px;
    }

    .podium {
        gap: 6px;
        min-height: 170px;
    }

    .podium-pedestal {
        width: 85px;
        font-size: 22px;
    }

    .podium-place[data-place="1"] .podium-pedestal {
        height: 100px;
        font-size: 26px;
    }

    .podium-place[data-place="2"] .podium-pedestal {
        height: 75px;
    }

    .podium-place[data-place="3"] .podium-pedestal {
        height: 55px;
    }

    .podium-avatar {
        width: 52px;
        height: 52px;
    }

    .podium-place[data-place="1"] .podium-avatar {
        width: 68px;
        height: 68px;
    }

    .podium-medal {
        font-size: 20px;
        bottom: -4px;
        right: -4px;
    }

    .podium-name {
        font-size: 11px;
        max-width: 80px;
    }

    .podium-total {
        font-size: 12px;
    }

    /* Cards */
    .cards-section-title {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 24px;
    }

    .user-card {
        border-radius: var(--radius-sm);
    }

    .user-card:hover {
        transform: none;
        box-shadow: none;
    }

    .user-card:active {
        transform: scale(0.98);
        border-color: var(--accent);
    }

    .user-card-body {
        padding: 16px 14px 12px;
    }

    .user-card-avatar {
        width: 64px;
        height: 64px;
    }

    .user-card-name {
        font-size: 16px;
    }

    .user-card-stat-value {
        font-size: 18px;
    }

    .user-card-wave {
        height: 40px;
    }

    /* FAB above bottom nav */
    .fab-container {
        bottom: 84px;
        right: 16px;
    }

    .fab-main {
        width: 54px;
        height: 54px;
        font-size: 26px;
    }

    /* Modal fullscreen-ish on mobile */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal {
        max-height: 94vh;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        margin: 0;
        animation: modalSlideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1) forwards;
    }

    @keyframes modalSlideUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .modal-header {
        padding: 20px 16px 14px;
    }

    .modal-avatar {
        width: 80px;
        height: 80px;
    }

    .modal-name {
        font-size: 20px;
    }

    .modal-bio {
        font-size: 12px;
    }

    .modal-body {
        padding: 12px 16px 24px;
    }

    /* Drink logs */
    .drink-log-item {
        padding: 10px 12px;
        border-radius: var(--radius-xs);
        margin-bottom: 6px;
    }

    .drink-log-name {
        font-size: 13px;
    }

    .drink-log-qty {
        font-size: 14px;
    }

    .drink-log-date {
        font-size: 10px;
    }

    .drink-log-delete {
        padding: 6px 10px;
        font-size: 16px;
    }

    /* Drink ranking */
    .drink-rank-item {
        gap: 8px;
        padding: 8px 0;
    }

    .drink-rank-name {
        font-size: 13px;
    }

    .drink-rank-bar-wrap {
        flex: 1;
        min-width: 0;
    }

    .drink-rank-total {
        min-width: 40px;
        font-size: 11px;
    }

    /* Tags */
    .tags-container {
        justify-content: center;
        gap: 6px;
    }

    .tag {
        padding: 4px 10px;
        font-size: 11px;
    }

    /* Section label */
    .section-label {
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    /* Login */
    .login-wrapper {
        padding: 16px;
    }

    .login-box {
        padding: 28px 20px;
        border-radius: var(--radius-sm);
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 13px;
        margin-bottom: 24px;
    }

    /* Forms on mobile */
    .form-control {
        padding: 11px 14px;
        font-size: 16px; /* prevents iOS zoom on focus */
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
    }

    .btn-sm {
        padding: 8px 14px;
        font-size: 12px;
        width: auto;
    }

    /* Profile page */
    .profile-header {
        padding: 28px 16px;
        border-radius: var(--radius-sm);
        margin-bottom: 16px;
    }

    .profile-avatar {
        width: 96px;
        height: 96px;
    }

    .profile-name {
        font-size: 22px;
    }

    .profile-bio {
        font-size: 13px;
    }

    .profile-section {
        padding: 18px 14px;
        border-radius: var(--radius-sm);
        margin-bottom: 14px;
    }

    .profile-section-title {
        font-size: 15px;
    }

    .profile-stats-row {
        gap: 20px;
    }

    /* Admin page */
    .admin-goal-grid {
        grid-template-columns: 1fr;
    }

    .admin-table-cell-actions {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    /* Toast mobile */
    .toast-container {
        top: auto;
        bottom: 80px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
        font-size: 12px;
        padding: 12px 16px;
    }

    /* Autocomplete on mobile */
    .autocomplete-dropdown {
        max-height: 180px;
    }

    .autocomplete-item {
        padding: 12px 16px;
        font-size: 15px;
    }

    /* Drink form grid */
    .drink-form-grid {
        grid-template-columns: 1fr;
    }

    /* Drink units row */
    .drink-units-row {
        flex-direction: column;
    }

    .drink-units-row .form-group {
        width: 100%;
    }

    /* Empty state */
    .empty-state {
        padding: 32px 16px;
    }

    .empty-state-icon {
        font-size: 40px;
    }
}

/* --- Small phones (360px) --- */
@media (max-width: 360px) {
    .main-container {
        padding: 12px 8px;
    }

    .goal-section {
        padding: 14px 12px;
    }

    .goal-count {
        font-size: 20px;
    }

    .podium-pedestal {
        width: 72px;
    }

    .podium-avatar {
        width: 44px;
        height: 44px;
    }

    .podium-place[data-place="1"] .podium-avatar {
        width: 58px;
        height: 58px;
    }

    .podium-name {
        font-size: 10px;
        max-width: 68px;
    }

    .user-card-body {
        padding: 14px 10px 10px;
    }

    .user-card-avatar {
        width: 56px;
        height: 56px;
    }

    .modal-header {
        padding: 16px 14px 12px;
    }

    .modal-body {
        padding: 10px 14px 20px;
    }

    .login-box {
        padding: 24px 16px;
    }

    .profile-section {
        padding: 16px 12px;
    }
}

/* ================================================================
   NEW FEATURES: Group Drink, Notifications, Invites, PWA, FAB
   ================================================================ */

/* --- Group Toggle --- */
.group-toggle-container {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.group-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.group-toggle input {
    display: none;
}

.group-toggle-slider {
    width: 44px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.group-toggle-slider::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.group-toggle input:checked + .group-toggle-slider {
    background: var(--accent);
}

.group-toggle input:checked + .group-toggle-slider::after {
    transform: translateX(20px);
}

.group-toggle-label {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

/* --- Group Users Grid --- */
.group-users-section {
    margin-bottom: 16px;
}

.group-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.group-user-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.group-user-item:hover {
    border-color: var(--border-light);
}

.group-user-item:has(input:checked) {
    border-color: var(--accent);
    background: rgba(240, 165, 0, 0.1);
}

.group-user-item input {
    display: none;
}

.group-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.group-user-item:has(input:checked) .group-user-avatar {
    border-color: var(--accent);
}

.group-user-name {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.group-division-info {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(240, 165, 0, 0.08);
    border: 1px solid rgba(240, 165, 0, 0.2);
    border-radius: var(--radius-xs);
    color: var(--accent);
    font-size: 13px;
    text-align: center;
}

/* --- Bebim On Section --- */
.bebim-on-section {
    margin-bottom: 20px;
}

.bebim-on-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.bebim-on-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bebim-on-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid rgba(76, 175, 80, 0.25);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.bebim-on-card:hover {
    border-color: rgba(76, 175, 80, 0.5);
    background: var(--bg-hover);
}

.bebim-on-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4caf50;
    flex-shrink: 0;
    animation: bebimPulse 2s infinite;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

@keyframes bebimPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(76, 175, 80, 0.6); }
    50% { opacity: 0.6; box-shadow: 0 0 16px rgba(76, 175, 80, 0.9); }
}

.bebim-on-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4caf50;
    flex-shrink: 0;
}

.bebim-on-info {
    flex: 1;
    min-width: 0;
}

.bebim-on-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.bebim-on-location {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bebim-on-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.bebim-on-active-status {
    text-align: center;
    padding: 20px 0;
}

/* --- Notification Bell & Badge --- */
.notif-bell-link {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef5350;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
    animation: notifPulse 2s infinite;
}

@keyframes notifPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* --- Notification Panel --- */
.notif-panel {
    position: fixed;
    top: 60px;
    right: 16px;
    width: 360px;
    max-height: 480px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.notif-panel.show {
    opacity: 1;
    transform: translateY(0);
}

.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.notif-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.notif-mark-all-read {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.notif-mark-all-read:hover {
    background: rgba(240, 165, 0, 0.1);
}

.notif-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.notif-clear-all,
.notif-panel-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.notif-clear-all:hover {
    background: rgba(255, 80, 80, 0.15);
    color: #ff5050;
}

.notif-panel-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.profile-section-compact {
    padding: 12px 16px;
    margin-bottom: 8px;
}

.notif-panel-body {
    overflow-y: auto;
    flex: 1;
    max-height: 380px;
}

.notif-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.notif-item:hover {
    background: rgba(255,255,255,0.03);
}

.notif-item.unread {
    background: rgba(240, 165, 0, 0.05);
    border-left: 3px solid var(--accent);
}

.notif-item-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.notif-item-content {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.notif-item-body {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* --- Notification Invite Actions --- */
.notif-invite-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.notif-invite-accept,
.notif-invite-decline {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.notif-invite-accept {
    background: #2e7d32;
    color: #a5d6a7;
}

.notif-invite-accept:hover {
    background: #388e3c;
}

.notif-invite-decline {
    background: #c62828;
    color: #ef9a9a;
}

.notif-invite-decline:hover {
    background: #d32f2f;
}

/* --- FAB Container (expandable) --- */
.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1001;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
}

.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff8c00);
    color: #0d0d0d;
    font-size: 28px;
    font-weight: 300;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(240, 165, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fab-main:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(240, 165, 0, 0.5);
}

.fab-container.open .fab-main {
    transform: rotate(45deg);
}

.fab-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.fab-container.open .fab-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fab-action {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 10px 18px 10px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.fab-action:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
}

.fab-action svg {
    color: var(--accent);
    flex-shrink: 0;
}

.fab-action-label {
    font-size: 13px;
    font-weight: 600;
}

/* --- Invite Detail --- */
.invite-detail-desc {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.invite-detail-info {
    margin-bottom: 16px;
}

.invite-info-row {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.invite-info-row:last-child {
    border-bottom: none;
}

.invite-detail-actions {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.invite-detail-actions .btn {
    flex: 1;
    font-size: 15px;
    padding: 14px;
}

.invite-detail-status {
    text-align: center;
    padding: 14px;
    border-radius: var(--radius-xs);
    font-weight: 600;
    font-size: 14px;
    margin: 16px 0;
}

.invite-detail-status.accepted {
    background: rgba(46, 125, 50, 0.1);
    color: #4caf50;
    border: 1px solid rgba(46, 125, 50, 0.3);
}

.invite-detail-status.declined {
    background: rgba(198, 40, 40, 0.1);
    color: #ef5350;
    border: 1px solid rgba(198, 40, 40, 0.3);
}

.invite-users-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.invite-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xs);
}

.invite-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.invite-user-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.invite-user-status {
    font-size: 16px;
}

/* --- Commitment Cards (Profile) --- */
.commitments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.commitment-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.commitment-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.commitment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.commitment-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.commitment-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.commitment-badge.creator {
    background: rgba(240, 165, 0, 0.15);
    color: var(--accent);
}

.commitment-badge.accepted {
    background: rgba(46, 125, 50, 0.15);
    color: #4caf50;
}

.commitment-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.commitment-detail {
    font-size: 13px;
    color: var(--text-secondary);
}

.commitment-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.commitment-creator-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.commitment-creator-name {
    font-size: 12px;
    color: var(--text-secondary);
    flex: 1;
}

.commitment-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Prompt Banners (Push + Install) --- */
.prompt-banner {
    position: fixed;
    bottom: -120px;
    left: 16px;
    right: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1500;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
    transition: bottom 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
}

.prompt-banner.show {
    bottom: 16px;
}

.prompt-banner-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.prompt-banner-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.prompt-banner-text strong {
    font-size: 14px;
    color: var(--text-primary);
}

.prompt-banner-text small {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
}

.prompt-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.prompt-banner-accept {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #0d0d0d;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.prompt-banner-accept:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(240, 165, 0, 0.4);
}

.prompt-banner-dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.prompt-banner-dismiss:hover {
    color: var(--text-primary);
}

/* ================================================================
   RESPONSIVE OVERRIDES FOR NEW COMPONENTS
   ================================================================ */

@media (max-width: 768px) {
    .notif-panel {
        right: 8px;
        width: 340px;
    }

    .group-users-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 540px) {
    /* Notification panel fullscreen on mobile */
    .notif-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 60px;
        width: 100%;
        max-height: none;
        border-radius: 0;
    }

    .notif-panel-body {
        max-height: none;
        flex: 1;
    }

    /* Notification bell badge position in bottom nav */
    .notif-badge {
        top: -6px;
        right: 50%;
        transform: translateX(14px);
    }

    /* FAB at mobile */
    .fab-container {
        bottom: 84px;
        right: 16px;
    }

    .fab-main:hover {
        transform: none;
    }

    .fab-container.open .fab-main {
        transform: rotate(45deg);
    }

    /* Group users grid compact */
    .group-users-grid {
        grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
        gap: 6px;
    }

    .group-user-avatar {
        width: 36px;
        height: 36px;
    }

    .group-user-name {
        font-size: 10px;
        max-width: 64px;
    }

    /* Invite actions */
    .invite-detail-actions {
        flex-direction: column;
    }

    /* Prompt banners */
    .prompt-banner {
        left: 8px;
        right: 8px;
    }

    /* Commitment cards */
    .commitment-card {
        padding: 14px 12px;
    }

    .commitment-title {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .group-users-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .notif-item {
        padding: 10px 12px;
    }

    .notif-item-title {
        font-size: 12px;
    }
}
