body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
    background-image: url('/assets/images/mountain-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/mountain-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 116, 144, 0.5);
    z-index: -1;
}

.header {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 60px;
    overflow: visible;
    position: relative;
}

.header {
    overflow: visible;
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
    min-width: 0;
    position: relative;
}

.header-icons-left {
    margin-left: 0;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    gap: 10px;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10;
    position: relative;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    position: relative;
}

/* Hide right icons (Coins, Logout) on desktop - they're in the nav bar */
.header-icons.header-icons-right {
    display: none !important;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0;
    letter-spacing: -0.5px;
}

.logo:hover {
    transform: scale(1.02);
}

.logo .fm { 
    color: #22d3ee;
    font-weight: 700;
}

.logo-image {
    height: 150px;
    width: auto;
    display: block;
    object-fit: contain;
    max-width: 200px;
    margin-top: -30px;
    margin-bottom: -45px;
    vertical-align: middle;
}

.logo-section {
    align-items: center;
    height: 60px;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 60px;
    overflow: visible;
}

@media (max-width: 768px) {
    .logo-image {
        height: 90px;
        max-width: 200px;
        margin-top: -15px;
        margin-bottom: -20px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 75px;
        max-width: 180px;
        margin-top: -12px;
        margin-bottom: -18px;
    }
}

.header-icons {
    display: flex !important;
    align-items: center;
    gap: 8px;
    visibility: visible !important;
    opacity: 1 !important;
}

.header-icons-left {
    order: 2;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10;
}

/* header-icons-right positioning - only applies when visible (mobile) */

.header-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s;
    cursor: pointer;
    background: transparent;
    border-radius: 8px;
    border: none;
    overflow: hidden;
}

img.header-gift-icon {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    object-fit: contain;
    display: block;
    vertical-align: middle;
    flex-shrink: 0;
}

.header-coins-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: auto;
    min-width: 36px;
    overflow: visible;
}

.header-coins-icon:hover {
    background: rgba(251, 191, 36, 0.15);
    transform: scale(1.05);
}

.header-coins-icon .coin-img-wrap {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
}

.header-coins-icon .coin-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.header-coins-icon .wallet-icon-hover {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
}

.header-coins-icon:hover .wallet-icon-default {
    display: none;
}

.header-coins-icon:hover .wallet-icon-hover {
    display: block;
}

.header-coins-icon .coin-label {
    font-size: 9px;
    font-weight: 600;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: visible;
    flex-shrink: 0;
}

.header-coins-icon:hover .coin-label {
    color: #fcd34d;
}

.header-logout-icon {
    color: rgba(255, 255, 255, 0.6);
}

.header-logout-icon:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.header-logout-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.header-icon:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.header-icon span {
    display: block;
    line-height: 1;
}

/* Icon with badge: allow badge to overflow so it isn't clipped */
.header-icon.header-icon-badge {
    overflow: visible;
}

.header-icon-badge {
    position: relative;
}

.header-icon-badge::after {
    content: attr(data-count);
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    border-radius: 6px;
    padding: 0 4px;
    font-size: 9px;
    font-weight: 600;
    min-width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.header-icon-badge.pulse::after {
    animation: badgePulse 0.5s ease;
}

.header-icon-badge[data-count="0"]::after {
    display: none;
}

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

.header-nav a, 
.header-nav button {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    padding: 8px 14px;
    border-radius: 6px;
}

.header-nav a:hover, 
.header-nav button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.header-nav a.active {
    color: white;
    background: rgba(34, 211, 238, 0.15);
    font-weight: 600;
}

.header-nav .nav-coins {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2) 0%, rgba(14, 165, 233, 0.2) 100%);
    color: #22d3ee !important;
    border: 1px solid rgba(34, 211, 238, 0.3);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-nav .nav-coins:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.3) 0%, rgba(14, 165, 233, 0.3) 100%);
    border-color: rgba(34, 211, 238, 0.5);
    transform: translateY(-1px);
}

.header-nav .nav-coins .nav-wallet-icon-wrap {
    position: relative;
    display: inline-flex;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    flex-shrink: 0;
}

.header-nav .nav-coins .coin-img-nav {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.header-nav .nav-coins .wallet-icon-hover {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
}

.header-nav .nav-coins:hover .wallet-icon-default,
.header-nav .nav-coins.active .wallet-icon-default {
    display: none;
}

.header-nav .nav-coins:hover .wallet-icon-hover,
.header-nav .nav-coins.active .wallet-icon-hover {
    display: block;
}

.header-logout-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin-left: 8px;
}

