/* ================================
   ACCOUNT MANAGEMENT STYLES
   ================================ */

/* Account Page Layout */
.account-nav {
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-start;
}

/* Success Notification */
.success-notification {
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 15px;
    padding: 30px;
    color: white;
    text-align: center;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
    animation: slideInFromTop 0.5s ease;
}

.success-content i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ecfdf5;
}

.success-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.success-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-main {
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    color: #667eea;
}

/* Account Grid Layout */
.account-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.settings-grid {
    display: grid;
    gap: 25px;
}

/* Info Cards */
.info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: #667eea;
}

.plan-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-badge.free {
    background: #f3f4f6;
    color: #6b7280;
}

.plan-badge.pro {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.plan-badge.enterprise {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Current Plan Card */
.current-plan-card {
    border-color: #667eea;
}

.plan-details p {
    color: #666;
    margin-bottom: 20px;
}

.plan-features {
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #333;
}

.feature-item i {
    color: #10b981;
    font-size: 0.9rem;
}

.plan-actions {
    text-align: center;
}

/* Usage Card */
.usage-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.usage-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.usage-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.usage-label {
    font-weight: 500;
    color: #333;
}

.usage-count {
    font-weight: 600;
    color: #667eea;
}

.usage-bar {
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.usage-progress {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Subscription Management */
.subscription-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid #10b981;
}

.subscription-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.subscription-details h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.status-active {
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.status-cancelled {
    color: #ef4444;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.billing-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.billing-item {
    display: flex;
    gap: 10px;
}

.billing-item .label {
    color: #666;
    min-width: 100px;
}

.subscription-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Billing History */
.billing-table-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.billing-table th {
    background: rgba(102, 126, 234, 0.1);
    padding: 20px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.billing-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #666;
}

.billing-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

/* Account Settings */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.setting-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.setting-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-info h4 i {
    color: #667eea;
}

.setting-info p {
    color: #666;
    font-size: 0.95rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Buttons */
.btn-secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
}

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

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

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalAppear 0.3s ease;
}

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

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .subscription-info {
        flex-direction: column;
        gap: 20px;
    }

    .subscription-actions {
        flex-direction: row;
        justify-content: center;
    }

    .setting-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .billing-table {
        font-size: 0.9rem;
    }

    .billing-table th,
    .billing-table td {
        padding: 15px 10px;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }

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