:root {
    /* Premium Agency Dark Mode Colors */
    --bg-dark: #0a0a0c;
    --bg-card: rgba(20, 20, 25, 0.7);
    --bg-input: rgba(255, 255, 255, 0.05);

    --text-primary: #ffffff;
    --text-secondary: #a0a0a5;
    --text-muted: #66666d;

    --accent-primary: #d4af37;
    /* Metallic Gold */
    --accent-hover: #f3e5ab;
    /* Light Gold */
    --accent-gradient: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);

    --danger: #ef4444;
    --success: #10b981;
    --border-color: rgba(212, 175, 55, 0.15);
    /* Subtle Gold Border */

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.2);

    --glass-blur: blur(12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* subtle background pattern for agency feel */
    background-image: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* App Container */
.app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* Auth Cards (Glassmorphism) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.3) 0%, rgba(10, 10, 12, 0.9) 100%);
    backdrop-filter: blur(5px);
    z-index: 0;
}

.auth-container {
    max-width: 420px;
    width: 100%;
    margin: auto;
    position: relative;
    z-index: 2;
}

.card {
    background-color: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.card-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.card-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.15);
}

/* Footer */
.app-footer {
    padding: 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.legal-text {
    margin-top: 1rem;
    font-size: 0.75rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

/* Alert Box */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    border-left: 4px solid;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: #fca5a5;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: #6ee7b7;
}

/* Dating App Style Profile Cards */
.profile-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.3);
}

.profile-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem;
}

.profile-card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-card-trait {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Chat Interface Placeholder Styles */
.chat-wrapper {
    display: flex;
    height: 80vh;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

/* Photo Gallery in Chat */
.chat-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-input);
}

.chat-gallery::-webkit-scrollbar {
    height: 6px;
}

.chat-gallery::-webkit-scrollbar-thumb {
    background-color: var(--accent-primary);
    border-radius: 10px;
}

.chat-gallery-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-gallery-img:hover {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

/* Mobile Bottom Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0.5rem 0;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    gap: 4px;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--accent-primary);
}

.mobile-nav-icon {
    font-size: 1.25rem;
}

/* Offline Badge */
.badge-offline {
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.badge-online {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 3rem auto;
}

/* Mobile Adjustments */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mobile-nav {
        display: flex;
    }

    .app-container {
        padding: 0.2rem;
        padding-bottom: 2.75rem !important;
        /* Space for bottom nav */
    }

    .app-footer {
        display: none;
        /* Hide footer on mobile, replace with bottom nav */
    }

    /* Hide chat gallery on mobile */
    .mobile-hidden {
        display: none !important;
    }

    .chat-wrapper-mobile {
        flex-direction: column;
    }

    .card {
        padding: 1.5rem 1rem;
    }
}