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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 60px; /* Add space for language switcher */
    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.header h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
}

.header nav {
    display: flex;
    gap: 10px;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 3px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lang-btn {
    padding: 6px 12px;
    border-radius: 16px;
    text-decoration: none;
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: transparent;
}

.lang-btn:hover {
    color: #ccc;
}

.lang-btn.active {
    background: #007bff;
    color: white;
}

/* Language switcher for auth forms - same style but adjust for form container */
.auth-form .language-switcher,
.subscription-form .language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Ensure container doesn't overlap with language switcher */
.container {
    padding-top: 60px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 120px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #333;
    color: #e0e0e0;
    border: 1px solid #555;
}

.btn-secondary:hover {
    background: #444;
    border-color: #666;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

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

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-small {
    padding: 4px 8px;
    font-size: 0.75rem;
    min-width: auto;
}

/* Forms */
.auth-form, .subscription-form {
    max-width: 400px;
    margin: 80px auto;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-form h1, .subscription-form h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #ccc;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #888;
    font-size: 0.8rem;
}

/* Messages */
.error, .success {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
}

.success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #51d76a;
}

/* Auth Links */
.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #888;
}

.auth-link a {
    color: #007bff;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard {
    max-width: 800px;
    margin: 0 auto;
}

/* Subscription Status */
.subscription-status {
    margin-bottom: 40px;
}

.subscription-status h2 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.5rem;
}

.subscription-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.subscription-card.active {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.subscription-card.cancelled {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.03);
}

.subscription-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.subscription-card .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.subscription-card .status {
    color: #28a745;
    font-weight: 500;
    margin-bottom: 5px;
}

.subscription-card .date {
    color: #888;
    font-size: 0.9rem;
}