.header-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Guest buttons (Login/Sign Up) */
.header-nav-guest {
    display: flex;
    gap: 10px;
}

.guest-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.login-btn {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2) 0%, rgba(14, 165, 233, 0.2) 100%);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: #22d3ee;
}

.login-btn:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.3) 0%, rgba(14, 165, 233, 0.3) 100%);
}

.signup-btn {
    background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%);
    color: white;
    font-weight: 600;
    border: none;
}

.signup-btn:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    transform: translateY(-1px);
}

.header-search {
    display: none;
}

.header-search input {
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #1f2937;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    font-family: inherit;
}

.header-search input:focus {
    outline: none;
    border-color: #22d3ee;
    background: white;
}

.header-search input::placeholder {
    color: #9ca3af;
}

.header-search .btn-search {
    padding: 8px 18px;
    font-size: 14px;
    background: #22d3ee;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.header-search .btn-search:hover {
    background: #06b6d4;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-menu a {
    color: #a855f7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.user-menu a:hover {
    color: #9333ea;
}

.username-link {
    font-weight: 600;
    color: #a855f7 !important;
}

.user-menu .btn-logout {
    background: white;
    color: #374151;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.user-menu .btn-logout:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}


.btn-primary {
    background: #22d3ee;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #06b6d4;
}

.btn-success {
    background: #84cc16;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-success:hover {
    background: #65a30d;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

/* Dark mode: fundal verde închis, text alb pentru contrast */
@media (prefers-color-scheme: dark) {
    .alert-success {
        background: #065f46;
        color: #fff;
        border-color: #047857;
    }
    .alert-error {
        background: #7f1d1d;
        color: #fecaca;
        border-color: #991b1b;
    }
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Likes Dropdown */
.likes-dropdown-container {
    position: relative;
}

.modal-overlay {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    bottom: auto;
    background: transparent;
    z-index: 1000000;
    width: 0;
    height: 0;
    padding-top: 0;
}

.modal-overlay.show {
    display: block;
    width: auto;
    height: auto;
}

@media (max-width: 768px) {
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        width: 100%;
        height: 100%;
        align-items: flex-start;
        justify-content: center;
        padding-top: 60px;
    }
    
    .modal-overlay.show {
        display: flex;
    }
}

/* Likes dropdown modal - Compact & Friendly Design */
.likes-dropdown-container .likes-dropdown-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 
                0 0 0 1px rgba(0, 0, 0, 0.04);
    max-width: 340px;
    width: 320px;
    max-height: 340px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    margin-top: 0;
    animation: modalSlideIn 0.15s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.likes-dropdown-container .likes-dropdown-header {
    padding: 12px 16px;
    background: #1e293b;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.likes-dropdown-container .likes-dropdown-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.likes-dropdown-container .likes-dropdown-header h2::before {
    content: '❤️';
    font-size: 12px;
}

.likes-dropdown-container .likes-dropdown-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    padding: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    line-height: 1;
    transition: all 0.15s ease;
}

.likes-dropdown-container .likes-dropdown-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.likes-dropdown-container .likes-dropdown-body {
    padding: 6px;
    overflow-y: auto;
    flex: 1;
    background: #f8fafc;
    min-height: 0;
}

/* Lista de notificări – layout vertical compact, fără spații goale */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Un rând = o notificare; evità despartirea avatar / conținut */
.notification-list .notification-row {
    display: block;
    min-height: 0;
}
.notification-list .notification-row > .notification-item,
.notification-list .notification-row > a {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
}

/* În dropdown cadouri: avatar strict în dreptul numelui, fără chenare goale */
#giftsModalBody .notification-row > a {
    align-items: center;
}
#giftsModalBody .notification-gift-avatars .notification-avatar-stacked img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    display: block;
}

