/* Account Page Styles */

.account-page {
    min-height: 100vh;
    padding: 40px 20px;
}

.account-container {
    max-width: 900px;
    margin: 0 auto;
}

.account-card {
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, #ff4500 0%, #dc143c 100%);
    padding: 40px 20px;
    text-align: center;
}

.auth-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #FFFFFF !important;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.25) !important;
    padding: 10px 20px;
    border-radius: 6px;
    display: inline-block;
    -webkit-text-fill-color: #FFFFFF !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.auth-header p {
    margin: 0;
    opacity: 0.95;
    color: #FFFFFF;
}

/* Tab Navigation */
.account-tabs {
    display: flex;
    border-bottom: 1px solid #333;
    background: #0f0f0f;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: #B0B0B0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #1a1a1a;
    color: #FFFFFF;
}

.tab-btn.active {
    color: #ff4500;
    border-bottom-color: #ff4500;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

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

.account-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.account-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #FFFFFF;
}

/* Profile Section */
.profile-info {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    font-weight: 600;
    color: #FFFFFF;
    min-width: 150px;
}

.info-value {
    flex: 1;
    color: #B0B0B0;
    text-align: right;
}

.info-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #dc143c;
    color: #FFFFFF;
    margin-left: 10px;
}

.info-badge.verified {
    background: #ff4500;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.profile-actions button {
    flex: 1;
}

/* Subscription Section */
.subscription-status {
    margin-bottom: 30px;
}

.status-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 15px;
}

.status-header h3 {
    margin: 0;
}

.plan-badge {
    background: linear-gradient(135deg, #ff4500 0%, #dc143c 100%);
    color: #FFFFFF;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.status-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.status-details p {
    margin: 0;
    color: #B0B0B0;
}

.status-details strong {
    color: #FFFFFF;
}

/* Features Comparison Table */
.features-comparison {
    margin-bottom: 30px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

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

.comparison-table th {
    background: #0f0f0f;
    font-weight: 600;
    color: #FFFFFF;
}

.comparison-table td {
    color: #B0B0B0;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: #FFFFFF;
}

/* Billing Section */
.billing-portal {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.portal-info {
    margin-bottom: 15px;
}

.portal-info p {
    color: #B0B0B0;
    margin: 0;
}

.payment-methods,
.billing-history {
    margin-bottom: 30px;
}

.payment-info {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #333;
    color: #B0B0B0;
}

.payment-actions {
    display: flex;
    gap: 10px;
}

.payment-actions button {
    flex: 1;
}

/* Billing History */
.invoices-list {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

.invoice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #2a2a2a;
}

.invoice-item:last-child {
    border-bottom: none;
}

.invoice-info p {
    margin: 5px 0;
    color: #B0B0B0;
}

.invoice-info p:first-child {
    color: #FFFFFF;
    font-weight: 600;
}

.invoice-amount {
    font-weight: 600;
    color: #FFFFFF;
    min-width: 80px;
    text-align: right;
}

.download-link {
    color: #ff4500;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.download-link:hover {
    background: rgba(255, 69, 0, 0.1);
}

/* Cancellation Section */
.cancellation-section {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #dc143c;
}

.cancellation-section p {
    color: #B0B0B0;
    margin: 0 0 15px 0;
}

/* Security Options */
.security-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .security-options {
        grid-template-columns: 1fr;
    }
}

.option-card {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #333;
}

.option-card h3 {
    margin: 0 0 10px 0;
    color: #FFFFFF;
}

.option-card p {
    margin: 0 0 15px 0;
    color: #B0B0B0;
    font-size: 14px;
}

.option-card button {
    width: 100%;
}

.option-card.danger {
    border-color: #dc143c;
    background: rgba(220, 20, 60, 0.05);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    max-width: 500px;
    margin: 50px auto;
    animation: slideUp 0.3s ease;
}

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

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

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #B0B0B0;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #333;
    color: #FFFFFF;
}

.modal-body {
    padding: 20px;
}

.modal-form {
    padding: 20px;
}

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

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

.form-group input,
.form-input {
    width: 100%;
    padding: 10px;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 4px;
    color: #FFFFFF;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-input:focus {
    outline: none;
    border-color: #ff4500;
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

.modal-actions {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #333;
    justify-content: flex-end;
}

.modal-actions button {
    flex: 1;
    max-width: 150px;
}

/* Retention Offers */
.retention-offer {
    background: #0f0f0f;
    border: 1px solid #ff4500;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.retention-offer p {
    margin: 0 0 10px 0;
    color: #B0B0B0;
}

.retention-offer button {
    width: 100%;
}

/* Delete Confirmation */
.warning-box {
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid #dc143c;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.warning-box p {
    margin: 5px 0;
    color: #dc143c;
    font-weight: 600;
}

.warning-box ul {
    margin: 10px 0 0 20px;
    color: #B0B0B0;
}

.warning-box ul li {
    margin-bottom: 5px;
}

.confirmation-steps {
    background: #0f0f0f;
    border-radius: 8px;
    padding: 15px;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.step:last-child {
    margin-bottom: 0;
}

.confirmation-checkbox {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.step label {
    color: #B0B0B0;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.step input[type="email"] {
    width: 100%;
    margin-top: 5px;
}

/* Account Actions Footer */
.account-actions-footer {
    padding: 20px 30px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
}

.account-actions-footer button {
    min-width: 150px;
}

/* Buttons */
.auth-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.auth-btn.primary {
    background: linear-gradient(135deg, #ff4500 0%, #dc143c 100%);
    color: #FFFFFF;
}

.auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 69, 0, 0.3);
}

.auth-btn.secondary {
    background: transparent;
    color: #ff4500;
    border: 1px solid #ff4500;
}

.auth-btn.secondary:hover {
    background: rgba(255, 69, 0, 0.1);
}

.auth-btn.danger {
    background: #dc143c;
    color: #FFFFFF;
}

.auth-btn.danger:hover {
    background: #b81030;
}

.logout-btn {
    background: #dc143c;
    color: #FFFFFF;
    width: 100%;
}

.logout-btn:hover {
    background: #b81030;
}

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

.error-message {
    background: rgba(220, 20, 60, 0.1);
    color: #dc143c;
    border: 1px solid #dc143c;
}

.success-message {
    background: rgba(255, 69, 0, 0.1);
    color: #ff4500;
    border: 1px solid #ff4500;
}

/* Responsive */
@media (max-width: 768px) {
    .account-page {
        padding: 20px 10px;
    }

    .tab-btn {
        font-size: 12px;
        min-width: 100px;
        padding: 12px 10px;
    }

    .tab-content {
        padding: 20px 15px;
    }

    .status-details {
        grid-template-columns: 1fr;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .invoice-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .invoice-amount {
        width: 100%;
        margin: 10px 0;
        text-align: left;
    }

    .modal-content {
        margin: 30px 20px;
        max-width: calc(100% - 40px);
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions button {
        max-width: 100%;
    }

    .profile-actions {
        flex-direction: column;
    }
}