/* Billing Cycle Styles */
.billing-cycle {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.billing-cycle-display {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.next-billing {
    color: #888;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Subscription Plans */
.subscription-plans h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.8rem;
}

/* Plan Description */
.plan-description {
    text-align: center;
    color: #ccc;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.plan-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: #555;
}

.plan-card.featured {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.plan-card.featured:hover {
    border-color: #20c997;
    box-shadow: 0 12px 40px rgba(40, 167, 69, 0.2);
}

/* Savings Badge */
.savings-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    animation: pulse 2s infinite;
}

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

.plan-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.plan-card .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.plan-card .price span {
    font-size: 1rem;
    color: #888;
    font-weight: normal;
}

/* Monthly Equivalent Price */
.monthly-equivalent {
    color: #28a745;
    font-size: 0.9rem;
    margin-top: -5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.plan-card .features {
    list-style: none;
    margin-bottom: 20px;
    text-align: left;
}

.plan-card .features li {
    padding: 8px 0;
    color: #ccc;
    position: relative;
    padding-left: 24px;
}

.plan-card .features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.plan-card .features li strong {
    color: #28a745;
}

/* Billing Info */
.billing-info {
    color: #888;
    font-size: 0.85rem;
    margin: 15px 0;
    padding-top: 15px;
    border-top: 1px solid #333;
}

/* Features List */
.features-list {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}

.features-list h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.features-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.features-list li {
    color: #ccc;
    padding: 8px 0;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.features-list li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Plan Summary */
.plan-summary {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.plan-summary h3 {
    color: #fff;
    margin-bottom: 10px;
}

.plan-summary .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
}

/* Savings Info */
.savings-info {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* PayPal Container */
#paypal-button-container {
    margin: 20px 0;
}

/* Subscription Actions */
.subscription-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
}

.subscription-actions form {
    display: inline-block;
}

.subscription-actions button {
    font-size: 0.9rem;
}

/* Cancelled Subscription Styles */
.cancelled-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.cancelled-badge {
    color: #ffc107;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.cancelled-info {
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.end-date-notice {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    color: #ff6b7a;
    font-size: 0.95rem;
}

.days-remaining {
    color: #ffc107;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 10px 0;
    padding: 8px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 6px;
    text-align: center;
}

.resubscribe-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
}

.resubscribe-message {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

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

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Back Link */
.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #007bff;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Admin Panel */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
    margin: 0;
}

/* Users Table */
.users-table {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
}

.users-table h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

th, td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #333;
    vertical-align: top;
}

th {
    background: #2a2a2a;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

td {
    color: #ccc;
}

/* Table column widths */
th:nth-child(1), td:nth-child(1) { width: 5%; }
th:nth-child(2), td:nth-child(2) { width: 12%; }
th:nth-child(3), td:nth-child(3) { width: 18%; }
th:nth-child(4), td:nth-child(4) { width: 8%; }
th:nth-child(5), td:nth-child(5) { width: 8%; }
th:nth-child(6), td:nth-child(6) { width: 9%; }
th:nth-child(7), td:nth-child(7) { width: 8%; }
th:nth-child(8), td:nth-child(8) { width: 18%; }
th:nth-child(9), td:nth-child(9) { width: 9%; }
th:nth-child(10), td:nth-child(10) { width: 5%; }

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Status Indicators */
.status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
    white-space: nowrap;
}

.status.active {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status.inactive {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status.cancelled {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Subscription Tier Indicators */
.subscription-tier {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-block;
}

.subscription-tier.monthly {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

.subscription-tier.yearly {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.no-subscription {
    color: #666;
    font-style: italic;
}

/* Subscription Period */
.subscription-period {
    font-size: 0.75rem;
    line-height: 1.2;
}

.period-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.start-date, .end-date {
    white-space: nowrap;
}

.end-date.active {
    color: #28a745;
}

.end-date.cancelled {
    color: #ffc107;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus States for Accessibility */
.btn:focus,
input:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 1400px) {
    .container {
        max-width: 100%;
        padding: 15px;
        padding-top: 60px; /* Maintain space for language switcher */
    }
    
    .admin-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .users-table {
        overflow-x: auto;
        padding: 15px;
    }
    
    table {
        min-width: 1000px;
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 6px 8px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        padding-top: 60px; /* Maintain space for language switcher */
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header nav {
        justify-content: center;
    }
    
    .auth-form, .subscription-form {
        margin: 40px auto;
        padding: 30px 20px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .users-table {
        padding: 15px;
    }
    
    table {
        font-size: 0.8rem;
        min-width: 1000px;
    }
    
    th, td {
        padding: 8px 12px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .plan-card .price {
        font-size: 2rem;
    }
    
    .features-list ul {
        grid-template-columns: 1fr;
    }
    
    .savings-badge {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .subscription-plans h2 {
        font-size: 1.5rem;
    }
    
    .plan-card {
        padding: 20px;
    }
    
    .plan-card .price {
        font-size: 1.8rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .header nav,
    .btn {
        display: none;
    }
}


/* Add these styles to your existing style.css */

/* Sponsor Management Styles */
.sponsor-management {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.user-info-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
}

.user-info-card h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.user-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.user-details p {
    color: #ccc;
    margin: 8px 0;
}

.user-details strong {
    color: #fff;
}

/* Sponsorship Status */
.sponsorship-status {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
}

.sponsorship-status h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.status-card {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.status-card.sponsored {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.status-card.not-sponsored {
    border-color: #666;
    background: rgba(102, 102, 102, 0.1);
}

.sponsored-info h3,
.not-sponsored-info h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.sponsor-type {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0;
}

.sponsor-type.unlimited {
    color: #28a745;
}

.sponsor-type.limited {
    color: #ffc107;
}

.days-remaining {
    color: #ffc107;
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(255, 193, 7, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
}

/* Sponsor Form */
.sponsor-form {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
}

.sponsor-form h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.sponsor-actions-form {
    max-width: 500px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.sponsor-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.sponsor-options .option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.sponsor-options .option:hover {
    border-color: #007bff;
}

.sponsor-options input[type="radio"] {
    margin: 0;
}

.sponsor-options label {
    color: #ccc;
    margin: 0;
    flex: 1;
}

.sponsor-options input[type="date"] {
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: #e0e0e0;
    padding: 6px 10px;
    margin-left: 10px;
}

.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* Sponsor History */
.sponsor-history {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
}

.sponsor-history h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.history-table {
    overflow-x: auto;
}

.history-table table {
    width: 100%;
    font-size: 0.9rem;
}

.action-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

.action-badge.granted {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.action-badge.extended {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.action-badge.revoked {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.unlimited-badge {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Sponsor Status in Admin Table */
.sponsor-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    min-width: 20px;
}

.sponsor-status.unlimited {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.sponsor-status.active {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.sponsor-status.expired {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.btn-sponsor {
    background: #6f42c1;
    color: white;
    border: 1px solid #6f42c1;
}

.btn-sponsor:hover {
    background: #5a32a3;
    border-color: #5a32a3;
}

/* Admin Stats Update */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Mobile Responsiveness for Sponsor Features */
@media (max-width: 768px) {
    .sponsor-management {
        padding: 15px;
    }
    
    .user-details {
        grid-template-columns: 1fr;
    }
    
    .sponsor-options .option {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sponsor-options input[type="date"] {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}




/* Password Reset Specific Styles */
.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links .auth-link {
    margin: 10px 0;
}

.auth-links .auth-link:first-child {
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.reset-code-input {
    font-size: 2rem !important;
    text-align: center;
    letter-spacing: 0.5rem;
    font-weight: bold;
    background: #2a2a2a;
    border: 2px solid #444;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    color: #007bff;
    font-family: 'Courier New', monospace;
}

.reset-code-input:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25) !important;
}

.reset-code-input::placeholder {
    color: #666;
    opacity: 0.7;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.step {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.step.inactive {
    background: #333;
    color: #888;
    border: 1px solid #444;
}

.expiry-timer {
    text-align: center;
    color: #ffc107;
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: 500;
}

.expiry-timer.expired {
    color: #dc3545;
}

/* Code Input Animation */
.reset-code-input:focus {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    }
    50% {
        border-color: #0056b3;
        box-shadow: 0 0 0 6px rgba(0, 123, 255, 0.15);
    }
    100% {
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    }
}

/* Success/Error Messages for Reset */
.auth-form .success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #51d76a;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.auth-form .error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

/* Password Strength Indicator (optional enhancement) */
.password-strength {
    margin-top: 5px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar.weak {
    background: #dc3545;
    width: 25%;
}

.password-strength-bar.medium {
    background: #ffc107;
    width: 50%;
}

.password-strength-bar.strong {
    background: #28a745;
    width: 100%;
}

/* Responsive adjustments for reset forms */
@media (max-width: 480px) {
    .reset-code-input {
        font-size: 1.5rem;
        letter-spacing: 0.3rem;
        padding: 15px;
    }
    
    .step-indicator {
        flex-direction: column;
        gap: 10px;
    }
    
    .step {
        padding: 10px 16px;
        text-align: center;
    }
}

/* Loading states for forms */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Forgot password link styling */
.auth-links a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}





/* Service Access Section */
.service-access {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.service-access h2 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #007bff;
}

.service-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.service-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-description {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.5;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-tag {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.service-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.service-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

/* Enhanced Features List */
.features-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.feature-category {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
}

.feature-category h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-category ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-category li {
    color: #ccc;
    padding: 8px 0;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    border-bottom: 1px solid #333;
}

.feature-category li:last-child {
    border-bottom: none;
}

.feature-category li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Service Access Responsive */
@media (max-width: 768px) {
    .service-access {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-features {
        gap: 6px;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .features-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-category {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    .service-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Enhanced Plan Cards with Service Info */
.plan-card .features li.service-feature {
    color: #007bff;
    font-weight: 500;
}

.plan-card .features li.service-feature::before {
    color: #007bff;
}

/* Service Status Indicators */
.service-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.service-status.available {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.service-status.coming-soon {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Premium Access Highlight */
.has-premium-access .service-access {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.has-premium-access .service-access::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

/* Loading States for Service Buttons */
.service-btn.loading {
    position: relative;
    color: transparent;
}

.service-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* Service Card Animations */
.service-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(2) {
    animation-delay: 0.1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tooltip for Service Links */
.service-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

/* Service Access for Different User Types */
.sponsored-user .service-access {
    border-color: #6f42c1;
    background: rgba(111, 66, 193, 0.05);
}

.subscription-user .service-access {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}