/* Subscribe Page Styles */

.subscribe-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #f6fbff;
    min-height: 100vh;
}

.subscribe-header {
    text-align: center;
    margin-bottom: 40px;
}

.subscribe-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #263043;
    margin-bottom: 12px;
}

.subscribe-header p {
    font-size: 1.2rem;
    color: #666;
}

.subscribe-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.section-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(60, 80, 120, 0.08);
    padding: 32px;
}

.section-card h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    color: #263043;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.section-card h2 .material-icons {
    color: #3a8dde;
    font-size: 1.8rem;
}

/* User Section Styles */
.user-info-display {
    padding: 16px 0;
}

.user-avatar {
    text-align: center;
    margin-bottom: 24px;
}

.user-avatar .material-icons {
    font-size: 80px;
    color: #3a8dde;
}

.user-details {
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 600;
    color: #666;
    min-width: 100px;
}

.detail-row .value {
    color: #263043;
    font-size: 1.05rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #2ed8b6;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: auto;
}

.verified-badge .material-icons {
    font-size: 1rem;
}

.user-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

/* Auth Section */
.auth-section {
    padding: 0;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    flex: 1;
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #3a8dde;
    border-bottom-color: #3a8dde;
}

.tab-btn:hover {
    color: #3a8dde;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.auth-form {
    padding: 16px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #263043;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.required {
    color: #dc3545;
}

.phone-input-group {
    display: flex;
    gap: 8px;
}

.country-code {
    width: 90px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    cursor: pointer;
}

.phone-input-group input {
    flex: 1;
}

input[type="text"],
input[type="tel"],
input[type="password"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: #3a8dde;
    box-shadow: 0 0 0 3px rgba(58, 141, 222, 0.1);
}

.password-input-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
}

.toggle-password:hover {
    color: #3a8dde;
}

.form-footer {
    margin-bottom: 16px;
    text-align: right;
}

.forgot-link {
    color: #3a8dde;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

.otp-section {
    background: #f6fbff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.form-text {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

.resend-otp {
    color: #3a8dde;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

.resend-otp:disabled {
    color: #999;
    cursor: not-allowed;
}

.feedback-message {
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
    display: none;
}

.feedback-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    color: #666;
}

.auth-footer a {
    color: #3a8dde;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn .material-icons {
    font-size: 1.2rem;
}

.btn-primary {
    background: #3a8dde;
    color: #fff;
}

.btn-primary:hover {
    background: #2c6bb2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 141, 222, 0.3);
}

.btn-success {
    background: #2ed8b6;
    color: #fff;
}

.btn-success:hover {
    background: #25b89b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 216, 182, 0.3);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3a8dde;
    text-decoration: none;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-link:hover {
    background: #f6fbff;
    color: #2c6bb2;
}

.btn-link.logout {
    color: #dc3545;
}

.btn-link.logout:hover {
    background: #fff5f5;
}

.btn-loader {
    display: inline-block;
}

/* Plan Section Styles */
.plan-details {
    position: relative;
}

.plan-details.pro {
    border-top: 4px solid #ffc107;
}

.plan-details.enterprise {
    border-top: 4px solid #2ed8b6;
}

.plan-details.basic {
    border-top: 4px solid #3a8dde;
}

.popular-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffc107;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.popular-badge .material-icons {
    font-size: 1.1rem;
}

.plan-header {
    margin-bottom: 24px;
}

.plan-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #263043;
    margin-bottom: 12px;
}

.plan-price-large {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price-large .currency {
    font-size: 1.5rem;
    color: #666;
    font-weight: 500;
}

.plan-price-large .amount {
    font-size: 3rem;
    font-weight: 700;
    color: #263043;
}

.plan-price-large .period {
    font-size: 1.2rem;
    color: #666;
}

.plan-features {
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.feature-item .material-icons {
    color: #2ed8b6;
    font-size: 1.3rem;
}

.feature-item.highlight {
    background: #f6fbff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.feature-item.highlight .material-icons {
    font-size: 2rem;
    color: #3a8dde;
}

.feature-item strong {
    display: block;
    font-size: 1.2rem;
    color: #263043;
}

.feature-item small {
    color: #666;
    font-size: 0.9rem;
}

hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 20px 0;
}

.plan-summary {
    background: #f6fbff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.summary-row.total {
    border-top: 2px solid #ddd;
    padding-top: 16px;
    margin-top: 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.summary-row .price {
    color: #3a8dde;
    font-weight: 600;
}

.summary-row .price-large {
    font-size: 1.5rem;
    color: #2ed8b6;
}

.payment-methods {
    margin-bottom: 24px;
}

.payment-methods h4 {
    font-size: 1.1rem;
    color: #263043;
    margin-bottom: 12px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: #3a8dde;
    background: #f6fbff;
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.payment-option input[type="radio"]:checked + .option-content {
    color: #3a8dde;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.login-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
}

.login-prompt .material-icons {
    font-size: 3rem;
    color: #ffc107;
}

.login-prompt p {
    margin: 0;
    color: #856404;
}

.change-plan {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.no-plan-selected {
    text-align: center;
    padding: 60px 20px;
}

.no-plan-selected .material-icons {
    font-size: 80px;
    color: #ccc;
    margin-bottom: 16px;
}

.no-plan-selected h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 8px;
}

.no-plan-selected p {
    color: #888;
    margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .subscribe-content {
        grid-template-columns: 1fr;
    }

    .plan-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .subscribe-container {
        padding: 24px 12px;
    }

    .subscribe-header h1 {
        font-size: 2rem;
    }

    .subscribe-header p {
        font-size: 1rem;
    }

    .section-card {
        padding: 24px 16px;
    }

    .section-card h2 {
        font-size: 1.3rem;
    }

    .plan-header h3 {
        font-size: 1.5rem;
    }

    .plan-price-large .amount {
        font-size: 2.5rem;
    }

    .user-actions {
        flex-direction: column;
    }

    .btn-link {
        width: 100%;
        justify-content: center;
    }

    .phone-input-group {
        flex-direction: column;
    }

    .country-code {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .subscribe-header h1 {
        font-size: 1.8rem;
    }

    .plan-price-large .amount {
        font-size: 2rem;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .detail-row .label {
        min-width: auto;
        font-size: 0.9rem;
    }

    .verified-badge {
        margin-left: 0;
        margin-top: 8px;
    }
}
