/* ========================================
   StreamBox Authentication & Membership Styles
   ======================================== */

/* ========== Authentication Forms ========== */
.streambox-auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.streambox-auth-form-wrapper {
    width: 100%;
    max-width: 480px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.streambox-auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.streambox-auth-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #fff;
}

.streambox-auth-header p {
    font-size: 16px;
    color: #94a3b8;
    margin: 0;
}

.streambox-auth-form .streambox-form-group {
    margin-bottom: 24px;
}

.streambox-auth-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.streambox-auth-form label .required {
    color: #f87171;
}

.streambox-auth-form input[type="text"],
.streambox-auth-form input[type="email"],
.streambox-auth-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.streambox-auth-form input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.streambox-auth-form input::placeholder {
    color: #64748b;
}

.streambox-auth-form small {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    margin-top: 6px;
}

.streambox-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.streambox-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #cbd5e1;
}

.streambox-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.streambox-forgot-link {
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.streambox-forgot-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.streambox-btn-block {
    width: 100%;
    margin-top: 32px;
}

.streambox-form-response {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.streambox-form-response.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid #22c55e;
    color: #22c55e;
}

.streambox-form-response.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
    color: #ef4444;
}

.streambox-auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.streambox-auth-footer p {
    font-size: 15px;
    color: #94a3b8;
    margin: 0;
}

.streambox-auth-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 700;
}

.streambox-auth-footer a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* ========== My Account Page ========== */
.streambox-account-page {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-header-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #3b82f6;
}

.user-info h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #fff;
}

.user-email {
    font-size: 15px;
    color: #94a3b8;
    margin: 0 0 12px 0;
}

.membership-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.membership-badge.membership-free {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 2px solid #6b7280;
}

.membership-badge.membership-premium {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 2px solid #3b82f6;
}

.membership-badge.membership-vip {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 2px solid #f59e0b;
}

/* ========== Account Tabs ========== */
.account-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.account-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.account-tab:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.4);
    color: #cbd5e1;
}

.account-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: #fff;
}

.account-tab .dashicons {
    font-size: 18px;
}

/* ========== Tab Panels ========== */
.account-content {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 32px 0;
    color: #fff;
}

/* ========== Stats Grid ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 2px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 12px;
}

.stat-icon .dashicons {
    font-size: 28px;
    color: #3b82f6;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 600;
}

.stat-card-membership .stat-icon {
    background: rgba(245, 158, 11, 0.15);
}

.stat-card-membership .stat-icon .dashicons {
    color: #f59e0b;
}

/* ========== Upgrade Banner ========== */
.upgrade-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    border: 2px solid #3b82f6;
    border-radius: 16px;
    margin-top: 40px;
}

.upgrade-content h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #fff;
}

.upgrade-content p {
    font-size: 15px;
    color: #cbd5e1;
    margin: 0;
}

/* ========== Membership Plans ========== */
.membership-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.membership-plan,
.current-plan-card {
    padding: 40px 32px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.membership-plan:hover {
    border-color: #3b82f6;
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.membership-plan.membership-vip,
.current-plan-card {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.plan-header {
    margin-bottom: 24px;
}

.plan-icon,
.plan-header .dashicons {
    font-size: 48px;
    margin-bottom: 16px;
    display: inline-block;
}

.membership-free .plan-icon .dashicons {
    color: #6b7280;
}

.membership-premium .plan-icon .dashicons {
    color: #3b82f6;
}

.membership-vip .plan-icon .dashicons {
    color: #f59e0b;
}

.membership-plan h3,
.current-plan-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.plan-price {
    margin: 24px 0;
}

.plan-price .price {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
}

.plan-price .period {
    font-size: 16px;
    color: #94a3b8;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 32px 0;
    text-align: left;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features .dashicons {
    color: #22c55e;
    font-size: 20px;
    flex-shrink: 0;
}

.plan-expiry {
    margin-top: 24px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    font-size: 14px;
    color: #cbd5e1;
}

.plan-expiry .days-remaining {
    color: #f59e0b;
    font-weight: 700;
}

/* ========== Watchlist & History ========== */
.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 2px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(15, 23, 42, 0.8);
}

.history-poster {
    width: 80px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.history-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-info {
    flex: 1;
}

.history-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.history-info h3 a {
    color: #fff;
    text-decoration: none;
}

.history-info h3 a:hover {
    color: #3b82f6;
}

.history-meta {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.history-meta span {
    margin-right: 16px;
}

/* ========== Profile Form ========== */
.profile-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.profile-form .streambox-form-group {
    margin-bottom: 24px;
}

.profile-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.profile-form input:focus,
.profile-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(15, 23, 42, 0.8);
}

/* ========== Button Loading State ========== */
.btn-loader .dashicons.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .streambox-auth-form-wrapper {
        padding: 32px 24px;
    }
    
    .account-header {
        flex-direction: column;
        text-align: center;
    }
    
    .account-header-content {
        flex-direction: column;
    }
    
    .account-tabs {
        flex-wrap: wrap;
    }
    
    .account-content {
        padding: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .membership-plans {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .upgrade-banner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .history-item {
        flex-direction: column;
        text-align: center;
    }
}
