/* -------------------------------------------------------------
   CoupleConnect - Styling & Design System
   ------------------------------------------------------------- */

/* Theme Variables & Tokens */
:root {
    --bg-dark: #09090c;
    --bg-panel: #111016;
    --bg-card: rgba(25, 23, 33, 0.6);
    --border-color: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(224, 169, 109, 0.15);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Colors */
    --text-primary: #f3f3f6;
    --text-secondary: #9a98a6;
    --text-muted: #5f5d6b;
    --text-error: #ff5e7e;
    
    --primary: #d93856;
    --primary-hover: #ef4565;
    --accent: #e0a96d;
    --accent-violet: #8a2be2;
    --success: #3ecf8e;
    
    /* Gradients */
    --gradient-romantic: linear-gradient(135deg, #e0a96d 0%, #d93856 50%, #8a2be2 100%);
    --gradient-glass: linear-gradient(135deg, rgba(30, 27, 40, 0.7) 0%, rgba(20, 18, 27, 0.4) 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(217, 56, 86, 0.15) 0%, rgba(0, 0, 0, 0) 70%);

    /* Sizing & Borders */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.animate-fade {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale {
    animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pulse-soft {
    animation: pulse 3s ease-in-out infinite;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Buttons */
button {
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-romantic);
    color: #fff;
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(217, 56, 86, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 56, 86, 0.5);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    padding: 12px 24px;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-accent {
    background: var(--accent);
    color: #000;
    padding: 12px 24px;
    font-weight: 600;
}

.btn-accent:hover {
    background: #f0bd82;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--text-error);
    color: #fff;
    padding: 12px 24px;
    font-weight: 600;
}

.btn-danger:hover {
    background: #ff7892;
}

.btn-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Tactile feedback on touch devices */
* {
    -webkit-tap-highlight-color: transparent;
}

button:active:not(:disabled),
.btn-primary:active:not(:disabled),
.btn-secondary:active:not(:disabled),
.btn-accent:active:not(:disabled),
.role-card:active,
.menu-item:active {
    transform: scale(0.97);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Forms styling */
.form-group {
    margin-bottom: 20px;
    width: 100%;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group textarea,
.custom-select {
    width: 100%;
    background: #151322;
    border: 1.5px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1.08rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
    font-size: 1.02rem;
}

.form-group input:focus,
.form-group textarea:focus,
.custom-select:focus {
    border-color: #f43f5e;
    background: #1c182c;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.35);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

textarea {
    resize: vertical;
    min-height: 90px;
}

/* Error/Help message styling */
.error-message {
    color: var(--text-error);
    font-size: 0.8rem;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

/* Overlays (Age Gate, Onboarding, Modals) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(9, 9, 12, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    transition: var(--transition);
}

.hidden {
    display: none !important;
}

.overlay-card {
    margin: auto;
    max-width: 550px;
    width: 100%;
    text-align: center;
    padding: 42px 36px;
    background: linear-gradient(165deg, rgba(26, 23, 38, 0.98) 0%, rgba(15, 13, 23, 0.99) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 40px rgba(244, 63, 94, 0.16);
    border-radius: 24px;
    flex-shrink: 0;
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-hero-logo {
    width: 76px;
    height: 76px;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 16px rgba(244, 63, 94, 0.55));
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.4));
    transition: transform 0.2s ease;
}

.sidebar-header:hover .sidebar-logo-icon {
    transform: scale(1.08) rotate(3deg);
}

@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(244, 63, 94, 0.4));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(244, 63, 94, 0.75)) drop-shadow(0 0 30px rgba(224, 169, 109, 0.3));
    }
}

.logo-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.glow-rose {
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(217, 56, 86, 0.6));
}

.brand-title {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.overlay-card h2 {
    font-size: 1.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.overlay-card p {
    color: #e2e8f0;
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.disclaimer {
    font-size: 0.9rem !important;
    margin-top: 18px;
    margin-bottom: 0 !important;
    color: #94a3b8 !important;
}

/* Role Selector */
.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 26px;
}

.role-card {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px 18px;
    cursor: pointer;
    background: rgba(22, 19, 32, 0.85);
    transition: var(--transition);
    text-align: center;
}

.role-card:hover {
    background: rgba(32, 28, 46, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.role-card.selected {
    background: rgba(244, 63, 94, 0.18);
    border-color: #f43f5e;
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.4);
}

.role-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    color: #f43f5e;
}

.role-card.selected .role-icon {
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.8));
}

.role-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.role-card p {
    font-size: 0.98rem !important;
    color: #cbd5e1 !important;
    line-height: 1.5;
    margin-bottom: 0 !important;
}

.btn-row {
    display: flex;
    gap: 14px;
    width: 100%;
}

.btn-row button {
    flex: 1;
}

.overlay-card .btn-primary {
    padding: 15px 28px;
    font-size: 1.08rem;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: -0.01em;
}

.overlay-card .btn-secondary {
    padding: 15px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.overlay-card .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

.overlay-card .btn-accent {
    padding: 15px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
}

/* Invite Code styling */
.invite-code-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 16px;
}

.invite-code {
    font-family: monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    flex: 1;
}

.subtext {
    font-size: 0.85rem !important;
    margin-top: 4px;
}

/* Simulator Box */
.simulator-box {
    background: rgba(224, 169, 109, 0.06);
    border: 1px dashed var(--accent);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 20px 0;
    text-align: left;
}

.simulator-box h4 {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.simulator-box p {
    font-size: 0.8rem !important;
    margin-bottom: 12px !important;
    text-align: left;
    color: var(--text-secondary);
}

/* Main App Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Navigation */
.sidebar {
    width: 260px;
    background: var(--bg-panel);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    background: var(--gradient-romantic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-menu {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.menu-item.active {
    background: var(--gradient-romantic);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(217, 56, 86, 0.2);
}

.menu-item i {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-romantic);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-family: var(--font-heading);
}

.user-info h4 {
    font-size: 0.9rem;
}

.user-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-logout:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.sidebar-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.btn-logout-topbar {
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.btn-logout-topbar:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #fff !important;
    border-color: #ef4444 !important;
}

.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 26px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #e2e8f0;
    font-size: 1.08rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.auth-tab.active {
    background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(244, 63, 94, 0.5);
    font-weight: 800;
}

/* Auth Helpers & Links */
.auth-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0 22px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-fill-demo {
    background: rgba(245, 158, 11, 0.16) !important;
    border: 1.5px solid #f59e0b !important;
    color: #fef08a !important;
    font-size: 0.96rem !important;
    font-weight: 700 !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.btn-fill-demo:hover {
    background: rgba(245, 158, 11, 0.28) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.toggle-form-auth {
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    color: #fda4af !important;
    text-decoration: underline !important;
    transition: color 0.2s ease !important;
}

.toggle-form-auth:hover {
    color: #ffffff !important;
}

.btn-demo-quick-couple {
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
    color: #ffffff !important;
    border: 1.5px solid #fda4af !important;
    padding: 13px 20px !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.4) !important;
}

.btn-demo-quick-couple:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(225, 29, 72, 0.6) !important;
}

.btn-demo-quick-single {
    background: linear-gradient(135deg, #334155, #1e293b) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    padding: 13px 20px !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.btn-demo-quick-single:hover {
    background: linear-gradient(135deg, #475569, #334155) !important;
    transform: translateY(-2px) !important;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents overflow issues */
    height: 100vh;
}

/* Top Navbar */
.topbar {
    height: 70px;
    background: rgba(17, 16, 22, 0.7);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
    z-index: 90;
}

.breadcrumb {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.badge-outline {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: rgba(224, 169, 109, 0.05);
}

.badge-success {
    background: rgba(62, 207, 142, 0.15);
    color: var(--success);
}

/* Notifications Trigger & Panel */
.notification-trigger {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.notification-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background-color: var(--primary);
    border: 1.5px solid #111016;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(225, 29, 72, 0.7);
    pointer-events: none;
    z-index: 5;
}

.notifications-dropdown {
    position: fixed;
    top: 72px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    z-index: 1500;
    padding: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(17, 16, 24, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

.notifications-dropdown.hidden {
    display: none !important;
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.notifications-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notifications-header-title h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.btn-close-notifications {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.btn-close-notifications:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.notifications-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 380px;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
    margin-bottom: 8px;
}

.notifications-list::-webkit-scrollbar {
    width: 5px;
}
.notifications-list::-webkit-scrollbar-track {
    background: transparent;
}
.notifications-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.notification-item {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.notification-item.unread {
    border-left: 3.5px solid var(--primary);
    background: rgba(225, 29, 72, 0.07);
}

.notification-item p {
    margin: 0;
    padding: 0;
    color: #f1f5f9;
    font-size: 0.85rem;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.notification-item .time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.empty-notifications {
    color: var(--text-muted);
    text-align: center;
    padding: 32px 12px;
    font-size: 0.88rem;
    font-style: italic;
}

.notifications-footer {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
    text-align: center;
}

.notifications-footer button {
    background: transparent;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.notifications-footer button:hover {
    background: rgba(224, 169, 109, 0.1);
    text-decoration: underline;
}

/* Mobile backdrop for notification panel */
.notifications-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1400;
    transition: opacity 0.25s ease;
}

.notifications-backdrop.hidden {
    display: none !important;
}

/* Toast Notification System (Non-overlapping Stacking Toasts) */
.toast-container {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 440px;
    z-index: 2500;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.toast-notification {
    pointer-events: auto;
    width: 100%;
    padding: 12px 16px;
    background: rgba(22, 20, 30, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 12px rgba(225, 29, 72, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
    animation: toastSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.25s ease;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toast-message {
    flex: 1;
    color: #f8fafc;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.toast-notification.toast-fading {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    pointer-events: none;
}

@keyframes toastSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-16px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Content View Routing */
.content-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 32px;
    position: relative;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.app-view {
    display: none;
    min-height: 100%;
    height: auto;
}

.app-view.active-view {
    display: block;
}

/* Locked States */
.locked-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
    border-color: rgba(217, 56, 86, 0.2);
}

.lock-icon {
    width: 64px;
    height: 64px;
    color: var(--primary);
    margin-bottom: 24px;
    filter: drop-shadow(0 0 10px rgba(217, 56, 86, 0.3));
}

.locked-state h2 {
    font-size: 1.7rem;
    margin-bottom: 12px;
}

.locked-state p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.locked-state .secondary-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* VIEW: DASHBOARD */
.dashboard-grid {
    display: grid;
    grid-template-columns: 370px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    width: 100%;
}

/* Calendar Card */
.calendar-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 370px;
    padding: 18px;
    box-sizing: border-box;
    overflow: hidden;
    position: sticky;
    top: 0;
    transition: all 0.25s ease;
}

/* Mobile Collapsed Summary Bar (hidden on desktop) */
.calendar-mobile-summary {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
    width: 100%;
    box-sizing: border-box;
}

.calendar-mobile-summary .summary-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.calendar-mobile-summary .summary-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.calendar-mobile-summary .summary-badge {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: rgba(244, 63, 94, 0.16);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fda4af;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.calendar-mobile-summary .summary-badge i {
    width: 18px;
    height: 18px;
}

.calendar-mobile-summary .summary-sub {
    display: block;
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-mobile-summary strong {
    font-size: 0.92rem;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.3;
}

.btn-toggle-calendar {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f1f5f9;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-toggle-calendar:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: rgba(244, 63, 94, 0.5);
}

.btn-collapse-calendar {
    display: none;
}

.calendar-full-body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.calendar-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.calendar-nav-buttons {
    display: flex;
    gap: 6px;
}

.calendar-nav-buttons .btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.calendar-nav-buttons .btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    color: #94a3b8;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    width: 100%;
}

.calendar-day {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #f1f5f9;
    cursor: pointer;
    position: relative;
    transition: all 0.16s ease;
    user-select: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.calendar-day:hover:not(.empty-day) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(244, 63, 94, 0.4);
    transform: translateY(-1px);
}

.calendar-day:active:not(.empty-day) {
    transform: scale(0.95);
}

.calendar-day.empty-day {
    background: transparent;
    border-color: transparent;
    cursor: default;
    pointer-events: none;
}

.calendar-day.today {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    color: #38bdf8;
    font-weight: 700;
}

.calendar-day.selected-day {
    border-color: #f43f5e !important;
    background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 0 14px rgba(244, 63, 94, 0.5) !important;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fb7185;
    box-shadow: 0 0 6px #fb7185;
}

.calendar-day.selected-day.has-event::after {
    background: #ffffff;
    box-shadow: 0 0 6px #ffffff;
}

/* Proposal Date Ribbon */
.proposal-date-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.14) 0%, rgba(56, 189, 248, 0.1) 100%);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.proposal-date-ribbon .ribbon-content {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.proposal-date-ribbon .ribbon-icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.proposal-date-ribbon .ribbon-text small {
    display: block;
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
}

.proposal-date-ribbon .ribbon-text strong {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.btn-ribbon-change {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.btn-ribbon-change:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(244, 63, 94, 0.4);
}

/* Planner Right Panel */
.planner-card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

#planner-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.large-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

#planner-empty-state h3 {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

#planner-empty-state p {
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.planner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.planner-header h3 {
    font-size: 1.25rem;
}

/* Erotic Situations Selector in Proponi Appuntamento */
.erotic-situations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 12px;
}

.situation-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}

.situation-card:hover {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.4);
    transform: translateY(-2px);
}

.situation-card:active {
    transform: scale(0.97);
}

.situation-card.active {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.25) 0%, rgba(139, 92, 246, 0.18) 100%);
    border-color: #f43f5e;
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.35);
}

.situation-icon {
    font-size: 1.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    line-height: 1;
}

.situation-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.situation-info strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.situation-info small {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.25;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.situation-card.active .situation-info strong {
    color: #fda4af;
}

.situation-card.active .situation-info small {
    color: #cbd5e1;
}

.badge-situation {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(244, 63, 94, 0.18);
    border: 1px solid rgba(244, 63, 94, 0.45);
    color: #fda4af;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 3px 10px;
    border-radius: 999px;
}

.badge-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 3px 10px;
    border-radius: 999px;
}

.situation-card.location-card:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.4);
}

.situation-card.location-card.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(99, 102, 241, 0.18) 100%);
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.situation-card.location-card.active .situation-info strong {
    color: #7dd3fc;
}

@media (max-width: 600px) {
    .erotic-situations-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    .situation-card {
        padding: 7px 8px !important;
        gap: 7px !important;
        border-radius: 10px !important;
    }

    .situation-icon {
        font-size: 1.3rem !important;
    }

    .situation-info strong {
        font-size: 0.78rem !important;
        line-height: 1.15 !important;
    }

    .situation-info small {
        font-size: 0.65rem !important;
        line-height: 1.15 !important;
        margin-top: 1px !important;
        white-space: normal !important;
    }
}

/* Tags selector in forms */
.tags-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-checkbox input {
    display: none;
}

.tag-checkbox span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.tag-checkbox input:checked + span {
    background: rgba(224, 169, 109, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* Custom Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 1px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Date Details View Details */
.detail-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.detail-item i {
    color: var(--accent);
    width: 20px;
    height: 20px;
}

.detail-notes-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.detail-notes-box h4,
.detail-section h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-notes-box p {
    font-size: 0.9rem;
    white-space: pre-wrap;
    color: var(--text-primary);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(224, 169, 109, 0.1);
    border: 1px solid rgba(224, 169, 109, 0.2);
    color: var(--accent);
}

.media-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.media-checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.media-checklist-item i {
    width: 16px;
    height: 16px;
}

.media-checklist-item.checked {
    color: var(--success);
}

.text-error {
    color: var(--text-error) !important;
}

/* VIEW: CHAT PRIVATA */
.chat-container {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    height: calc(100vh - 140px); /* 100vh - Topbar(70px) - Padding(70px) approx */
}

/* Chat Main */
.chat-main {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.chat-partner-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-indicator::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-indicator.online {
    color: var(--success);
}

.status-indicator.online::before {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}

.status-indicator.offline {
    color: var(--text-muted);
}

.status-indicator.offline::before {
    background: var(--text-muted);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-bubble-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 70%;
}

.chat-bubble-wrapper.sent {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-bubble-wrapper.received {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.92rem;
    line-height: 1.4;
    word-break: break-word;
}

.sent .chat-bubble {
    background: var(--gradient-romantic);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.received .chat-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-bubble-info {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Chat Input */
.chat-input-area {
    margin-top: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

#form-send-message {
    display: flex;
    gap: 12px;
}

#chat-input-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    color: #fff;
    outline: none;
}

#chat-input-field:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
}

.btn-send {
    background: var(--gradient-romantic);
    color: #fff;
    border-radius: var(--radius-md);
}

.btn-send:hover {
    transform: scale(1.05);
}

/* Scheduled drawer */
.chat-schedule-drawer {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 18px;
}

.drawer-header h3 {
    font-size: 1.1rem;
}

.scheduled-list-section {
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.scheduled-list-section h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.scheduled-messages-list {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scheduled-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scheduled-item p {
    font-size: 0.85rem;
}

.scheduled-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.scheduled-item-footer button {
    background: transparent;
    color: var(--text-error);
    font-size: 0.72rem;
}

.scheduled-item-footer button:hover {
    text-decoration: underline;
}

.empty-list {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    padding: 16px 0;
}

/* VIEW: ESPLORA */
.explore-header {
    margin-bottom: 28px;
}

.explore-header h2 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.explore-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.explore-card {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.explore-card-media {
    position: relative;
    aspect-ratio: 1.3;
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.explore-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.explore-card:hover .explore-card-media img {
    transform: scale(1.04);
}

.blurred-media img {
    filter: blur(10px);
    opacity: 0.6;
}

.premium-badge-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(9, 9, 12, 0.4);
}

.premium-badge-overlay i {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.premium-badge-overlay span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.explore-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    margin-bottom: 8px;
}

.post-category {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
}

.post-author {
    color: var(--text-muted);
}

.explore-card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.explore-card-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 18px;
    flex: 1;
}

.blurred-text {
    filter: blur(4px);
    user-select: none;
}

/* Rating box styling */
.rating-box {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-stars i {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.rating-stars i:hover,
.rating-stars i.active {
    color: var(--accent);
    fill: var(--accent);
}

.rating-average {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.premium-locked-ui {
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

/* VIEW: SUGGERIMENTI INTELLIGENTI */
.insights-header {
    margin-bottom: 28px;
}

.insights-header h2 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.insights-header p {
    color: var(--text-secondary);
}

.insights-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
}

.section-intro {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.metric-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.metric-info span {
    color: var(--text-secondary);
}

.metric-info strong {
    color: var(--text-primary);
}

.progress-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-romantic);
    border-radius: 4px;
}

/* Suggestions list */
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px !important;
}

.border-gradient {
    position: relative;
}

.border-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--gradient-romantic);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.3;
}

.suggestion-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(224, 169, 109, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.suggestion-details {
    flex: 1;
}

.suggestion-details h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.suggestion-details p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.suggestion-meta {
    display: flex;
    gap: 6px;
}

.suggestion-meta span {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

/* Topbar User Profile Pill */
.topbar-user-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 3px 12px 3px 3px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.topbar-user-pill:hover {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.4);
    transform: translateY(-1px);
}

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-romantic);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.topbar-avatar img, .avatar img, .user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.topbar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f1f5f9;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* VIEW: IMPOSTAZIONI */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 800px;
}

/* Profile Card in Settings */
.settings-profile-card {
    background: linear-gradient(135deg, rgba(30, 27, 46, 0.7) 0%, rgba(18, 16, 26, 0.85) 100%);
    border: 1px solid rgba(244, 63, 94, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 24px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.settings-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.settings-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.settings-avatar-wrap {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.settings-avatar-wrap:hover {
    transform: scale(1.04);
}

.settings-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-romantic);
    border: 3px solid rgba(244, 63, 94, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.25);
}

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

.avatar-edit-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f43f5e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f0d15;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.settings-avatar-wrap:hover .avatar-edit-badge {
    transform: scale(1.1);
}

.avatar-edit-badge i {
    width: 14px;
    height: 14px;
}

.settings-profile-titles {
    flex: 1;
    min-width: 220px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.profile-name-row h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

.badge-couple {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fda4af;
    padding: 4px 10px;
    font-size: 0.78rem;
    border-radius: 9999px;
    font-weight: 700;
}

.profile-sub-city {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 2px 0 8px 0;
}

.profile-bio-text {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin: 0;
    max-width: 600px;
}

.btn-edit-profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-meta-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    color: #e2e8f0;
    font-weight: 600;
}

.fantasy-highlight-chip {
    background: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.25);
    color: #fca5a5;
}

/* Edit Profile Modal Styles */
.edit-profile-card {
    max-width: 680px;
    width: 94%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
    padding: 28px;
    box-sizing: border-box;
}

.modal-title-with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #f43f5e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon-badge i {
    width: 22px;
    height: 22px;
}

.edit-avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.avatar-preview-container {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--gradient-romantic);
    border: 2px solid rgba(244, 63, 94, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

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

.avatar-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.avatar-buttons-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-danger-soft {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.btn-danger-soft:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
}

.avatar-hint {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fantasies-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.fantasy-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.fantasy-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(244, 63, 94, 0.35);
    transform: translateY(-1px);
}

.fantasy-pill.selected {
    background: rgba(244, 63, 94, 0.2);
    border-color: #f43f5e;
    color: #fff;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
}

.accordion-section {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    margin-top: 14px;
    transition: all 0.2s ease;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.accordion-header:hover span {
    color: #fff;
}

.settings-section h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.settings-control-group {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.settings-row .subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Switch Toggle Slider */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 34px;
    border: 1px solid var(--border-color);
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: 0.3s;
    border-radius: 50%;
}

.switch-toggle input:checked + .slider-round {
    background-color: var(--primary);
}

.switch-toggle input:checked + .slider-round:before {
    transform: translateX(22px);
    background-color: #fff;
}

.border-error {
    border-color: rgba(255, 94, 126, 0.2);
}

.btn-group {
    margin-top: 16px;
}

/* PIN digit inputs */
.pin-input-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
}

.pin-digit {
    width: 58px;
    height: 64px;
    background: #151322;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: #fff;
    outline: none;
    transition: var(--transition);
}

.pin-digit:focus {
    border-color: #f43f5e;
    background: #1c182c;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.35);
}

.pin-card {
    max-width: 440px;
    border-color: rgba(255, 255, 255, 0.22);
}

/* Premium Purchase Modal */
.premium-purchase-card {
    max-width: 400px;
    text-align: left;
    border-color: rgba(224, 169, 109, 0.3);
}

.premium-purchase-card p {
    text-align: left;
    font-size: 0.88rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.premium-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.price-box {
    background: rgba(224, 169, 109, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid rgba(224, 169, 109, 0.2);
}

.price-box .price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--accent);
    display: block;
}

.price-box .pricing-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
   Responsive Styles
   ------------------------------------------------------------- */
@media (max-width: 900px) {
    .app-layout {
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(15, 13, 22, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
    }

    .sidebar-header {
        display: none;
    }

    .sidebar-menu {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 6px 4px;
        margin: 0;
        list-style: none;
    }

    .menu-item {
        flex: 1 1 0;
        min-width: 0;
        min-height: 50px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3px;
        padding: 6px 2px;
        font-size: 0.68rem;
        text-align: center;
        border-radius: 10px;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-tap-highlight-color: transparent;
    }

    .menu-item i {
        width: 20px;
        height: 20px;
        transition: transform 0.2s ease;
    }

    .menu-item span {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1.1;
        font-weight: 600;
    }

    .menu-item.active {
        color: #f43f5e;
        background: rgba(244, 63, 94, 0.14);
        box-shadow: inset 0 1px 0 rgba(244, 63, 94, 0.4), 0 0 14px rgba(244, 63, 94, 0.22);
    }

    .menu-item.active i {
        transform: translateY(-1px) scale(1.08);
        filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.6));
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        height: 100%;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-height: 0;
        padding-bottom: 0;
    }

    .topbar {
        padding: 0 16px;
        padding-top: env(safe-area-inset-top, 0px);
        flex-shrink: 0;
        height: calc(62px + env(safe-area-inset-top, 0px));
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .content-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        padding: 16px;
        padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .calendar-card {
        padding: 14px;
        border-radius: 16px;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* When proposal or details is active on mobile and calendar is collapsed: show summary only */
    .dashboard-grid.planner-active .calendar-card.mobile-collapsed {
        padding: 10px 14px;
    }

    .dashboard-grid.planner-active .calendar-card.mobile-collapsed .calendar-mobile-summary {
        display: flex !important;
    }

    .dashboard-grid.planner-active .calendar-card.mobile-collapsed .calendar-full-body {
        display: none !important;
    }

    /* When planner is active on mobile but calendar is expanded: show calendar only + collapse button */
    .dashboard-grid.planner-active .calendar-card:not(.mobile-collapsed) .calendar-mobile-summary {
        display: none !important;
    }

    .dashboard-grid.planner-active .calendar-card:not(.mobile-collapsed) .calendar-full-body {
        display: flex !important;
    }

    .dashboard-grid.planner-active .calendar-card:not(.mobile-collapsed) .btn-collapse-calendar {
        display: inline-flex !important;
    }

    .calendar-days {
        gap: 4px;
    }

    .calendar-day {
        min-height: 38px;
        height: 38px;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .calendar-weekdays {
        font-size: 0.72rem;
        margin-bottom: 6px;
    }

    .calendar-header {
        margin-bottom: 12px;
    }

    .calendar-header h3 {
        font-size: 1.1rem;
    }

    .planner-card {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .chat-container {
        grid-template-columns: 1fr;
        height: calc(100vh - 160px);
        height: calc(100dvh - 160px);
    }

    .chat-schedule-drawer {
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        height: calc(100% - 140px);
        z-index: 50;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .topbar {
        padding: 0 12px;
        padding-top: env(safe-area-inset-top, 0px);
        height: calc(58px + env(safe-area-inset-top, 0px));
    }

    .breadcrumb {
        font-size: 0.95rem;
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-actions {
        gap: 8px;
    }

    .btn-topbar-become-couple {
        padding: 6px 11px;
        font-size: 0.78rem;
        gap: 5px;
    }

    .notification-trigger {
        width: 38px;
        height: 38px;
    }

    .notification-trigger i {
        width: 18px;
        height: 18px;
    }

    .notifications-dropdown {
        top: calc(64px + env(safe-area-inset-top, 0px)) !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 145px) !important;
        max-height: calc(100dvh - 145px) !important;
        padding: 14px !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    .notifications-list {
        max-height: calc(100vh - 240px) !important;
        max-height: calc(100dvh - 240px) !important;
        min-height: 80px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
    }

    .toast-container {
        top: calc(66px + env(safe-area-inset-top, 0px)) !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important;
        transform: none !important;
    }

    /* Mobile Overlays & Cards */
    .overlay {
        padding: 12px;
        padding-top: max(12px, env(safe-area-inset-top));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .overlay-card {
        padding: 26px 18px;
        border-radius: 18px;
    }

    .role-selector {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .role-card {
        padding: 18px 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 14px;
    }

    .chat-bubble-wrapper {
        max-width: 86%;
    }

    .single-invite-modal-card {
        padding: 20px 16px !important;
    }

    #single-invite-code-val {
        font-size: 1.35rem !important;
        word-break: break-all;
    }

    .voyeur-hero-card {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 14px;
        gap: 14px;
    }

    .voyeur-hero-left h2 {
        font-size: 1.25rem;
    }

    .voyeur-hero-left p {
        font-size: 0.88rem;
    }

    .btn-become-couple-hero {
        width: 100%;
        justify-content: center;
    }

    .calendar-days {
        gap: 4px;
    }

    .calendar-day {
        font-size: 0.8rem;
        aspect-ratio: 1;
    }

    .calendar-weekdays {
        font-size: 0.72rem;
        margin-bottom: 8px;
    }

    .lightbox-media {
        max-height: 58vh;
        max-height: 58dvh;
    }

    .lightbox-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 440px) {
    .breadcrumb {
        max-width: 95px;
    }

    .btn-topbar-become-couple span {
        display: none !important;
    }

    .btn-topbar-become-couple {
        padding: 7px 10px !important;
        border-radius: 999px !important;
    }

    .brand-hero-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .brand-title {
        font-size: 1.95rem;
    }

    .overlay-card h2 {
        font-size: 1.4rem;
    }

    .pin-input-row {
        gap: 8px;
        margin: 18px 0;
    }

    .pin-digit {
        width: 48px;
        height: 56px;
        font-size: 1.5rem;
    }

    .sidebar-menu {
        padding: 4px 2px;
    }

    .menu-item {
        padding: 5px 1px;
    }

    .menu-item span {
        font-size: 0.6rem;
    }
}

/* -------------------------------------------------------------
   Gallery & Media Vault Styles
   ------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.2);
}

.gallery-media-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.gallery-media-wrapper img,
.gallery-media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item-card:hover .gallery-media-wrapper img {
    transform: scale(1.05);
}

.gallery-badge-public {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 4px;
}

.gallery-badge-private {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(225, 29, 72, 0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 4px;
}

.gallery-item-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.gallery-item-caption {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}

.gallery-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
}

.gallery-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-anonymize-existing-media {
    background: rgba(225, 29, 72, 0.15);
    color: var(--accent-hover);
    border: 1px solid rgba(225, 29, 72, 0.3);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-anonymize-existing-media:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
}

.btn-delete-media {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-delete-media:hover {
    background: #ef4444;
    color: #fff;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lightbox-content {
    max-width: 92vw;
    max-height: 92vh;
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: auto;
}

.lightbox-media {
    max-width: 100%;
    max-height: 72vh;
    max-height: 72dvh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    object-fit: contain;
}

.lightbox-footer {
    width: 100%;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lightbox-caption {
    color: #f8fafc;
    font-size: 1rem;
    text-align: center;
}

.lightbox-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.btn-danger-custom {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-danger-custom:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

#delete-confirm-modal {
    z-index: 3000 !important;
}

#photo-mask-modal {
    z-index: 2500 !important;
}

.lightbox-close {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
    background: rgba(18, 16, 23, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.lightbox-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.dropzone.dragover {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.08) !important;
}

/* -------------------------------------------------------------
   Photo Mask & Anonymizer Editor Styles
   ------------------------------------------------------------- */
.mask-editor-card {
    max-width: 950px;
    width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: rgba(18, 16, 23, 0.95);
    border: 1px solid rgba(225, 29, 72, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(225, 29, 72, 0.15);
}

.mask-editor-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    overflow-y: auto;
    padding-right: 4px;
}

.mask-canvas-wrapper {
    background: #09090b;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 380px;
    max-height: 520px;
    cursor: crosshair;
    user-select: none;
    touch-action: none;
}

#mask-editor-canvas {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.mask-editor-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mask-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mask-palette {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.mask-palette-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-main);
}

.mask-palette-item img {
    width: 38px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.mask-palette-item span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mask-palette-item:hover {
    border-color: var(--primary);
    background: rgba(225, 29, 72, 0.12);
    transform: translateY(-2px);
}

.mask-palette-item.active {
    border-color: var(--primary);
    background: rgba(225, 29, 72, 0.22);
    box-shadow: 0 0 12px rgba(225, 29, 72, 0.35);
}

.mask-palette-item.active span {
    color: #fff;
}

.mask-controls-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.control-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: var(--text-secondary);
}

.control-row input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
    height: 30px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.control-row input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.14);
}

.control-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #f43f5e;
    border: 2px solid #ffffff;
    margin-top: -8px;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.6);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.control-row input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.18);
}

.control-row input[type="range"]::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.14);
}

.control-row input[type="range"]::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #f43f5e;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.6);
    cursor: pointer;
}

.btn-mask-trigger {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.2), rgba(190, 18, 60, 0.3));
    border: 1px dashed var(--primary);
    color: #fff;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-mask-trigger:hover {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.4);
}



/* -------------------------------------------------------------
   Studio Maschere, Filtri & Sfocatura Radiale
   ------------------------------------------------------------- */
.editor-tabs-nav {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 4px;
}

.editor-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.editor-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.editor-tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #ec4899);
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.35);
}

.editor-tab-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.editor-tab-panel.hidden {
    display: none;
}

.segmented-btn-group {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 3px;
}

.segment-btn {
    flex: 1;
    padding: 6px 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.segment-btn:hover {
    color: #fff;
}

.segment-btn.active {
    background: rgba(225, 29, 72, 0.25);
    color: #f43f5e;
    border: 1px solid rgba(225, 29, 72, 0.4);
}

.quick-btn-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.quick-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 5px 2px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.quick-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: var(--primary);
}

/* Filters Grid */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.filter-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.filter-card-preview {
    width: 100%;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    position: relative;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-card span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.filter-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    background: rgba(225, 29, 72, 0.1);
}

.filter-card.active {
    border-color: var(--primary);
    background: rgba(225, 29, 72, 0.2);
    box-shadow: 0 0 12px rgba(225, 29, 72, 0.35);
}

.filter-card.active span {
    color: #fff;
}

/* Pulsing Amber Status Dot */
.pulse-amber-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: pulse-amber 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-amber {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* ==========================================================================
   PHOTO EDITING & ANONYMIZER STUDIO - SMARTPHONE MOBILE OPTIMIZATION
   ========================================================================== */
@media (max-width: 768px) {
    #photo-mask-modal {
        padding: 0 !important;
        align-items: stretch !important;
        background-color: rgba(9, 9, 12, 0.98) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
    }

    .mask-editor-card {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: none !important;
        background: #0d0c13 !important;
        overflow: hidden !important;
    }

    .mask-modal-header {
        padding: 10px 14px !important;
        padding-top: max(10px, env(safe-area-inset-top, 10px)) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        background: rgba(18, 16, 24, 0.98) !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .mask-modal-heading {
        font-size: 1.05rem !important;
    }

    .mask-modal-heading .title-long {
        display: none !important;
    }

    .mask-modal-heading .title-short {
        display: inline !important;
        font-weight: 700 !important;
        color: #fff !important;
    }

    .studio-rotate-group button {
        padding: 6px 9px !important;
        font-size: 0.74rem !important;
        font-weight: 700 !important;
    }

    #btn-close-mask-modal {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }

    .mask-editor-subtitle {
        display: none !important;
    }

    .mask-editor-layout {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        padding: 10px 12px !important;
        padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .mask-canvas-wrapper {
        min-height: 190px !important;
        max-height: 230px !important;
        height: 210px !important;
        border-radius: 12px !important;
        flex-shrink: 0 !important;
        background: #050508 !important;
        border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
        position: relative !important;
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8) !important;
    }

    #mask-editor-canvas {
        max-height: 200px !important;
        max-width: 98% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }

    #mask-canvas-hint {
        font-size: 0.72rem !important;
        margin-top: 4px !important;
        color: #94a3b8 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
    }

    .mask-editor-sidebar {
        gap: 10px !important;
    }

    .editor-tabs-nav {
        position: sticky !important;
        top: 0 !important;
        z-index: 20 !important;
        background: rgba(13, 12, 19, 0.96) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        padding: 4px !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        margin-bottom: 4px !important;
    }

    .editor-tab-btn {
        padding: 9px 4px !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
    }

    .mask-controls-box {
        padding: 12px 10px !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        gap: 10px !important;
    }

    .control-row {
        gap: 6px !important;
    }

    .control-row label {
        font-size: 0.82rem !important;
        color: #e2e8f0 !important;
        font-weight: 600 !important;
    }

    .control-row input[type="range"] {
        height: 34px !important;
    }

    .control-row input[type="range"]::-webkit-slider-thumb {
        height: 26px !important;
        width: 26px !important;
        border: 2.5px solid #ffffff !important;
        margin-top: -9px !important;
        box-shadow: 0 2px 10px rgba(244, 63, 94, 0.7) !important;
    }

    .control-row input[type="range"]::-moz-range-thumb {
        height: 26px !important;
        width: 26px !important;
        border: 2.5px solid #ffffff !important;
        box-shadow: 0 2px 10px rgba(244, 63, 94, 0.7) !important;
    }

    .segmented-btn-group {
        padding: 4px !important;
        gap: 4px !important;
    }

    .segment-btn {
        padding: 8px 4px !important;
        font-size: 0.76rem !important;
        font-weight: 700 !important;
        min-height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .quick-btn-row {
        gap: 5px !important;
    }

    .quick-btn {
        padding: 8px 2px !important;
        font-size: 0.76rem !important;
        font-weight: 700 !important;
        min-height: 36px !important;
        border-radius: 8px !important;
    }

    .filters-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        max-height: none !important;
    }

    .filter-card {
        padding: 8px 4px !important;
        border-radius: 10px !important;
    }

    .filter-card-preview {
        height: 44px !important;
        font-size: 1.4rem !important;
        border-radius: 8px !important;
    }

    .filter-card span {
        font-size: 0.72rem !important;
        margin-top: 2px !important;
    }

    .mask-palette {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }

    .mask-palette-item {
        padding: 10px 4px !important;
        min-height: 60px !important;
        border-radius: 10px !important;
    }

    .mask-palette-item img {
        width: 42px !important;
        height: 28px !important;
    }

    .mask-palette-item span {
        font-size: 0.72rem !important;
    }

    /* Fixed Floating Bottom Action Bar */
    .editor-bottom-actions {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(14, 12, 20, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        padding: 10px 14px !important;
        padding-bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
        z-index: 1000 !important;
        display: flex !important;
        gap: 10px !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.8) !important;
        margin: 0 !important;
    }

    .editor-bottom-actions button {
        min-height: 46px !important;
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
    }
}

/* ==========================================================================
   VOYEUR & SINGLE TO COUPLE SPECIAL STYLES
   ========================================================================== */

/* Voyeur Hero Banner in Gallery */
.voyeur-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    margin-bottom: 26px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(244, 63, 94, 0.10) 100%), rgba(19, 17, 28, 0.9);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 10px 30px -8px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.voyeur-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.voyeur-hero-left {
    flex: 1;
    z-index: 1;
}

.voyeur-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.voyeur-hero-left h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.voyeur-hero-left p {
    font-size: 0.96rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
    max-width: 680px;
}

.voyeur-hero-right {
    z-index: 1;
    flex-shrink: 0;
}

.btn-become-couple-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.45);
    transition: all 0.25s ease;
}

.btn-become-couple-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.65);
    filter: brightness(1.08);
}

/* Topbar Voyeur Badge & CTA */
.badge-voyeur-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-left: 10px;
}

.btn-topbar-become-couple {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(244, 63, 94, 0.15);
    border: 1.5px solid rgba(244, 63, 94, 0.5);
    color: #fecdd3;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-topbar-become-couple:hover {
    background: rgba(244, 63, 94, 0.35);
    border-color: #f43f5e;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Sidebar Voyeur Card */
.sidebar-voyeur-card {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(244, 63, 94, 0.12) 100%), rgba(20, 18, 30, 0.7);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 14px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.sidebar-voyeur-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-sidebar-upgrade {
    width: 100%;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #fff;
    border: none;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(244, 63, 94, 0.3);
}

.btn-sidebar-upgrade:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.5);
}

