/* ==========================================================================
   MAIN STYLES - MyMenu Application
   ========================================================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8e8d8 0%, #f0d5c4 100%);
    min-height: 100vh;
    color: #5a4a3a;
    line-height: 1.6;
    /* Ensure proper scrolling behavior */
    height: auto;
    overflow-y: auto;
    /* Touch optimization */
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    /* Премахваме top padding за да се разпъне хедърът */
    /* Ensure proper layout flow */
    /* min-height: calc(100vh - 100px); */
    /* Removed to allow natural content expansion */
    display: flex;
    flex-direction: column;
}

/* Main content area */
main {
    flex: 1;
    width: 100%;
    overflow: visible;
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */

.header {
    background: white;
    border-radius: 0 0 20px 20px;
    /* Премахваме border-radius отгоре за да се разпъне до краищата */
    padding: 20px 30px;
    margin: 0 0 30px 0;
    box-shadow: 0 8px 32px rgba(212, 165, 116, 0.15), 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

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

.logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #d4a574, #c49464);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: bold;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    background: linear-gradient(135deg, #d4a574, #c49464);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text .subtitle {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* User Section Container */
.user-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* User Info Card */
.user-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    min-width: 220px;
}

.user-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(102, 126, 234, 0.15);
}

.user-avatar {
    width: 48px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.15) !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    justify-content: flex-start;
    min-width: 0;
    padding-top: 2px;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* User Status Badge */
.user-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 1px;
}