/* ========== Cadouri – design modern (card, spacing, icon) ========== */
#giftsModalBody .notification-list {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
#giftsModalBody .gift-card-wrap {
    margin: 0;
    display: block;
    width: 100%;
}
#giftsModalBody .gift-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
#giftsModalBody .gift-card:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
#giftsModalBody .gift-card-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 100%);
}
#giftsModalBody .gift-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#giftsModalBody .gift-avatar-icon {
    font-size: 18px;
    line-height: 1;
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
#giftsModalBody .gift-avatar-initial {
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
#giftsModalBody .gift-card-body {
    flex: 1 1 0%;
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    overflow: hidden;
}
#giftsModalBody .gift-card-line {
    font-size: 13px;
    line-height: 1.4;
    color: #334155;
    margin: 0;
    padding: 0;
}
#giftsModalBody .gift-card-line strong {
    font-weight: 600;
}
#giftsModalBody .gift-card-line a {
    color: #0891b2;
    text-decoration: none;
    font-weight: 500;
}
#giftsModalBody .gift-card-line a:hover {
    text-decoration: underline;
}
#giftsModalBody .gift-card-time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

/* Scrollbar styling for notifications */
.likes-dropdown-container .likes-dropdown-body::-webkit-scrollbar {
    width: 4px;
}

.likes-dropdown-container .likes-dropdown-body::-webkit-scrollbar-track {
    background: transparent;
}

.likes-dropdown-container .likes-dropdown-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.notification-item {
    padding: 10px 12px;
    margin: 0;
    border-radius: 8px;
    background: white;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-shrink: 0;
    transition: background 0.15s ease;
    border: 1px solid #f1f5f9;
}

.notification-item:hover {
    background: #fefefe;
    border-color: #e2e8f0;
}
 .notification-item-link {
    text-decoration: none;
    color: inherit;
}
 .notification-item-link:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.notification-item-clickable:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.notification-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64748b, #475569);
    flex-shrink: 0;
    overflow: hidden;
}

.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stacked avatars for grouped notifications */
.notification-avatars {
    display: flex;
    flex-shrink: 0;
    width: 46px;
    position: relative;
    height: 32px;
    min-height: 32px;
    align-items: flex-start;
}

.notification-avatar-stacked {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64748b, #475569);
    overflow: hidden;
    position: absolute;
    top: 2px;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.notification-avatar-stacked img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.notification-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    min-height: 2.25em;
}

.notification-text {
    color: #334155;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 2px;
}

.notification-text a {
    color: #0891b2;
    text-decoration: none;
    font-weight: 600;
}

.notification-text a:hover {
    text-decoration: underline;
}

.notification-meta {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 500;
}

.notification-answer {
    margin-top: 6px;
    padding: 6px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
    border-left: 2px solid #cbd5e1;
}

.notification-answer strong,
.notification-answer b {
    color: #64748b;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* Card cadou: un rând clar – avatar în dreptul numelui, fără spații goale */
.notification-gift-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-decoration: none;
    color: inherit;
}

.notification-gift-card:hover {
    background: #f1f5f9 !important;
}

