/* Account Page Styles */
.account-page {
    min-height: 100vh;
    background-color: #faf9f6;
}

.btn-logout {
    background-color: transparent;
    color: #ff4444;
    border: 1px solid #ff4444;
}

.btn-logout:hover {
    background-color: #ff4444;
    color: white;
}

.account-main {
    padding: 40px 0;
    min-height: calc(100vh - 80px);
}

.account-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.account-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #000;
}

.account-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
}

.account-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.account-section-danger {
    border-color: #ff4444;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}

.section-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Account Info */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-label {
    font-weight: 600;
    color: #333;
    min-width: 140px;
}

.info-value {
    color: #666;
}

/* Password Section */
.password-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Subscription Section */
.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.status-active {
    color: #4caf50;
    font-weight: 600;
}

.status-inactive {
    color: #999;
}

.subscription-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Purchases Section */
.purchases-section {
    margin-top: 16px;
}

.purchases-list {
    margin-top: 16px;
}

.purchases-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.purchase-item {
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.purchase-product {
    font-weight: 600;
    color: #333;
}

.purchase-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #e5e5e5;
    color: #666;
}

.purchase-status.status-active {
    background: #e8f5e9;
    color: #4caf50;
}

.purchase-date {
    font-size: 12px;
    color: #999;
}

.no-purchases {
    color: #999;
    font-style: italic;
}

.error-text {
    color: #ff4444;
}

.loading-text {
    color: #999;
}

/* Payment Method Section */
.payment-method-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-info {
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

/* Delete Account Section */
.delete-account-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.btn-danger:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

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

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    padding: 32px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #000;
}

.modal-content h2 {
    margin-bottom: 16px;
    font-size: 24px;
}

.modal-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.warning-text {
    color: #ff4444;
    font-weight: 500;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.form-actions .btn {
    min-width: 120px;
}

/* Responsive */
@media (max-width: 768px) {
    .account-container {
        padding: 24px;
        margin: 0 16px;
    }

    .account-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 18px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .info-label {
        min-width: auto;
    }

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

    .subscription-actions .btn {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .form-actions .btn {
        width: 100%;
    }

    .modal-content {
        padding: 24px;
    }
}

