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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Authentication Pages */
.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, #2d5a27 0%, #4CAF50 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.auth-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.auth-header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.auth-form {
    padding: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group label i {
    margin-right: 8px;
    color: #4CAF50;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.auth-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.auth-button:hover {
    transform: translateY(-2px);
}

.auth-links {
    padding: 20px 30px;
    background: #f8f9fa;
    text-align: center;
}

.auth-links a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

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

/* Benefits Section */
.benefits-section {
    padding: 20px 30px;
    background: #f0f8f0;
}

.benefits-section h4 {
    color: #2d5a27;
    margin-bottom: 15px;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    padding: 8px 0;
    color: #555;
}

.benefits-list i {
    color: #4CAF50;
    margin-right: 10px;
}

/* Demo Section */
.demo-section {
    padding: 20px 30px;
    background: #e3f2fd;
    border-top: 1px solid #ddd;
}

.demo-section h4 {
    color: #1976d2;
    margin-bottom: 15px;
}

.demo-accounts {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-family: monospace;
    font-size: 14px;
}

.demo-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    margin: 20px 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Subscription Page */
.subscription-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.subscription-header {
    background: linear-gradient(135deg, #2d5a27 0%, #4CAF50 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.subscription-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.status-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.status-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.status-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.days-remaining {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px 25px;
    border-radius: 25px;
    display: inline-block;
}

/* Status Classes */
.status-trial {
    border-left: 5px solid #ffc107;
}

.trial-icon {
    color: #ffc107;
}

.trial-remaining {
    background: #fff3cd;
    color: #856404;
}

.status-active {
    border-left: 5px solid #28a745;
}

.active-icon {
    color: #28a745;
}

.active-remaining {
    background: #d4edda;
    color: #155724;
}

.status-expired {
    border-left: 5px solid #dc3545;
}

.expired-icon {
    color: #dc3545;
}

.expired-remaining {
    background: #f8d7da;
    color: #721c24;
}

.status-permanent {
    border-left: 5px solid #9c27b0;
}

.permanent-icon {
    color: #9c27b0;
}

/* Price Highlight */
.price-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    margin: 15px 0;
}

/* Features List */
.features-list {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.features-list h4 {
    color: #2d5a27;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.features-list ul {
    list-style: none;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30px;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Payment Section */
.payment-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.payment-section h3 {
    color: #2d5a27;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.payment-options {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.payment-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.payment-card:hover {
    border-color: #4CAF50;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.payment-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.paypal-icon {
    color: #0070ba;
}

.revolut-icon {
    color: #0075eb;
}

.bank-icon {
    color: #28a745;
}

.payment-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

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

.payment-button {
    display: inline-block;
    padding: 12px 25px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.payment-button:hover {
    background: #45a049;
    text-decoration: none;
    color: white;
}

/* Bank Details */
.bank-details {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.bank-details h4 {
    color: #2d5a27;
    margin-bottom: 20px;
}

.bank-info {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.bank-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.bank-field:last-child {
    border-bottom: none;
}

.bank-field label {
    font-weight: 600;
    color: #555;
}

.copyable {
    font-family: monospace;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copyable:hover {
    background: #e9ecef;
}

.copy-icon {
    margin-left: 10px;
    color: #6c757d;
    cursor: pointer;
}

.bank-note {
    margin-top: 15px;
    padding: 10px;
    background: #d1ecf1;
    border-radius: 8px;
    color: #0c5460;
    font-size: 14px;
}

/* Payment Confirmation */
.payment-confirmation {
    background: #f0f8f0;
    border: 2px solid #c3e6cb;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.payment-confirmation h4 {
    color: #155724;
    margin-bottom: 15px;
}

.confirmation-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #218838;
}

/* Contact Info */
.contact-info {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.contact-info h4 {
    color: #1976d2;
    margin-bottom: 15px;
}

.contact-methods {
    margin: 15px 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #1976d2;
}

.activation-note {
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border-radius: 8px;
    color: #856404;
    font-size: 14px;
}

/* Navigation */
.navigation {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-button {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-button.primary {
    background: #4CAF50;
    color: white;
}

.nav-button.primary:hover {
    background: #45a049;
    color: white;
    text-decoration: none;
}

.nav-button.secondary {
    background: #6c757d;
    color: white;
}

.nav-button.secondary:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

/* Admin Panel Styles */
.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.admin-header {
    background: #2d5a27;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

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

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #4CAF50;
}

.stat-label {
    color: #666;
    margin-top: 5px;
}

.section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.section h3 {
    color: #2d5a27;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background: #f8f9fa;
    font-weight: bold;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin: 2px;
    text-decoration: none;
    display: inline-block;
}

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

.btn-warning {
    background: #ffc107;
    color: #212529;
}

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

.btn-info {
    background: #17a2b8;
    color: white;
}

.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        margin: 10px;
    }

    .auth-card {
        border-radius: 10px;
    }

    .auth-form {
        padding: 20px;
    }

    .subscription-container {
        margin: 10px;
        padding: 10px;
    }

    .subscription-header {
        padding: 30px 20px;
    }

    .subscription-header h1 {
        font-size: 2rem;
    }

    .status-card {
        padding: 30px 20px;
    }

    .payment-options {
        grid-template-columns: 1fr;
    }

    .navigation {
        flex-direction: column;
    }

    .nav-button {
        text-align: center;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .admin-container {
        margin: 10px;
        padding: 10px;
    }

    .table {
        font-size: 14px;
    }

    .table th, .table td {
        padding: 8px;
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #28a745;
    color: #155724;
}

.notification-error {
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.notification-info {
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

/* Configuration Errors */
.config-errors {
    margin-bottom: 20px;
}

.config-errors h4 {
    margin-bottom: 10px;
}

.config-errors ul {
    margin-left: 20px;
}

.config-errors li {
    margin-bottom: 5px;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