.notification-gift-avatars {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-gift-avatars .notification-avatar-stacked {
    position: relative !important;
    top: 0 !important;
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0;
}

/* Conținutul text pe același rând, fără min-height care creează chenare goale */
.notification-gift-card .notification-content {
    flex: 1;
    min-width: 0;
    min-height: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
}

.notification-gift-card .notification-text,
.notification-gift-card .notification-meta {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

/* Specificitate mai mare decât avatar-defaults (.notification-avatar-stacked > span) – acolo e 12px și fundal gri care ascundeau emoji-ul de cadou */
.notification-avatar-stacked .notification-gift-avatar,
.notification-gift-avatars .notification-avatar-stacked .notification-gift-avatar {
    font-size: 22px !important;
    background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: inherit !important;
    text-transform: none !important;
}

.notification-story-like {
    display: flex;
    align-items: center;
}
.notification-story-preview {
    margin-left: auto;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
}
.notification-story-thumb {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.1);
    transition: transform 0.15s, box-shadow 0.15s;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.notification-story-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.notification-story-placeholder,
.notification-story-video-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
video.notification-story-thumb,
video.notification-story-video {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    background: #000;
    object-fit: cover;
    pointer-events: none;
}
.notification-profile-link,
.notification-name-link {
    text-decoration: none;
    color: inherit;
}
.notification-name-link:hover strong {
    color: #3b82f6;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    background: white;
    margin: 6px;
    border-radius: 8px;
}

.notification-empty-icon {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Responsive Design - Modals and containers */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 0 10px;
    }
    
    .card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .modal-overlay.show {
        display: flex !important;
    }
    
    .modal {
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        max-height: 75vh;
        border-radius: 8px 8px 0 0;
        margin: 0;
    }
    
    .modal-header {
        padding: 12px 16px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 22px;
    }
    
    .likes-dropdown-container .likes-dropdown-modal {
        width: calc(100% - 20px);
        max-width: 100%;
        border-radius: 14px 14px 0 0;
        max-height: 50vh;
    }
    
    .likes-dropdown-container .likes-dropdown-header {
        padding: 12px 16px;
        border-radius: 14px 14px 0 0;
    }
    
    .likes-dropdown-container .likes-dropdown-header h2 {
        font-size: 14px;
    }
    
    .notification-item {
        padding: 10px 12px;
        margin: 0;
        gap: 10px;
        border-radius: 8px;
    }
    
    .notification-avatar {
        width: 32px;
        height: 32px;
    }
    
    .notification-text {
        font-size: 12px;
    }
    
    .notification-meta {
        font-size: 10px;
    }
    
    .notification-answer {
        padding: 6px 10px;
        font-size: 11px;
        margin-top: 6px;
        border-radius: 6px;
    }
    
    .notification-empty {
        padding: 30px 15px;
        margin: 6px;
    }
    
    /* Cadouri pe tabletă/mobil – mai compact, ca notificările */
    #giftsModalBody .gift-card {
        padding: 8px 12px;
        gap: 10px;
        border-radius: 8px;
    }
    #giftsModalBody .gift-card-avatar {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
    #giftsModalBody .gift-card-line {
        font-size: 12px;
        line-height: 1.35;
    }
    #giftsModalBody .gift-card-time {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 8px;
        padding: 0 8px;
    }
    
    .header-icon-badge-placeholder::after {
        font-size: 8px;
        padding: 1px 3px;
        min-width: 12px;
        height: 12px;
        line-height: 12px;
        top: -4px;
        right: -4px;
    }
    
    .header-logout-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .user-menu {
        gap: 8px;
    }
    
    .user-menu a {
        font-size: 12px;
    }
    
    .user-menu .btn-logout {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .container {
        margin: 5px;
    }
    
    .card {
        padding: 12px;
    }
    
    .modal-overlay {
        padding-top: 50px;
    }
    
    .modal {
        width: calc(100% - 10px);
        max-width: calc(100% - 10px);
        max-height: 80vh;
    }
    
    .likes-dropdown-container .likes-dropdown-modal {
        max-height: 45vh;
    }
    
    .modal-header {
        padding: 10px 14px;
    }
    
    .modal-header h2 {
        font-size: 15px;
    }
    
    .modal-close {
        width: 22px;
        height: 22px;
        font-size: 18px;
    }
    
    .notification-item {
        padding: 10px 14px;
        gap: 8px;
    }
    
    .notification-avatar {
        width: 32px;
        height: 32px;
    }
    
    .notification-content {
        min-width: 0;
        overflow: hidden;
    }
    
    .notification-text {
        font-size: 12px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .notification-meta {
        font-size: 10px;
        margin-top: 2px;
    }
    
    .notification-answer {
        padding: 6px 8px;
        font-size: 11px;
        margin-top: 6px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .notification-answer strong {
        font-size: 11px;
    }
    
    /* Cadouri pe telefon – foarte compact, aspect profi */
    .gifts-dropdown-container .likes-dropdown-body {
        padding: 4px 6px;
    }
    #giftsModalBody .notification-list {
        gap: 4px;
    }
    #giftsModalBody .gift-card {
        padding: 6px 10px;
        gap: 8px;
        border-radius: 8px;
    }
    #giftsModalBody .gift-card-avatar {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
    #giftsModalBody .gift-avatar-icon {
        font-size: 14px;
    }
    #giftsModalBody .gift-avatar-initial {
        font-size: 11px;
    }
    #giftsModalBody .gift-card-line {
        font-size: 11px;
        line-height: 1.35;
    }
    #giftsModalBody .gift-card-time {
        font-size: 9px;
    }
}

/* === BLOCK 2 === */