/* Modal share channel hover states */
.btn-share-channel.whatsapp:hover {
    background: #20ba5a !important;
    transform: translateY(-1px);
}

.btn-share-channel.telegram:hover {
    background: #0077b5 !important;
    transform: translateY(-1px);
}

.btn-simulate-partner:hover {
    background: rgba(245, 158, 11, 0.25) !important;
    border-color: #fbbf24 !important;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .voyeur-hero-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }
    .btn-become-couple-hero {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   EJACULATION / TRIBUTE SPECIAL STYLES (SINGLE MAX 2 DAILY)
   ========================================================================== */

/* Daily quota in Voyeur Banner */
.voyeur-quota-tag {
    transition: all 0.3s ease;
}

.voyeur-quota-tag.limit-reached {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5 !important;
}

/* Photo Card Ejaculation Button */
.btn-record-ejaculation {
    background: linear-gradient(135deg, #0284c7 0%, #026ba3 100%);
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.btn-record-ejaculation:hover:not(:disabled) {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.55);
    transform: translateY(-1px) scale(1.02);
}

.btn-record-ejaculation:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
}

.btn-record-ejaculation:disabled,
.btn-record-ejaculation.quota-exhausted {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Lightbox Ejaculation Button */
.btn-ejaculation-lightbox {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.45);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
    transition: all 0.2s ease;
}

.btn-ejaculation-lightbox:hover:not(:disabled) {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.6);
    transform: translateY(-1px);
}

.btn-ejaculation-lightbox:disabled,
.btn-ejaculation-lightbox.quota-exhausted {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* Ejaculation Stat Pill in Gallery Meta */
.gallery-ejaculation-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(2, 132, 199, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
}

.badge-ejac-count {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 0.74rem;
    font-weight: 800;
    margin-left: 2px;
}

/* Splash micro-animation */
@keyframes ejac-splash {
    0% {
        transform: scale(0.85);
        filter: drop-shadow(0 0 0 rgba(56, 189, 248, 0.8));
    }
    50% {
        transform: scale(1.28);
        filter: drop-shadow(0 0 16px rgba(56, 189, 248, 1));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(56, 189, 248, 0));
    }
}

.ejac-animate-pop {
    animation: ejac-splash 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* =========================================================
   SUPER ADMIN CONTROL PANEL
   ========================================================= */
.btn-topbar-admin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(99, 102, 241, 0.22));
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    color: #bae6fd;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-topbar-admin:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.4), rgba(99, 102, 241, 0.4));
    border-color: #38bdf8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.admin-panel-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 40px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(99, 102, 241, 0.04));
}

.admin-header-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-badge-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.18);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.2);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.6rem;
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
}

.stat-sub {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 2px;
}

.admin-tabs-nav {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    overflow-x: auto;
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.admin-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.admin-tab.active {
    color: #fff;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.admin-pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 8px 14px;
    border-radius: 8px;
    min-width: 260px;
}

.admin-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.88rem;
    width: 100%;
}

.admin-table-container {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.admin-table th {
    padding: 12px 14px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.admin-actions-cell {
    display: flex;
    gap: 6px;
    align-items: center;
}

.admin-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.admin-media-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.admin-media-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.4);
}

.admin-media-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
}

.admin-media-thumb img,
.admin-media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-media-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.admin-messages-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-message-item {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-search-box {
        width: 100%;
    }
}
