/* ========================================
   SUBSCRIBER MODULE - COMPLETE STYLES
   All CSS for subscriber pages including:
   - Login, Capture, Dashboard, Media, Favourite, Trash
   - SubscriberLayout
   ======================================== */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --subscriber-bg-primary: #1a1a2e;
    --subscriber-bg-secondary: #16213e;
    --subscriber-bg-tertiary: #0f0f23;
    --subscriber-accent: #667eea;
    --subscriber-accent-secondary: #764ba2;
    --subscriber-text-primary: #ffffff;
    --subscriber-text-secondary: rgba(255, 255, 255, 0.7);
    --subscriber-text-muted: rgba(255, 255, 255, 0.5);
    --subscriber-border: rgba(255, 255, 255, 0.1);
    --subscriber-card-bg: rgba(255, 255, 255, 0.05);
    --subscriber-success: #43e97b;
    --subscriber-danger: #f5576c;
    --subscriber-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --subscriber-gradient-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
}

/* ========================================
   BASE RESETS FOR SUBSCRIBER PAGES
   ======================================== */
.login-page,
.subscriber-app,
.login-sec {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-page *,
.subscriber-app *,
.login-sec * {
    box-sizing: border-box;
}

/* ========================================
   LOGIN PAGE STYLES - FULLY RESPONSIVE
   ======================================== */
.login-page {
    min-height: 100vh;
    width: 100%;
    background: var(--subscriber-gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
    animation: backgroundPulse 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes backgroundPulse {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, -2%) rotate(1deg); }
}

.login-container {
    display: flex;
    width: 100%;
    /*max-width: 1200px;*/
    min-height: 650px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--subscriber-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

/* Left Side - Branding */
.login-branding {
    flex: 1.2;
    background: var(--subscriber-gradient);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.branding-content {
    position: relative;
    z-index: 2;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.login-branding .logo-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-branding .logo-text {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #fff;
    background-clip: unset;
    letter-spacing: -0.5px;
}

.welcome-text {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.2;
    letter-spacing: -1px;
}

.welcome-description {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0 0 40px 0;
    max-width: 400px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-weight: 500;
}

.feature-icon-wrap {
    width: 28px;
    height: 28px;
    background: rgba(67, 233, 123, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item i {
    color: var(--subscriber-success);
    font-size: 14px;
}

.branding-decoration .circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: floatCircle 20s ease-in-out infinite;
}

.circle-1 {
    width: 350px;
    height: 350px;
    top: -120px;
    right: -120px;
    animation-delay: 0s;
}

.circle-2 {
    width: 250px;
    height: 250px;
    bottom: -80px;
    left: -80px;
    animation-delay: -5s;
}

.circle-3 {
    width: 120px;
    height: 120px;
    bottom: 120px;
    right: 60px;
    animation-delay: -10s;
}

.circle-4 {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 30%;
    animation-delay: -15s;
}

@keyframes floatCircle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10px, -10px) scale(1.02); }
    50% { transform: translate(0, 15px) scale(0.98); }
    75% { transform: translate(-10px, -5px) scale(1.01); }
}

.branding-image {
    position: absolute;
    bottom: -20px;
    right: -50px;
    width: 350px;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.branding-image img {
    width: 100%;
    height: auto;
}

/* Right Side - Login Form */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    background: rgba(0, 0, 0, 0.25);
    position: relative;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
}

/* Mobile Logo - Hidden by default */
.mobile-logo {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.mobile-logo .logo-icon {
    width: 48px;
    height: 48px;
    background: var(--subscriber-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.mobile-logo .logo-text {
    font-size: 26px;
    font-weight: 700;
    background: var(--subscriber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.form-header p {
    color: var(--subscriber-text-muted);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

.form-body {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.login-page .input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-page .input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--subscriber-text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.login-page .input-group label i {
    color: var(--subscriber-accent);
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 16px 50px 16px 18px;
    background: var(--subscriber-card-bg);
    border: 2px solid var(--subscriber-border);
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-input:focus {
    border-color: var(--subscriber-accent);
    background: rgba(102, 126, 234, 0.08);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.form-input:focus + .input-icon {
    color: var(--subscriber-accent);
}

.form-input.input-error {
    border-color: var(--subscriber-danger);
    background: rgba(245, 87, 108, 0.08);
    box-shadow: 0 0 0 4px rgba(245, 87, 108, 0.15);
}

.validation-error {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--subscriber-danger);
    font-size: 13px;
    padding: 8px 12px;
    background: rgba(245, 87, 108, 0.1);
    border-radius: 8px;
    animation: shakeError 0.4s ease;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.btn-primary-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 28px;
    background: var(--subscriber-gradient);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary-login:hover:not(:disabled)::before {
    left: 100%;
}

.btn-primary-login:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.btn-primary-login:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-primary-login:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.divider {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--subscriber-border), transparent);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-google:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-google:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-google svg {
    flex-shrink: 0;
}

.btn-google .google-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #4285F4;
    border-right-color: #EA4335;
    border-bottom-color: #FBBC05;
    border-left-color: #34A853;
}

.form-footer {
    margin-top: 35px;
    text-align: center;
}

.form-footer p {
    color: var(--subscriber-text-muted);
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}

.form-footer a {
    color: var(--subscriber-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: var(--subscriber-accent-secondary);
    text-decoration: underline;
}

/* ========================================
   LOGIN PAGE RESPONSIVE STYLES
   ======================================== */

/* Large Tablets and Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .login-container {
        max-width: 900px;
        min-height: 580px;
    }

    .login-branding {
        padding: 50px 40px;
    }

    .welcome-text {
        font-size: 36px;
    }

    .welcome-description {
        font-size: 15px;
    }

    .login-form-section {
        padding: 50px 40px;
    }
}

/* Tablets (max-width: 900px) */
@media (max-width: 900px) {
    .login-page {
        padding: 15px;
    }

    .login-container {
        flex-direction: column;
        max-width: 520px;
        min-height: auto;
    }

    .login-branding {
        padding: 40px 35px;
        min-height: auto;
    }

    .logo-section {
        margin-bottom: 25px;
    }

    .login-branding .logo-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .login-branding .logo-text {
        font-size: 26px;
    }

    .welcome-text {
        font-size: 30px;
        margin-bottom: 12px;
    }

    .welcome-description {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .features-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-item {
        font-size: 13px;
        gap: 10px;
    }

    .feature-icon-wrap {
        width: 24px;
        height: 24px;
    }

    .feature-item i {
        font-size: 12px;
    }

    .branding-image {
        display: none;
    }

    .circle-1 {
        width: 200px;
        height: 200px;
        top: -80px;
        right: -80px;
    }

    .circle-2 {
        width: 150px;
        height: 150px;
        bottom: -50px;
        left: -50px;
    }

    .circle-3, .circle-4 {
        display: none;
    }

    .login-form-section {
        padding: 40px 35px;
    }

    .form-header h2 {
        font-size: 28px;
    }
}

/* Small Tablets and Large Phones (max-width: 600px) */
@media (max-width: 600px) {
    .login-page {
        padding: 0;
        align-items: flex-start;
    }

    .login-page::before {
        display: none;
    }

    .login-container {
        border-radius: 0;
        min-height: 100vh;
        max-width: 100%;
        border: none;
        box-shadow: none;
    }

    .login-branding {
        display: none;
    }

    .login-form-section {
        padding: 40px 25px;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 60px;
    }

    .login-form-container {
        max-width: 100%;
    }

    .mobile-logo {
        display: flex;
    }

    .form-header {
        margin-bottom: 30px;
    }

    .form-header h2 {
        font-size: 26px;
    }

    .form-header p {
        font-size: 14px;
    }

    .form-input {
        padding: 15px 45px 15px 16px;
        font-size: 16px;
        border-radius: 12px;
    }

    .btn-primary-login,
    .btn-google {
        padding: 15px 24px;
        font-size: 15px;
        border-radius: 12px;
    }

    .form-footer {
        margin-top: 30px;
    }

    .form-footer p {
        font-size: 12px;
    }
}

/* Mobile Phones (max-width: 400px) */
@media (max-width: 400px) {
    .login-form-section {
        padding: 30px 20px;
        padding-top: 50px;
    }

    .mobile-logo {
        gap: 10px;
        margin-bottom: 25px;
    }

    .mobile-logo .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .mobile-logo .logo-text {
        font-size: 24px;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .form-header p {
        font-size: 13px;
    }

    .form-body {
        gap: 18px;
    }

    .form-input {
        padding: 14px 40px 14px 14px;
        font-size: 15px;
    }

    .btn-primary-login,
    .btn-google {
        padding: 14px 20px;
        font-size: 14px;
    }

    .divider {
        font-size: 11px;
        gap: 12px;
    }

    .validation-error {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Landscape Mobile */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .login-page {
        padding: 10px;
        align-items: center;
    }

    .login-container {
        flex-direction: row;
        min-height: auto;
        max-width: 100%;
        border-radius: 16px;
    }

    .login-branding {
        display: flex;
        flex: 0.8;
        padding: 30px;
    }

    .logo-section {
        margin-bottom: 15px;
    }

    .welcome-text {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .welcome-description {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .features-list {
        display: none;
    }

    .login-form-section {
        padding: 30px;
        min-height: auto;
    }

    .mobile-logo {
        display: none;
    }

    .form-header {
        margin-bottom: 20px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .form-header p {
        font-size: 12px;
    }

    .form-body {
        gap: 15px;
    }

    .form-input {
        padding: 12px 40px 12px 14px;
    }

    .btn-primary-login,
    .btn-google {
        padding: 12px 20px;
    }

    .form-footer {
        margin-top: 20px;
    }
}

/* ========================================
   OTP MODAL STYLES - FULLY RESPONSIVE
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.otp-modal {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.98) 0%, rgba(15, 15, 35, 0.98) 100%);
    border: 1px solid var(--subscriber-border);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 45px 40px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--subscriber-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: rotate(90deg);
}

.otp-header {
    text-align: center;
    margin-bottom: 35px;
}

.otp-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--subscriber-accent);
    margin: 0 auto 25px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 30px 10px rgba(102, 126, 234, 0.15); }
}

.otp-header h3 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.otp-header p {
    color: var(--subscriber-text-muted);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

.email-highlight {
    color: var(--subscriber-accent) !important;
    font-weight: 600;
    word-break: break-all;
}

.otp-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.otp-inputs {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.otp-input {
    width: 65px;
    height: 70px;
    background: var(--subscriber-card-bg);
    border: 2px solid var(--subscriber-border);
    border-radius: 16px;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    outline: none;
    caret-color: var(--subscriber-accent);
}

.otp-input:focus {
    border-color: var(--subscriber-accent);
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.otp-input:not(:placeholder-shown) {
    border-color: rgba(102, 126, 234, 0.5);
}

.otp-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--subscriber-danger);
    font-size: 14px;
    padding: 10px 16px;
    background: rgba(245, 87, 108, 0.1);
    border-radius: 10px;
    width: 100%;
    animation: shakeError 0.4s ease;
}

.btn-verify {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 28px;
    background: var(--subscriber-gradient);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-verify:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.btn-verify:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-verify:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.resend-section {
    text-align: center;
    padding-top: 10px;
}

.resend-section p {
    color: var(--subscriber-text-muted);
    font-size: 14px;
    margin: 0 0 10px 0;
}

.btn-resend {
    background: none;
    border: none;
    color: var(--subscriber-accent);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.btn-resend:hover:not(:disabled) {
    color: #fff;
    background: rgba(102, 126, 234, 0.15);
}

.btn-resend:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* OTP Modal Responsive Styles */
@media (max-width: 600px) {
    .modal-overlay {
        padding: 15px;
        align-items: flex-end;
    }

    .otp-modal {
        padding: 35px 25px 40px;
        border-radius: 24px 24px 0 0;
        max-width: 100%;
        animation: slideUpMobile 0.4s ease;
    }

    @keyframes slideUpMobile {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }

    .otp-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
        margin-bottom: 20px;
    }

    .otp-header h3 {
        font-size: 22px;
    }

    .otp-header p {
        font-size: 14px;
    }

    .otp-inputs {
        gap: 10px;
    }

    .otp-input {
        width: 55px;
        height: 60px;
        font-size: 24px;
        border-radius: 12px;
    }

    .btn-verify {
        padding: 15px 24px;
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .otp-modal {
        padding: 30px 20px 35px;
    }

    .otp-inputs {
        gap: 8px;
    }

    .otp-input {
        width: 50px;
        height: 55px;
        font-size: 22px;
        border-radius: 10px;
    }

    .otp-header h3 {
        font-size: 20px;
    }

    .email-highlight {
        font-size: 13px;
    }

    .otp-body {
        gap: 20px;
    }
}

/* Landscape Mobile for OTP */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .modal-overlay {
        align-items: center;
        padding: 10px;
    }

    .otp-modal {
        padding: 25px 30px;
        border-radius: 16px;
        max-width: 450px;
    }

    .otp-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        margin-bottom: 15px;
    }

    .otp-header {
        margin-bottom: 20px;
    }

    .otp-header h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .otp-header p {
        font-size: 12px;
    }

    .otp-body {
        gap: 15px;
    }

    .otp-input {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .btn-verify {
        padding: 12px 20px;
        font-size: 14px;
    }

    .resend-section p {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .btn-resend {
        font-size: 13px;
    }
}

/* ========================================
   SUBSCRIBER LAYOUT STYLES
   ======================================== */
.subscriber-app {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--subscriber-gradient-bg);
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid var(--subscriber-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--subscriber-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--subscriber-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    background: var(--subscriber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-list {
    list-style: none;
    padding: 0 12px;
    margin: 0;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--subscriber-text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-item.active .nav-link {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: #fff;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-footer {
    padding: 20px 12px;
    border-top: 1px solid var(--subscriber-border);
}

.sidebar-footer .nav-link {
    margin-bottom: 8px;
}

.logout-link:hover {
    background: rgba(245, 87, 108, 0.1);
    color: var(--subscriber-danger);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-header {
    height: 70px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--subscriber-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--subscriber-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.user-name {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.page-wrapper {
    flex: 1;
    padding: 25px;
    padding-bottom: 100px;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(26, 26, 46, 0.95);
    border-top: 1px solid var(--subscriber-border);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--subscriber-text-muted);
    text-decoration: none;
    font-size: 11px;
    transition: all 0.3s ease;
}

.mobile-nav-item i {
    font-size: 20px;
}

.mobile-nav-item.active {
    color: var(--subscriber-accent);
}

.mobile-nav-item:hover {
    color: #fff;
}

/* ========================================
   SUBSCRIBER PAGE COMMON STYLES
   ======================================== */
.subscriber-page {
    color: #fff;
    padding: 0;
    min-height: calc(100vh - 170px);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #fff;
}

.page-subtitle {
    color: var(--subscriber-text-muted);
    margin: 0;
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-select:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-delete {
    background: rgba(245, 87, 108, 0.15);
    border: 1px solid rgba(245, 87, 108, 0.3);
    color: var(--subscriber-danger);
}

.btn-delete:hover {
    background: rgba(245, 87, 108, 0.25);
}

.btn-restore {
    background: rgba(67, 233, 123, 0.15);
    border: 1px solid rgba(67, 233, 123, 0.3);
    color: var(--subscriber-success);
}

.btn-restore:hover {
    background: rgba(67, 233, 123, 0.25);
}

/* ========================================
   GALLERY STYLES
   ======================================== */
.gallery-section {
    min-height: 400px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--subscriber-card-bg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item.selected {
    border: 3px solid var(--subscriber-accent);
}

.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.gallery-item:hover .item-overlay,
.gallery-item.selected .item-overlay {
    opacity: 1;
}

.overlay-top {
    display: flex;
    justify-content: flex-end;
}

.overlay-bottom {
    display: flex;
    justify-content: flex-end;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    pointer-events: auto;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.select-btn.active {
    background: var(--subscriber-accent);
}

.fav-btn.active {
    background: var(--subscriber-danger);
}

.fav-btn.active i {
    color: #fff;
}

/* ========================================
   LOADING & EMPTY STATES
   ======================================== */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--subscriber-text-muted);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--subscriber-border);
    border-top-color: var(--subscriber-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: var(--subscriber-card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 25px;
}

.empty-state h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #fff;
}

.empty-state p {
    color: var(--subscriber-text-muted);
    font-size: 15px;
    max-width: 300px;
    margin: 0;
}

/* ========================================
   MODAL DIALOG STYLES
   ======================================== */
.modal-dialog {
    background: var(--subscriber-gradient-bg);
    border: 1px solid var(--subscriber-border);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--subscriber-border);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.modal-header h3 i {
    color: var(--subscriber-danger);
}

.modal-body {
    padding: 25px 20px;
}

.modal-body p {
    color: var(--subscriber-text-secondary);
    font-size: 15px;
    margin: 0;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--subscriber-border);
    justify-content: flex-end;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-confirm {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 87, 108, 0.4);
}

.btn-confirm-restore {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.btn-confirm-restore:hover {
    box-shadow: 0 5px 20px rgba(67, 233, 123, 0.4);
}

.warning-text {
    color: var(--subscriber-danger) !important;
}

/* ========================================
   CAPTURE PAGE STYLES
   ======================================== */
.login-sec {
    min-height: 100vh;
    background: var(--subscriber-gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-selfies {
    width: 400px;
    max-width: 100%;
    height: 500px;
    background-color: #463c36;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

div.middle {
    position: relative;
    text-align: center;
    top: 0;
}

div.footer {
    position: absolute;
    background: #ffffff;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 15px 15px 20px 15px;
    border-radius: 0 0 12px 12px;
    box-sizing: border-box;
}

.btn-follow {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
}

.btn-follow.disabled {
    background-color: #6c757d !important;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.btn-follow.enabled {
    background-color: #0d6efd !important;
    cursor: pointer;
    pointer-events: auto;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-follow img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.profile-status {
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    padding-top: 10px;
    margin: 0;
    text-align: center;
}

.bg-cover {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 255, 0.2);
    z-index: -1;
}

img.user-pic {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    object-fit: cover;
    object-position: top;
}

/* Video Wrapper & Face Detection */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
}

.video-wrapper video {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    object-fit: cover;
    object-position: top;
    /* Default filter values - can be modified via JavaScript */
    --grayscale: 0;
    --blur: 0px;
    --hue: 0deg;
    filter: grayscale(var(--grayscale)) blur(var(--blur)) hue-rotate(var(--hue));
}

.face-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.face-oval {
    fill: none;
    stroke: rgba(0, 255, 0, 0.7);
    stroke-width: 3;
    stroke-dasharray: 10, 5;
    transition: all 0.3s ease;
}

.face-oval.detecting {
    stroke: rgba(255, 255, 0, 0.8);
    animation: pulse 1.5s infinite;
}

.face-oval.matched {
    stroke: rgba(0, 255, 0, 0.9);
    stroke-dasharray: none;
}

.face-oval.no-face {
    stroke: rgba(255, 100, 100, 0.7);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.face-status-text {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 11;
}

.face-status-text.matched {
    background: rgba(0, 128, 0, 0.8);
}

.face-status-text.no-face {
    background: rgba(200, 50, 50, 0.8);
}

/* ========================================
   LOGOUT PAGE STYLES
   ======================================== */
.logout-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--subscriber-gradient-bg);
}

.logout-page .logout-content {
    text-align: center;
}

.logout-page .logout-spinner {
    margin-bottom: 1rem;
}

.logout-page .logout-text {
    color: var(--subscriber-text-primary);
    font-size: 1rem;
}

/* ========================================
   COMPANY LOGIN PAGE STYLES
   ======================================== */
.login-sec .row.login-row {
    height: 100vh;
}

.login-sec .log-left {
    background: var(--subscriber-gradient);
}

/* ========================================
   ROUTER PAGE STYLES
   ======================================== */
.router-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--subscriber-gradient-bg);
    color: var(--subscriber-text-primary);
}

/* ========================================
   SIDEBAR OVERLAY (MOBILE)
   ======================================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Close Button (Mobile) */
.sidebar-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--subscriber-text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 10;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: flex;
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .page-wrapper {
        padding-bottom: 90px;
    }
}

/* Note: Login page responsive styles are defined in LOGIN PAGE RESPONSIVE STYLES section above */

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .page-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .page-wrapper {
        padding: 15px;
        padding-bottom: 90px;
    }

    .main-header {
        padding: 0 15px;
    }

    .user-name {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Note: Login page and OTP modal responsive styles are defined in their respective sections above */

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   BRIGHTNESS CONTROL STYLES
   ======================================== */
.brightness-control {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 15px 0;
}

.brightness-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--subscriber-text-primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.brightness-label i {
    color: #667eea;
    font-size: 16px;
}

.brightness-label span {
    color: #667eea;
    font-weight: 600;
}

.brightness-slider {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: linear-gradient(to right, #1a1a2e 0%, #667eea 50%, #764ba2 100%);
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-appearance: none;
}

.brightness-slider:hover {
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.4);
}

.brightness-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.brightness-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.7);
}

.brightness-slider::-webkit-slider-thumb:active {
    transform: scale(1.05);
}

.brightness-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
}

.brightness-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.7);
}

.brightness-slider::-moz-range-thumb:active {
    transform: scale(1.05);
}

.brightness-slider::-webkit-slider-runnable-track {
    background: transparent;
    height: 8px;
    border-radius: 10px;
}

.brightness-slider::-moz-range-track {
    background: transparent;
    height: 8px;
    border-radius: 10px;
}

.brightness-slider::-moz-range-progress {
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    height: 8px;
    border-radius: 10px;
}

/* ========================================
   LOGOUT BUTTON STYLES
   ======================================== */
.logout-link.nav-link {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.logout-link.nav-link:hover {
    background: rgba(245, 87, 108, 0.1);
    color: var(--subscriber-danger);
}

.logout-link.nav-link i {
    color: var(--subscriber-danger);
}

.logout-btn-mobile {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--subscriber-text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.logout-btn-mobile:hover {
    background: rgba(245, 87, 108, 0.1);
    border-color: rgba(245, 87, 108, 0.3);
    color: var(--subscriber-danger);
}

.logout-btn-mobile i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .logout-btn-mobile {
        padding: 6px 10px;
    }

    .logout-btn-mobile i {
        font-size: 14px;
    }
}

/* ========================================
   EVENT SELECTION PAGE STYLES
   ======================================== */
.event-selection-page {
    min-height: 100vh;
    width: 100%;
    background: var(--subscriber-gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.event-selection-container {
    width: 100%;
    max-width: 1000px;
    padding: 40px;
}

.selection-header {
    text-align: center;
    margin-bottom: 40px;
}

.selection-header .logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.selection-header .logo-icon {
    width: 50px;
    height: 50px;
    background: var(--subscriber-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.selection-header .logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--subscriber-text-primary);
    margin: 0;
}

.selection-header .page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--subscriber-text-primary);
    margin: 0 0 10px 0;
}

.selection-header .page-description {
    font-size: 16px;
    color: var(--subscriber-text-secondary);
    margin: 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.loading-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--subscriber-text-secondary);
}

.loading-container .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--subscriber-border);
    border-top-color: var(--subscriber-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.no-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--subscriber-text-secondary);
}

.no-events i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-events p {
    margin-bottom: 20px;
}

.event-card {
    background: var(--subscriber-card-bg);
    border: 1px solid var(--subscriber-border);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--subscriber-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover {
    border-color: var(--subscriber-accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
}

.event-card:hover::before {
    opacity: 1;
}

.event-card.selected {
    border-color: var(--subscriber-accent);
    background: rgba(102, 126, 234, 0.1);
}

.event-card.selected::before {
    opacity: 1;
}

.event-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.event-icon {
    width: 44px;
    height: 44px;
    background: var(--subscriber-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.event-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-status.status-active {
    background: rgba(67, 233, 123, 0.15);
    color: var(--subscriber-success);
}

.event-status.status-processing {
    background: rgba(102, 126, 234, 0.15);
    color: var(--subscriber-accent);
}

.event-status.status-ended {
    background: rgba(255, 255, 255, 0.1);
    color: var(--subscriber-text-secondary);
}

.event-status.status-error {
    background: rgba(245, 87, 108, 0.15);
    color: var(--subscriber-danger);
}

.event-status.status-none {
    background: rgba(255, 255, 255, 0.05);
    color: var(--subscriber-text-muted);
}

.event-card-body {
    margin-bottom: 20px;
}

.event-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--subscriber-text-primary);
    margin: 0 0 8px 0;
}

.event-address {
    font-size: 14px;
    color: var(--subscriber-text-secondary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-address i {
    font-size: 12px;
    color: var(--subscriber-accent);
}

.event-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--subscriber-text-secondary);
}

.stat-item i {
    font-size: 14px;
    color: var(--subscriber-text-muted);
}

.stat-item.synced i {
    color: var(--subscriber-success);
}

.stat-item.syncing i {
    color: var(--subscriber-accent);
}

.event-card-footer {
    padding-top: 16px;
    border-top: 1px solid var(--subscriber-border);
}

.btn-select {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--subscriber-border);
    border-radius: 10px;
    background: transparent;
    color: var(--subscriber-text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-select:hover {
    border-color: var(--subscriber-accent);
    background: rgba(102, 126, 234, 0.1);
}

.btn-select.selected {
    background: var(--subscriber-gradient);
    border-color: transparent;
    color: white;
}

.action-footer {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

.btn-continue {
    padding: 14px 48px;
    background: var(--subscriber-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-continue:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.btn-continue:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-continue .btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-primary {
    padding: 12px 30px;
    background: var(--subscriber-gradient);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Event Selection Responsive */
@media (max-width: 768px) {
    .event-selection-container {
        padding: 20px;
    }

    .selection-header .page-title {
        font-size: 20px;
    }

    .selection-header .page-description {
        font-size: 14px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .event-card {
        padding: 20px;
    }

    .btn-continue {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   CURRENT EVENT BADGE IN SIDEBAR
   ======================================== */
.current-event-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-top: 12px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    font-size: 12px;
    color: var(--subscriber-accent);
}

.current-event-badge i {
    font-size: 14px;
}

.current-event-badge .event-name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.switch-event-link.nav-link {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.switch-event-link.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--subscriber-accent);
}

.switch-event-link.nav-link i {
    color: var(--subscriber-accent);
}

@media (max-width: 768px) {
    .current-event-badge {
        display: none;
    }
}