/* Toggle button when widget is hidden */
.live-feed-toggle-btn {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 60px;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    border-radius: 0 8px 8px 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 91;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.live-feed-toggle-btn:hover {
    width: 32px;
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
}

.live-feed-toggle-btn.visible {
    display: flex;
}

.live-feed-toggle-btn.ready {
    transition: width 0.2s, background 0.2s;
}

.toggle-dot {
    width: 6px;
    height: 6px;
    background: #fbbf24;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.toggle-arrow {
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

/* Main widget - starts hidden, JS will show it (visibility evita x-ul vizibil în stânga) */
.live-feed-widget {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-100%);
    width: 240px;
    max-height: 50vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 90;
    font-size: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.live-feed-widget.ready {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.live-feed-widget.visible {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    pointer-events: auto;
    border-left: none;
    visibility: visible;
}

.live-feed-widget.hidden {
    transform: translateY(-50%) translateX(-100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.live-feed-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #fbbf24;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.live-feed-title {
    color: white;
    font-weight: 600;
    font-size: 12px;
    flex: 1;
}

.live-feed-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
}

.live-feed-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.live-feed-close:hover {
    color: white;
}

/* Modal Adaugă story - centrat ca pe FB, fără x în stânga */
.add-story-modal-global {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
}
.add-story-modal-global.show {
    display: flex;
    visibility: visible;
}
.add-story-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}
.add-story-modal-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 28px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.add-story-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
}
.add-story-modal-close:hover {
    background: #e2e8f0;
    color: #334155;
}
.add-story-modal-title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
}
.add-story-preview-screen { padding: 8px 0; }
.add-story-modal-global .add-story-preview {
    max-height: min(70vh, 420px); border-radius: 10px; margin-bottom: 12px; display: none;
    overflow: hidden; background: #0f172a;
}
.add-story-modal-global .add-story-preview.show { display: block; }
.add-story-modal-global .add-story-preview img,
.add-story-modal-global .add-story-preview video {
    max-width: 100%; max-height: min(70vh, 420px); width: auto; height: auto;
    border-radius: 10px; object-fit: contain; display: block; margin: 0 auto;
}
.add-story-modal-global .add-story-error { color: #dc2626; font-size: 13px; margin: 0 0 12px; }
.add-story-modal-global .add-story-actions { display: flex; gap: 12px; }
.add-story-modal-global .add-story-cancel,
.add-story-modal-global .add-story-upload {
    flex: 1; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
    cursor: pointer; border: none;
}
.add-story-modal-global .add-story-cancel { background: #e2e8f0; color: #334155; }
.add-story-modal-global .add-story-upload { background: #3b82f6; color: #fff; }
.add-story-modal-global .add-story-upload:hover:not(:disabled) { background: #2563eb; }
.add-story-modal-global .add-story-upload:disabled { opacity: 0.6; cursor: not-allowed; }
/* Cameră fullscreen */
.story-camera-fullscreen {
    position: fixed; inset: 0; z-index: 100002; background: #000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.story-camera-fullscreen #storyCameraPreview {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.story-camera-fullscreen #storyCameraPreview.mirror { transform: scaleX(-1); }
.story-camera-preparing {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    color: #fff; font-size: 16px; z-index: 15; background: rgba(0,0,0,0.6); padding: 12px 20px; border-radius: 12px;
}
.story-recorded-fallback {
    padding: 12px; margin-bottom: 12px; background: #f1f5f9; border-radius: 10px; font-size: 14px; color: #475569;
}
.story-camera-close {
    position: absolute; top: 16px; right: 16px; z-index: 10;
    width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(0,0,0,0.5);
    color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.story-camera-flip {
    position: absolute; top: 16px; left: 16px; z-index: 10;
    width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(0,0,0,0.5);
    color: #fff; font-size: 18px; cursor: pointer;
}
.story-camera-timer {
    position: absolute; top: 70px; left: 50%; transform: translateX(-50%); z-index: 10;
    color: #fff; font-size: 18px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.story-camera-timer.warn { color: #fbbf24; }
.story-camera-record-wrap {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 10;
    display: flex; align-items: center; justify-content: center;
    width: 80px; height: 80px;
}
.story-camera-progress-ring {
    position: absolute; left: 0; top: 0; width: 80px; height: 80px; border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3); border-top-color: #dc2626;
    transition: transform 0.1s linear; pointer-events: none;
}
.story-camera-record-btn {
    width: 64px; height: 64px; border-radius: 50%; border: 4px solid #fff;
    background: #dc2626; cursor: pointer; transition: border-radius 0.2s, width 0.2s, height 0.2s;
}
.story-camera-record-btn.recording {
    border-radius: 8px; width: 32px; height: 32px; margin: 16px;
}
.story-recorded-preview-overlay {
    position: fixed; inset: 0; z-index: 100003; background: rgba(0,0,0,0.85);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.story-recorded-preview-card {
    background: #fff; border-radius: 16px; padding: 24px; max-width: 400px; width: 100%;
    position: relative;
}
.story-recorded-preview-card h3 { margin: 0 0 16px; font-size: 18px; }
.story-recorded-preview-video-wrap {
    position: relative; width: 100%; margin-bottom: 16px; min-height: 200px; background: #000; border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.story-recorded-preview-card #storyRecordedVideo {
    width: 100%; max-width: 100%; max-height: min(70vh, 500px); height: auto;
    border-radius: 10px; display: block; object-fit: contain; margin-left: auto; margin-right: auto;
    aspect-ratio: 9 / 16;
}
.story-recorded-loading {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; color: #fff; display: none; z-index: 2;
}
.story-recorded-loading.active { display: block; }
.story-recorded-spinner {
    width: 48px; height: 48px; border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #fff; border-radius: 50%; animation: storyRecordedSpin 1s linear infinite;
    margin: 0 auto 12px;
}
@keyframes storyRecordedSpin { to { transform: rotate(360deg); } }
.story-recorded-loading p { margin: 0; font-size: 14px; }
.story-recorded-manual-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    border: none; background: transparent; cursor: pointer; z-index: 3;
    padding: 0; transition: transform 0.2s;
}
.story-recorded-manual-play:hover { transform: translate(-50%, -50%) scale(1.1); }
.story-recorded-close {
    position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: none;
    background: #f1f5f9; border-radius: 50%; font-size: 20px; cursor: pointer;
}
.story-recorded-actions { display: flex; flex-direction: column; gap: 10px; }
.story-recorded-actions button {
    padding: 12px 16px; border-radius: 10px; font-weight: 600; border: none; cursor: pointer;
}
.story-recorded-use { background: #22c55e; color: #fff; }
.story-recorded-retake { background: #3b82f6; color: #fff; }
.story-recorded-cancel { background: #e2e8f0; color: #334155; }

.live-feed-content {
    max-height: calc(50vh - 40px);
    overflow: hidden;
}

.live-feed-items {
    max-height: calc(50vh - 40px);
    overflow-y: auto;
}

.live-feed-items::-webkit-scrollbar {
    width: 3px;
}

.live-feed-items::-webkit-scrollbar-track {
    background: transparent;
}

.live-feed-items::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.live-feed-item {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.live-feed-item:hover {
    background: #f8fafc;
}

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

.live-feed-item.new {
    animation: newItemHighlight 1s ease;
}

@keyframes newItemHighlight {
    from { background: rgba(8, 145, 178, 0.1); }
    to { background: transparent; }
}

.live-feed-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.live-feed-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64748b, #475569);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-feed-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-feed-avatar span {
    color: white;
    font-size: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Hide broken images globally */
img[src=""] { display: none !important; }
img:not([src]) { display: none !important; }

.live-feed-user {
    color: #0891b2;
    font-weight: 600;
    font-size: 11px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-feed-time {
    color: #94a3b8;
    font-size: 9px;
    flex-shrink: 0;
}

.live-feed-question {
    color: #64748b;
    font-size: 10px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-feed-question .q-icon {
    color: #f59e0b;
    font-weight: bold;
}

.live-feed-answer {
    color: #334155;
    font-size: 11px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.live-feed-empty {
    color: #94a3b8;
    text-align: center;
    padding: 20px 12px;
    font-size: 11px;
}

@media (max-width: 1100px) {
    .live-feed-widget,
    .live-feed-toggle-btn {
        display: none !important;
    }
}

/* ============================================
   RESPONSIVE STYLES FOR MOBILE
   ============================================ */

/* Navigation SVG icons - hidden on desktop */
.nav-icon {
    display: none;
    width: 22px;
    height: 22px;
}

/* Mobile labels - hidden on desktop */
.nav-label {
    display: none;
}

.nav-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 4px;
}

/* Tablets */
@media (max-width: 900px) {
    .header-content {
        padding: 0 12px;
    }
    
    .header-nav {
        gap: 4px;
    }
    
    .header-nav a,
    .header-nav button {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Mobile devices - Clean ASKfm style */
@media (max-width: 600px) {
    .header {
        padding: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #1e293b;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    /* Add padding to body to compensate for fixed header */
    body {
        padding-top: 140px !important;
    }
    
    /* Ensure all main containers have proper spacing */
    .container,
    .search-section,
    .friends-container,
    .feed-container,
    .settings-page,
    .wallet-page,
    .withdraw-page,
    main > *:first-child {
        margin-top: 15px !important;
    }
    
    .header-content {
        padding: 0;
        flex-direction: column;
        gap: 0;
    }
    
    /* Top bar - logo, icons left together, icons right */
    .logo-section {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 8px 12px;
        box-sizing: border-box;
        gap: 8px;
    }
    
    .logo {
        font-size: 18px;
        flex: 0 0 auto;
    }
    
    .header-icons {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .header-icons-left {
        order: 1;
        flex: 0 0 auto;
    }
    
    /* Show right icons (Coins, Logout) on mobile - on the RIGHT */
    .header-icons.header-icons-right {
        display: flex !important;
        flex: 0 0 auto;
        order: 2;
        margin-left: auto;
    }
    
    .logo {
        order: 0;
    }
    
    .header-icon {
        width: 34px;
        height: 34px;
        border-radius: 6px;
        background: transparent;
    }
    
    .header-icon img {
        width: 18px !important;
        height: 18px !important;
    }
    
    .header-icon-badge::after {
        font-size: 8px;
        min-width: 12px;
        height: 12px;
        line-height: 12px;
        top: -2px;
        right: -2px;
    }
    
    .header-coins-icon {
        width: auto;
        min-width: 34px;
        overflow: visible;
    }
    
    .header-coins-icon .coin-img {
        width: 20px;
        height: 20px;
    }
    
    .header-coins-icon .coin-label {
        font-size: 8px;
    }
    
    .header-logout-icon svg {
        width: 18px;
        height: 18px;
    }
    
    /* Navigation bar - 5 main tabs only */
    .header-nav {
        width: 100%;
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 0;
        padding: 4px 0;
        margin: 0;
        background: #334155;
        border-top: none;
    }
    
    /* Show short labels on mobile */
    .nav-full {
        display: none !important;
    }
    
    /* Mobile nav labels */
    .nav-label {
        display: block !important;
        font-size: 11px;
        margin-top: 3px;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 500;
    }
    
    .nav-icon {
        display: block !important;
        width: 26px;
        height: 26px;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .header-nav a,
    .header-nav button {
        flex: 1;
        padding: 8px 4px;
        border-radius: 0;
        text-align: center;
        min-height: 58px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        margin: 0;
        position: relative;
        gap: 3px;
    }
    
    .header-nav a:hover,
    .header-nav button:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .header-nav a.active .nav-icon,
    .header-nav button.active .nav-icon {
        color: #22d3ee;
    }
    
    .header-nav a.active .nav-label {
        color: #22d3ee;
    }
    
    .header-nav a.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 2px;
        background: #22d3ee;
        border-radius: 1px 1px 0 0;
    }
    
    /* Hide some items on mobile to keep it clean */
    .header-nav .nav-coins,
    .header-nav .header-logout-btn {
        display: none !important;
    }
    
    /* Coins icon styling */
    .header-nav .nav-coins .coin-img-nav {
        display: none;
    }
    
    .nav-badge {
        position: absolute;
        top: 2px;
        right: 50%;
        transform: translateX(14px);
        font-size: 9px;
        padding: 2px 5px;
        margin: 0;
        min-width: 16px;
        height: 16px;
        line-height: 12px;
        border-radius: 8px;
        background: #ef4444;
        color: white;
        font-weight: 700;
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }
    
    /* Guest buttons on mobile */
    .header-nav-guest {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 8px 12px;
        background: #334155;
    }
    
    .guest-btn {
        flex: 1;
        max-width: 120px;
        text-align: center;
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 6px;
    }
}

/* Extra small mobile devices */
@media (max-width: 380px) {
    body {
        padding-top: 135px !important;
    }
    
    .logo-section {
        padding: 6px 10px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .header-icons {
        gap: 6px;
    }
    
    .header-icon {
        width: 28px;
        height: 28px;
    }
    
    .header-icon img {
        width: 18px !important;
        height: 18px !important;
    }
    
    .nav-icon {
        width: 22px;
        height: 22px;
    }
    
    .nav-label {
        font-size: 10px;
    }
    
    .header-nav a,
    .header-nav button {
        padding: 6px 2px;
        min-height: 52px;
    }
    
    .nav-badge {
        font-size: 8px;
        min-width: 14px;
        height: 14px;
        padding: 1px 4px;
    }
}