.user-status.active {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.user-status.trial {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.user-status.warning {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.user-status.expired {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.user-status.premium {
    background: rgba(147, 51, 234, 0.1);
    color: #7c3aed;
    border: 1px solid rgba(147, 51, 234, 0.2);
}

.user-exit-btn {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.15);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(107, 114, 128, 0.08);
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    position: relative;
}

.user-exit-btn:hover {
    background: rgba(107, 114, 128, 0.15);
    color: #4b5563;
    border-color: rgba(107, 114, 128, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.12);
}

.user-exit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(107, 114, 128, 0.08);
}

/* Tooltip for exit button */
.user-exit-btn::after {
    content: 'Изход';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.user-exit-btn:hover::after {
    opacity: 1;
}

/* ==========================================================================
   NAVIGATION TABS
   ========================================================================== */

.nav-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f5f9;
    overflow-x: auto;
    padding-bottom: 5px;
}

/* Navigation tabs styles moved to ui-kit.css to avoid conflicts */

.nav-tab.hidden {
    display: none;
}

/* Locked Tab Styles */
.nav-tab.locked {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f3f4f6;
    color: #9ca3af;
    pointer-events: all;
    /* Allow click to trigger shake */
}

.nav-tab.locked:hover {
    background-color: #f3f4f6;
    transform: none;
    box-shadow: none;
}

.nav-tab.locked .lock-icon {
    font-size: 0.8em;
    margin-left: 5px;
    color: #6b7280;
}

/* Shake Animation for Locked Tabs */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

.nav-tab.shake {
    animation: shake 0.4s ease-in-out;
}

/* ==========================================================================
   CONTENT WRAPPER
   ========================================================================== */

.content-wrapper {
    /* Removed flex properties that were causing scroll issues */
    width: 100%;
}



.tab-content.active {
    display: block;
}

.tab-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #64748b;
}

/* ==========================================================================
   LOGIN PAGE STYLES - MODERN REDESIGN
   ========================================================================== */

.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    background:
        linear-gradient(135deg, rgba(248, 232, 216, 0.64) 0%, rgba(240, 213, 196, 0.64) 100%),
        url('https://images.unsplash.com/photo-1758810740742-adae7452d147?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    animation: backgroundSlideAll 144s ease-in-out infinite;
    transition: background-image 3s ease-in-out;
}

.login-page-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Subtle animated background elements */
.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(193, 150, 83, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(212, 165, 116, 0.01) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(45deg, transparent 49%, rgba(212, 165, 116, 0.01) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(193, 150, 83, 0.01) 50%, transparent 51%);
    background-size: 60px 60px;
    animation: slide 30s linear infinite;
    pointer-events: none;
    opacity: 0.5;
}

/* Background image slideshow - all 6 images with smooth transitions */
@keyframes backgroundSlideAll {

    0%,
    16.66% {
        background-image:
            linear-gradient(135deg, rgba(248, 232, 216, 0.64) 0%, rgba(240, 213, 196, 0.64) 100%),
            url('https://images.unsplash.com/photo-1758810740742-adae7452d147?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    }

    16.67%,
    33.33% {
        background-image:
            linear-gradient(135deg, rgba(248, 232, 216, 0.64) 0%, rgba(240, 213, 196, 0.64) 100%),
            url('https://cdn.pixabay.com/photo/2023/12/01/10/56/pasta-8423489_1280.jpg');
    }

    33.34%,
    50% {
        background-image:
            linear-gradient(135deg, rgba(248, 232, 216, 0.64) 0%, rgba(240, 213, 196, 0.64) 100%),
            url('https://cdn.pixabay.com/photo/2021/09/20/06/55/spaghetti-6639970_1280.jpg');
    }

    50.01%,
    66.66% {
        background-image:
            linear-gradient(135deg, rgba(248, 232, 216, 0.64) 0%, rgba(240, 213, 196, 0.64) 100%),
            url('https://images.unsplash.com/photo-1555939594-58d7cb561ad1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1974&q=80');
    }

    66.67%,
    83.33% {
        background-image:
            linear-gradient(135deg, rgba(248, 232, 216, 0.64) 0%, rgba(240, 213, 196, 0.64) 100%),
            url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    }

    83.34%,
    100% {
        background-image:
            linear-gradient(135deg, rgba(248, 232, 216, 0.64) 0%, rgba(240, 213, 196, 0.64) 100%),
            url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    }
}



@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes slide {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(60px) translateY(60px);
    }
}

.login-container {
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    animation: fadeIn 1s ease-out 0.2s both;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d4a574, #c19653);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow:
        0 4px 20px rgba(212, 165, 116, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.logo:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow:
        0 8px 30px rgba(212, 165, 116, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.logo:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.logo-text h1 {
    color: #2d3748;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    text-align: left;
}

.logo-text .subtitle {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: -9px;
}

.login-form-container {
    background: #ffffff !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 24px;
    padding: 40px 35px;
    margin-bottom: 25px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(212, 165, 116, 0.2);
    animation: slideUpFade 1s ease-out 0.4s both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 100;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-form-container h2 {
    color: #3a3a3a;
    margin-bottom: 12px;
    font-size: 1.8rem;
    font-weight: 600;
}

.login-subtitle {
    color: #6b6b6b;
    margin-bottom: 18px;
    font-size: 0.95rem;
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Login Form Specific Styles */
.login-form .form-group {
    margin-bottom: 0;
}

.login-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #6b6b6b;
    font-size: 15px;
    font-weight: 500;
}

.login-form .form-group label i {
    color: #d4a574;
    font-size: 16px;
}

.login-form .form-input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(212, 165, 116, 0.15);
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 16px;
    color: #3a3a3a;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.login-form .form-input:focus {
    border-color: #d4a574;
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.login-form .form-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Input with icon styling */
.login-form .form-group.with-icon {
    position: relative;
}

.login-form .form-group.with-icon .input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-top: 16px;
    /* Account for label height */
}

.login-form .form-group.with-icon .input-icon:hover {
    color: #d4a574;
}

.login-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, #d4a574, #c19653);
    border: none;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 6px 20px rgba(212, 165, 116, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-transform: none;
    letter-spacing: 0.3px;
    min-height: 56px;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.login-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active::after {
    width: 300px;
    height: 300px;
}

.login-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 35px rgba(212, 165, 116, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #d4a574, #b8834a);
}

.login-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Remember Me Checkbox Styles */
.remember-me-container {
    display: flex;
    align-items: center;
}

.remember-me-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #6b6b6b;
    user-select: none;
    transition: color 0.3s ease;
}

.remember-me-label:hover {
    color: #d4a574;
}

.remember-me-checkbox {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.remember-me-checkbox:checked+.checkmark {
    background: linear-gradient(135deg, #d4a574, #c19653);
    border-color: #d4a574;
}

.remember-me-checkbox:checked+.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me-text {
    font-weight: 500;
}

/* Login footer removed - using app-footer instead */

/* ==========================================================================
   MODERN FORM STYLES FOR LOGIN
   ========================================================================== */

.form-group {
    position: relative;
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #d4a574;
    font-size: 1rem;
}

.login-form .form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #2d3748;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.login-form .form-input:focus {
    outline: none;
    border-color: #d4a574;
    background: white;
    box-shadow:
        0 0 0 4px rgba(212, 165, 116, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-2px) scale(1.01);
}

.login-form .form-input:hover:not(:focus) {
    border-color: rgba(212, 165, 116, 0.3);
    transform: translateY(-1px);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.login-form .form-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

/* Floating label effect */
.form-group.floating {
    position: relative;
}

.form-group.floating label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: transparent;
    padding: 0 8px;
    color: #a0aec0;
    font-weight: 400;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.form-group.floating .form-input:focus+label,
.form-group.floating .form-input:not(:placeholder-shown)+label {
    top: 0;
    font-size: 0.85rem;
    color: #d4a574;
    background: white;
    font-weight: 600;
}

/* Input icons */
.form-group.with-icon {
    position: relative;
}

.form-group.with-icon .input-icon {
    position: absolute;
    right: 16px;
    top: 69%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.form-group.with-icon .form-input:focus~.input-icon {
    color: #d4a574;
}

/* Password visibility toggle */
.password-toggle {
    cursor: pointer;
    user-select: none;
}

.password-toggle:hover {
    color: #d4a574;
}

/* Error states */
.form-group.error .form-input {
    border-color: #e53e3e;
    background: #fed7d7;
}

.form-group.error label {
    color: #e53e3e;
}

.form-group .error-text {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Success states */
.form-group.success .form-input {
    border-color: #38a169;
    background: #c6f6d5;
}

.form-group.success label {
    color: #38a169;
}

/* ==========================================================================
   RESPONSIVE LOGIN DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .login-page {
        padding: 15px;
        background-attachment: scroll;
        /* Better performance on mobile */
        animation: none;
        /* Disable animation on mobile for better performance */
        background:
            linear-gradient(135deg, rgba(248, 232, 216, 0.68) 0%, rgba(240, 213, 196, 0.68) 100%),
            url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center center;
        background-size: cover;
    }

    .login-container {
        max-width: 100%;
    }

    .login-form-container {
        padding: 35px 25px;
        border-radius: 20px;
        margin-bottom: 20px;
    }

    .login-form-container h2 {
        font-size: 1.7rem;
    }

    .logo {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

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

    .login-form .form-input {
        padding: 14px 18px;
        font-size: 16px;
        /* Prevent iOS zoom */
    }

    .login-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 10px;
    }

    .login-form-container {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .login-form-container h2 {
        font-size: 1.5rem;
    }

    .logo-section {
        flex-direction: column;
        gap: 10px;
    }

    .logo-text h1 {
        font-size: 1.6rem;
    }

    .logo-text .subtitle {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   LOADING ANIMATIONS FOR LOGIN
   ========================================================================== */

.login-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    color: #d4a574;
}

.login-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #d4a574;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.login-loading p {
    margin: 0;
    font-weight: 500;
    color: #4a5568;
}

/* Error message styling */
.error-message {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #c53030;
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    border: 1px solid #fc8181;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.error-message i {
    font-size: 1.1rem;
    color: #e53e3e;
}

/* ==========================================================================
   LOADING AND ERROR STATES
   ========================================================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.loading-state {
    text-align: center;
    padding: 20px;
    color: #64748b;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #d4a574;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 165, 116, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hamburger-menu:hover {
    background: rgba(212, 165, 116, 0.1);
    transform: scale(1.05);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: linear-gradient(135deg, #d4a574, #c49464);
    margin: 2px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 0;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px 12px 20px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.05) 0%, rgba(212, 165, 116, 0.02) 100%);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.mobile-nav-close {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 16px;
    color: #ef4444;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
    transform: scale(1.1);
}

/* Header User Info - Compact version for mobile header */
.header-user-info {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.08) 0%, rgba(212, 165, 116, 0.03) 100%);
    border-radius: 8px;
    border: 1px solid rgba(212, 165, 116, 0.15);
    box-shadow: 0 1px 4px rgba(212, 165, 116, 0.1);
    max-width: 120px;
}

/* Show header user info and hide desktop user section on screens 821px and smaller */
@media (max-width: 821px) {
    .header-user-info {
        display: flex;
        flex: 1;
        justify-content: center;
    }

    .user-section {
        display: none;
    }
}

.header-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a574, #c49464);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 1px 4px rgba(212, 165, 116, 0.3);
    flex-shrink: 0;
}

.header-user-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.header-user-name {
    font-size: 10px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-user-status {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 8px;
    color: #059669;
    font-weight: 600;
    line-height: 1;
}

.header-user-status i {
    font-size: 6px;
    animation: pulse 2s infinite;
}

.mobile-user-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.08) 0%, rgba(212, 165, 116, 0.03) 100%);
    border-radius: 8px;
    border: 1px solid rgba(212, 165, 116, 0.15);
    margin-left: 20px;
    margin-right: 20px;
    box-shadow: 0 1px 4px rgba(212, 165, 116, 0.1);
}

.mobile-user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a574, #c49464);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(212, 165, 116, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.mobile-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.mobile-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-user-role {
    display: none;
    /* Hide role to save space */
}

.mobile-user-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #059669;
    font-weight: 600;
    line-height: 1;
}

.mobile-user-status i {
    font-size: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.mobile-nav-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.mobile-nav-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 10px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mobile-nav-tab:hover {
    background: rgba(212, 165, 116, 0.1);
    border-color: rgba(212, 165, 116, 0.3);
    color: #d4a574;
    transform: translateX(5px);
}

.mobile-nav-tab.active {
    background: linear-gradient(135deg, #d4a574, #c49464);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.mobile-nav-tab .icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Locked Mobile Nav Tab Styles */
.mobile-nav-tab.locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(243, 244, 246, 0.9);
    color: #9ca3af;
    pointer-events: all;
    /* Allow click to trigger shake */
}

.mobile-nav-tab.locked:hover {
    background: rgba(243, 244, 246, 0.9);
    border-color: rgba(212, 165, 116, 0.15);
    color: #9ca3af;
    transform: none;
}

.mobile-nav-tab.locked .icon {
    opacity: 0.6;
}

.mobile-nav-tab.locked .lock-icon {
    font-size: 0.8em;
    margin-left: 5px;
    color: #6b7280;
}

/* Shake Animation for Locked Mobile Nav Tabs */
.mobile-nav-tab.shake {
    animation: shake 0.5s;
}

.mobile-exit-btn {
    margin: 20px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: calc(100% - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.mobile-exit-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Hide subtitle for screens between 480px and 515px */
@media (max-width: 515px) and (min-width: 481px) {
    .logo-text .subtitle {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px 15px 15px;
        /* Премахваме top padding за 768px */
    }

    .header {
        padding: 15px 20px;
        margin: 0 -15px 30px -15px;
        /* Отрицателен margin за 768px */
        border-radius: 0 0 20px 20px;
        /* Премахваме border-radius отгоре */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger-menu {
        display: flex;
        z-index: 1001;
    }

    .mobile-nav-overlay,
    .mobile-nav {
        display: block;
    }

    /* Hide desktop navigation on mobile */
    .user-section {
        display: none !important;
    }

    .nav-tabs {
        display: none !important;
    }

    .logo-section {
        flex: 0 0 auto;
    }

    /* Ensure mobile menu is above everything */
    .mobile-nav-overlay.active,
    .mobile-nav.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px 10px 10px;
        /* Премахваме top padding за 480px */
    }

    .header {
        padding: 12px 15px;
        gap: 15px;
        margin: 0 -10px 20px -10px;
        /* Отрицателен margin за 480px */
        border-radius: 0 0 18px 18px;
        /* По-малък border-radius за 480px */
    }

    .logo-section {
        gap: 1px;
        align-items: baseline;
        flex: 0 0 auto;
    }

    .logo {
        width: 45px;
        height: 45px;
        font-size: 20px;
        background: linear-gradient(135deg, #d4a574, #c49464);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: all 0.3s ease;
    }

    .logo:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(212, 165, 116, 0.4);
    }

    .logo-text h1 {
        font-size: 1.5rem;
        font-weight: 700;
        background: linear-gradient(135deg, #d4a574, #c49464);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin: 0;
        line-height: 1.2;
    }

    .logo-text .subtitle {
        display: none;
        /* Hide subtitle on mobile */
    }

    .user-info {
        min-width: auto;
        max-width: 100%;
        padding: 10px 12px;
    }

    .user-avatar {
        width: 40px !important;
        height: 50px !important;
        font-size: 1rem !important;
    }

    .user-name {
        font-size: 0.85rem;
    }

    .user-role {
        font-size: 0.7rem;
    }

    .nav-tabs {
        flex-direction: column;
        gap: 4px;
    }

    .nav-tab {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .login-form-container {
        padding: 30px 20px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 8px 8px 8px;
        /* Премахваме top padding и на мобилни */
    }

    .header {
        padding: 10px 12px;
        gap: 12px;
        margin: 0 -8px 15px -8px;
        /* Отрицателен margin за мобилни */
        border-radius: 0 0 15px 15px;
        /* По-малък border-radius за мобилни */
    }

    .logo-section {
        gap: 10px;
        align-items: center;
        flex: 0 0 auto;
    }

    .logo {
        width: 42px;
        height: 42px;
        font-size: 18px;
        background: linear-gradient(135deg, #d4a574, #c49464);
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(212, 165, 116, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: all 0.3s ease;
    }

    .logo:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 14px rgba(212, 165, 116, 0.4);
    }

    .logo-text h1 {
        font-size: 1.3rem;
        font-weight: 700;
        background: linear-gradient(135deg, #d4a574, #c49464);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin: 0;
        line-height: 1.2;
    }

    .logo-text .subtitle {
        display: none;
        /* Hide subtitle on small mobile */
    }

    .user-info {
        padding: 8px 10px;
        gap: 6px;
    }

    .user-avatar {
        width: 35px !important;
        height: 45px !important;
        font-size: 0.9rem !important;
    }

    .user-name {
        font-size: 0.8rem;
    }

    .user-role {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    .user-status {
        font-size: 0.6rem;
        padding: 1px 4px;
    }

    .nav-tab {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.app-footer {
    width: 100%;
    margin-top: 50px;
    padding: 12px 0;
    border-top: 2px solid rgba(212, 165, 116, 0.3);
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.65) 0%,
            rgba(255, 255, 255, 0.80) 25%,
            rgba(248, 250, 252, 0.90) 60%,
            rgba(241, 245, 249, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 -2px 20px rgba(0, 0, 0, 0.08),
        0 -1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 10;
    clear: both;
    /* Ensure footer is always accessible */
    flex-shrink: 0;
    margin-bottom: 0;
    /* Removed bottom margin to stick to bottom */
    min-height: 45px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-content p {
    margin: 0;
    line-height: 1.4;
}

.footer-version {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 5px;
}

.footer-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #d4a574;
    opacity: 1;
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        font-size: 0.8rem;
        padding: 0 15px;
    }

    .footer-link {
        display: block;
        margin: 5px 0;
    }
}

/* ==========================================================================
   MODAL STYLES
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.modal {
    /* Base styles - width/height set by modal.js inline styles */
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.modal-form {
    padding: 24px;
}

.form-grid {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-help {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.price-conversion {
    font-size: 0.9rem;
    color: #059669;
    font-weight: 500;
    margin-top: 4px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.modal-actions .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.modal-actions .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.modal-actions .btn-secondary:hover {
    background: #e5e7eb;
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, #d4a574, #c49464);
    color: white;
}

.modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, #c49464, #b48454);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        margin: 20px;
    }

    .modal-header,
    .modal-form {
        padding: 20px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   ACCESS WARNING CARD STYLES
   ========================================================================== */

.access-warning-card {
    background: linear-gradient(135deg, #fef3cd 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    margin: 0 0 20px 0;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
    animation: slideDown 0.3s ease-out;
}

.access-warning-card.critical {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.access-warning-card.expired {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #6b7280;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.15);
}

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

.warning-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    font-size: 18px;
}

.access-warning-card.critical .warning-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.access-warning-card.expired .warning-icon {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.warning-text {
    flex: 1;
}

.warning-title {
    font-weight: 600;
    font-size: 16px;
    color: #92400e;
    margin-bottom: 4px;
}

.access-warning-card.critical .warning-title {
    color: #991b1b;
}

.access-warning-card.expired .warning-title {
    color: #374151;
}

.warning-message {
    font-size: 14px;
    color: #a16207;
    line-height: 1.4;
}

.access-warning-card.critical .warning-message {
    color: #7f1d1d;
}

.access-warning-card.expired .warning-message {
    color: #4b5563;
}

.warning-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #a16207;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.warning-close:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.access-warning-card.critical .warning-close {
    color: #7f1d1d;
}

.access-warning-card.critical .warning-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

.access-warning-card.expired .warning-close {
    color: #4b5563;
}

.access-warning-card.expired .warning-close:hover {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .access-warning-card {
        margin: 0 0 15px 0;
        padding: 12px 16px;
    }

    .warning-content {
        gap: 12px;
    }

    .warning-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .warning-title {
        font-size: 15px;
    }

    .warning-message {
        font-size: 13px;
    }
}

/* ==========================================================================
   TOUCH-OPTIMIZED RESPONSIVE DESIGN
   ========================================================================== */

/* Bottom navigation - hidden by default, shown only on mobile/tablet */
.bottom-nav {
    display: none;
}

/* Locked Bottom Nav Item Styles */
.bottom-nav-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: all;
    /* Allow click to trigger shake */
}

.bottom-nav-item.locked .bottom-nav-icon {
    opacity: 0.6;
}

.bottom-nav-item.locked .bottom-nav-label {
    color: #9ca3af;
}

.bottom-nav-item.locked .lock-icon {
    font-size: 0.7em;
    margin-left: 4px;
    color: #6b7280;
}

/* Shake Animation for Locked Bottom Nav Items */
.bottom-nav-item.shake {
    animation: shake 0.5s;
}

/* Mobile-first approach with touch optimization */
@media (max-width: 767px) {

    /* Mobile Portrait: 320px - 767px */
    body {
        padding-bottom: 80px;
        /* Space for bottom nav */
    }

    .container {
        padding: 0 12px 12px 12px;
        margin-bottom: 80px;
        /* Additional space for bottom nav */
    }

    .header {
        padding: 12px 16px;
        margin: 0 -12px 20px -12px;
        border-radius: 0 0 16px 16px;
    }

    /* Touch-friendly form elements */
    input,
    button,
    select,
    textarea {
        min-height: 48px;
        font-size: 16px;
        /* Prevent iOS zoom */
        padding: 12px 16px;
    }

    /* Touch-friendly buttons */
    .btn,
    .nav-tab,
    .touch-target {
        min-height: 60px;
        min-width: 60px;
        padding: 12px 16px;
        margin: 6px;
    }

    /* Hide desktop navigation */
    .nav-tabs {
        display: none !important;
    }

    /* Hide footer on mobile - bottom nav is used instead */
    .app-footer {
        display: none !important;
    }

    /* Show bottom navigation */
    .bottom-nav {
        display: block;
    }

    /* Content spacing for bottom nav */
    .content-wrapper {
        padding-bottom: 100px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {

    /* Tablet Portrait: 768px - 1023px */
    body {
        padding-bottom: 80px;
        /* Space for bottom nav */
    }

    .container {
        padding: 0 20px 20px 20px;
        margin-bottom: 80px;
    }

    .header {
        padding: 16px 24px;
        margin: 0 -20px 24px -20px;
        border-radius: 0 0 20px 20px;
    }

    /* Touch-friendly elements for tablet */
    input,
    button,
    select,
    textarea {
        min-height: 52px;
        font-size: 16px;
        padding: 14px 18px;
    }

    .btn,
    .touch-target {
        min-height: 60px;
        min-width: 60px;
        padding: 14px 18px;
        margin: 8px;
    }

    /* Show bottom navigation on tablet too */
    .bottom-nav {
        display: block;
    }

    /* Hide desktop tabs on tablet */
    .nav-tabs {
        display: none !important;
    }

    /* Hide footer on tablet - bottom nav is used instead */
    .app-footer {
        display: none !important;
    }

    .content-wrapper {
        padding-bottom: 100px;
    }
}

@media (min-width: 1024px) {
    /* Tablet Landscape & Desktop: 1024px+ */

    /* Hide bottom navigation on desktop */
    .bottom-nav {
        display: none;
    }

    /* Show desktop navigation */
    .nav-tabs {
        display: flex !important;
    }



    /* Desktop touch targets can be smaller */
    .btn,
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }

    /* No bottom padding needed */
    body {
        padding-bottom: 0;
    }

    .container {
        margin-bottom: 0;
    }

    .content-wrapper {
        padding-bottom: 0;
    }
}

/* ==========================================================================
   TOUCH INTERACTION IMPROVEMENTS
   ========================================================================== */

/* Improve touch feedback */
.touch-target:active,
.btn:active,
.menu-card:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Better focus states for accessibility */
.touch-target:focus,
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(212, 165, 116, 0.5);
    outline-offset: 2px;
}

/* Prevent text selection on touch elements */
.touch-target,
.btn,
.menu-card,
.bottom-nav-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Optimize for touch scrolling */
.content-wrapper,
.menu-grid {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}

/* ==========================================================================
   LOADING STATES & ANIMATIONS
   ========================================================================== */

/* Skeleton loading for cards */
.skeleton-card {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 16px;
    height: 120px;
    margin-bottom: 16px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Limit transition duration for performance */
.fast-transition {
    transition-duration: 0.1s;
}

.slow-transition {
    transition-duration: 0.3s;
}