@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Oxanium:wght@200..800&display=swap');

:root {
    --dark-blue: #091747;
    --purple: #5850ec;
    --light-gray: #f4f5f7;
    --medium-gray: #e5e7eb;
    --error-red: #e53e3e;
    --success-green: #38a169;
    --warning-orange: #ed8936;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light-gray);
}

/* ====ACCOUNT CONTAINER==== */
.account-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.account-header {
    margin-bottom: 30px;
    text-align: center;
}

.account-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.account-header p {
    font-size: 16px;
    color: #4a5568;
}

/* ====ACCOUNT CARDS==== */
.account-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(88, 80, 236, 0.1);
}

.account-section {
    margin-bottom: 25px;
}

.account-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: var(--purple);
    font-size: 18px;
}

/* ====INFO ROWS==== */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-blue);
}

.credits-value {
    display: flex;
    align-items: center;
}

.credits-badge {
    background-color: var(--purple);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ====BUTTONS==== */
.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.primary-button, .secondary-button, .danger-button, .outline-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-button i, .secondary-button i, .danger-button i, .outline-button i {
    margin-right: 8px;
}

.primary-button {
    background-color: var(--purple);
    color: white;
    border: none;
    box-shadow: 0 2px 5px rgba(88, 80, 236, 0.2);
}

.primary-button:hover {
    background-color: #4c45d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(88, 80, 236, 0.3);
}

.primary-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(88, 80, 236, 0.2);
}

.secondary-button {
    background-color: white;
    color: var(--dark-blue);
    border: 1px solid var(--medium-gray);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.secondary-button:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.danger-button {
    background-color: white;
    color: var(--error-red);
    border: 1px solid var(--error-red);
}

.danger-button:hover {
    background-color: var(--error-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 62, 62, 0.2);
}

.outline-button {
    background-color: white;
    color: var(--dark-blue);
    border: 1px solid var(--medium-gray);
}

.outline-button:hover {
    background-color: var(--light-gray);
}

/* ====SUBSCRIPTION STATUS BADGES==== */
.subscription-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px;
}

.active-badge {
    background-color: rgba(56, 161, 105, 0.1);
    color: var(--success-green);
}

.canceled-badge {
    background-color: rgba(229, 62, 62, 0.1);
    color: var(--error-red);
}

/* ====NO SUBSCRIPTION SECTION==== */
.no-subscription-container {
    text-align: center;
    padding: 40px 20px;
}

.no-subscription-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.no-subscription-description {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.plan-highlight {
    color: var(--purple);
    font-weight: 600;
}

/* ====MODAL STYLES==== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 10% auto;
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
}

.warning-icon {
    color: var(--warning-orange);
    font-size: 24px;
    margin-right: 12px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-blue);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 18px;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    color: #718096;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--dark-blue);
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-info {
    background-color: rgba(237, 137, 54, 0.1);
    border-left: 4px solid var(--warning-orange);
    padding: 15px;
    font-size: 14px;
    color: #805120;
    border-radius: 0 4px 4px 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 20px 25px;
    gap: 15px;
    border-top: 1px solid var(--light-gray);
}

/* ====NOTIFICATION STYLES==== */
.notification {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    max-width: 350px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border-left: 4px solid var(--success-green);
    animation: slideInRight 0.3s ease, fadeOut 0.5s ease 4.5s forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 15px;
}

.success-icon {
    color: var(--success-green);
    font-size: 24px;
    margin-right: 15px;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.notification-message {
    font-size: 14px;
    color: #4a5568;
}

/* ====RESPONSIVE DESIGN==== */
@media (max-width: 768px) {
    .account-container {
        margin: 30px auto;
    }
    
    .account-header h1 {
        font-size: 28px;
    }
    
    .account-card {
        padding: 20px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }
    
    .info-value {
        margin-top: 5px;
    }

    .button-container {
        flex-direction: column;
        width: 100%;
    }

    .button-container button {
        width: 100%;
        margin-bottom: 10px;
    }

    .modal-content {
        margin: 15% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .account-header h1 {
        font-size: 24px;
    }
    
    .account-card {
        padding: 15px;
    }
    
    .section-title {
        font-size: 18px;
    }

    .notification {
        max-width: calc(100% - 40px);
    }
}