* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.5;
    font-size: 14px;
}

/* ========== Login Page Styles ========== */
body:has(.login-container) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 36px 32px;
    animation: fadeIn 0.3s ease;
}

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

.signup-box {
    animation: fadeIn 0.3s ease;
}

/* ========== Login Header ========== */
.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #e0e0e0;
    font-size: 18px;
    font-weight: 600;
}

.logo i {
    font-size: 24px;
    color: #9a9a9a;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.login-header p {
    font-size: 13px;
    color: #777777;
}

/* ========== Social Login ========== */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 16px;
    background-color: #0a0a0a;
    color: #e0e0e0;
    border: 1px solid #222222;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-social:hover {
    background-color: #161616;
    border-color: #2a2a2a;
}

.btn-social i {
    font-size: 16px;
}

.btn-google i {
    color: #e0e0e0;
}

.btn-github i {
    color: #e0e0e0;
}

/* ========== Divider ========== */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #5a5a5a;
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #1e1e1e;
}

.divider span {
    padding: 0 12px;
}

/* ========== Login Form ========== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-form .form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
}

.form-input {
    background-color: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 7px;
    padding: 9px 12px;
    color: #e0e0e0;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.15s ease;
    width: 100%;
}

.form-input::placeholder {
    color: #5a5a5a;
}

.form-input:focus {
    outline: none;
    border-color: #333333;
    background-color: #0f0f0f;
}

.form-input:hover:not(:focus) {
    border-color: #2a2a2a;
}

.login-form .password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-form .password-input-wrapper .form-input {
    padding-right: 40px;
}

.login-form .btn-toggle-password {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #5a5a5a;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.login-form .btn-toggle-password:hover {
    color: #9a9a9a;
}

.login-form .btn-toggle-password i {
    font-size: 14px;
}

/* ========== Password Strength ========== */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 3px;
    background-color: #1e1e1e;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background-color: #5a5a5a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-fill.weak {
    width: 33%;
    background-color: #ff6b6b;
}

.strength-fill.medium {
    width: 66%;
    background-color: #ffa500;
}

.strength-fill.strong {
    width: 100%;
    background-color: #4ade80;
}

.strength-text {
    font-size: 11px;
    color: #777777;
}

/* ========== Form Footer ========== */
.login-form .form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.login-form .checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.login-form .checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #e0e0e0;
}

.login-form .checkbox-label {
    font-size: 12px;
    color: #9a9a9a;
    user-select: none;
}

.login-form .checkbox-terms {
    margin-top: 4px;
}

.login-form .checkbox-terms .checkbox-label {
    line-height: 1.6;
}

.link-forgot {
    font-size: 12px;
    color: #5a8fff;
    text-decoration: none;
    transition: color 0.15s ease;
}

.link-forgot:hover {
    color: #7da4ff;
    text-decoration: underline;
}

.login-form .link-inline {
    color: #5a8fff;
    text-decoration: none;
    transition: color 0.15s ease;
}

.login-form .link-inline:hover {
    color: #7da4ff;
    text-decoration: underline;
}

/* ========== Login Primary Button ========== */
.login-form .btn-primary {
    padding: 10px 20px;
    background-color: #e0e0e0;
    color: #0a0a0a;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 8px;
}

.login-form .btn-primary:hover {
    background-color: #f0f0f0;
}

.login-form .btn-primary:active {
    transform: scale(0.98);
}

/* ========== Sign Up Prompt ========== */
.signup-prompt {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #1e1e1e;
    font-size: 13px;
    color: #777777;
}

.link-signup {
    color: #5a8fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    transition: color 0.15s ease;
}

.link-signup:hover {
    color: #7da4ff;
    text-decoration: underline;
}

/* ========== Login Animations ========== */
.fade-out {
    animation: fadeOut 0.2s ease forwards;
}

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

/* ========== Login Focus Styles ========== */
.login-form button:focus-visible,
.login-form input:focus-visible,
.login-form a:focus-visible {
    outline: 2px solid #333333;
    outline-offset: 2px;
}

/* ========== Login Responsive ========== */
@media (max-width: 480px) {
    .login-box {
        padding: 28px 24px;
    }

    .login-header h1 {
        font-size: 22px;
    }

    .login-form .form-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* ========== Sidebar Styles ========== */
.sidebar {
    width: 240px;
    background-color: #0f0f0f;
    border-right: 1px solid #1a1a1a;
    padding: 20px 12px;
    overflow-y: auto;
}

.user-profile {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.user-profile:hover {
    background-color: #161616;
}

.user-info h3 {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.user-plan {
    font-size: 11px;
    color: #777777;
    display: flex;
    flex-direction: column;
}

.user-email {
    font-size: 11px;
    color: #5a5a5a;
    margin-top: 1px;
}

.user-profile i {
    color: #5a5a5a;
    font-size: 12px;
    margin-top: 2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #9a9a9a;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.nav-item:hover {
    background-color: #161616;
    color: #e0e0e0;
}

.nav-item.active {
    background-color: #1a1a1a;
    color: #ffffff;
}

.nav-item i {
    width: 18px;
    font-size: 15px;
    text-align: center;
}

/* ========== Main Content Styles ========== */
.main-content {
    flex: 1;
    padding: 36px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* ========== Overview Page Styles ========== */
.current-plan-compact {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plan-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.plan-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
}

.plan-badge i {
    color: #9a9a9a;
    font-size: 14px;
}

.plan-price-compact {
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 500;
}

.btn-upgrade-compact {
    padding: 7px 18px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-upgrade-compact:hover {
    background-color: #222222;
    border-color: #333333;
}

.analytics-section {
    margin-top: 24px;
}

.analytics-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 18px;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.date-dropdown {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    color: #e0e0e0;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s ease;
}

.date-dropdown:hover {
    background-color: #161616;
    border-color: #252525;
}

.date-dropdown i {
    font-size: 11px;
    color: #777777;
}

.time-filters {
    display: flex;
    gap: 6px;
}

.time-filter {
    background-color: transparent;
    border: none;
    color: #777777;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.time-filter:hover {
    background-color: #161616;
    color: #e0e0e0;
}

.time-filter.active {
    background-color: #1a1a1a;
    color: #ffffff;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.analytics-card {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 20px;
}

.analytics-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9a9a9a;
    font-size: 13px;
    margin-bottom: 12px;
}

.analytics-header i {
    color: #5a5a5a;
    font-size: 12px;
}

.analytics-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.value-main {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
}

.value-sub {
    font-size: 16px;
    color: #5a5a5a;
}

/* ========== Settings Page Styles ========== */
#settings-page h1,
#usage-page h1,
#payment-page h1 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.settings-header {
    margin-bottom: 32px;
}

.settings-subtitle {
    font-size: 14px;
    color: #9a9a9a;
    margin: 0;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.settings-card {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.settings-card:hover {
    border-color: #2a2a2a;
}

.settings-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid #1a1a1a;
}

.settings-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 20px;
    flex-shrink: 0;
}

.settings-card-icon-danger {
    background-color: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.settings-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.settings-card-description {
    font-size: 12px;
    color: #777777;
    margin: 0;
}

.settings-card-body {
    padding: 24px;
}

.settings-form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.setting-item label {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-item label i {
    font-size: 14px;
    color: #5a5a5a;
    width: 16px;
}

.validation-message {
    font-size: 11px;
    color: #ff6b6b;
    margin-top: 4px;
    display: block;
    min-height: 16px;
}

.validation-message.valid {
    color: #4ade80;
}

.input-field {
    background-color: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 4px;
    padding: 8px 12px;
    color: #e0e0e0;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.15s ease;
    width: 100%;
}

.input-field:focus {
    outline: none;
    border-color: #333333;
    background-color: #0f0f0f;
}

.input-field:hover:not(:focus) {
    border-color: #2a2a2a;
}

.input-field::placeholder {
    color: #5a5a5a;
}

/* Custom Select Design */
.custom-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-select {
    width: 100%;
    background-color: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 10px 40px 10px 14px;
    color: #e0e0e0;
    font-size: 13px;
    font-family: inherit;
    font-weight: 300;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.15s ease;
    background-image: none;
}

.custom-select:hover {
    border-color: #2a2a2a;
    background-color: #0f0f0f;
}

.custom-select:focus {
    outline: none;
    border-color: #333333;
    background-color: #0f0f0f;
    box-shadow: 0 0 0 2px rgba(74, 122, 255, 0.1);
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #5a5a5a;
    font-size: 12px;
    pointer-events: none;
    transition: transform 0.2s ease, color 0.15s ease;
}

.custom-select-wrapper:hover .select-arrow {
    color: #9a9a9a;
}

.custom-select:focus + .select-arrow {
    color: #e0e0e0;
    transform: translateY(-50%) rotate(180deg);
}

.custom-select option {
    background-color: #121212;
    color: #e0e0e0;
    padding: 10px;
}

.settings-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.setting-item-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #1a1a1a;
}

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

.setting-info {
    flex: 1;
}

.setting-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.setting-info-header i {
    font-size: 14px;
    color: #5a5a5a;
    width: 16px;
}

.setting-info label {
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
    margin: 0;
}

.setting-description {
    font-size: 12px;
    color: #777777;
    margin: 0;
    line-height: 1.5;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.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: #222222;
    border-radius: 24px;
    transition: 0.2s;
}

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

.toggle-switch input:checked + .toggle-slider {
    background-color: #e0e0e0;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background-color: #0a0a0a;
}

.settings-action-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.setting-action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #1a1a1a;
}

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

.setting-action-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.setting-action-info i {
    font-size: 16px;
    color: #5a5a5a;
    width: 20px;
    text-align: center;
}

.setting-action-info label {
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
    display: block;
    margin-bottom: 4px;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: transparent;
    color: #9a9a9a;
    border: 1px solid #222222;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-action:hover {
    background-color: #161616;
    color: #e0e0e0;
    border-color: #2a2a2a;
}

.btn-action i {
    font-size: 11px;
}

.settings-footer {
    display: flex;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
    margin-top: 8px;
}

/* ========== Minimalistic Settings Styles ========== */
.settings-container-minimal {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-section-minimal {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 4px;
    padding: 12px;
}

.settings-section-minimal h2 {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #1a1a1a;
}

.settings-form-minimal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-item-minimal {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-item-minimal label {
    font-size: 12px;
    font-weight: 400;
    color: #9a9a9a;
}

.settings-list-minimal {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.settings-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #1a1a1a;
}

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

.settings-list-item span {
    font-size: 13px;
    color: #e0e0e0;
    font-weight: 400;
}

.btn-link-minimal {
    background-color: transparent;
    border: none;
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
}

.btn-link-minimal:hover {
    color: #e0e0e0;
}

.btn-link-minimal.btn-link-danger {
    color: #ff6b6b;
}

.btn-link-minimal.btn-link-danger:hover {
    color: #ff8a8a;
}

.settings-footer-minimal {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #1a1a1a;
}

.settings-footer-minimal .btn-primary,
.settings-footer-minimal .btn-secondary {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-primary,
.btn-secondary {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: #e0e0e0;
    color: #0a0a0a;
    border: none;
}

.btn-primary:hover {
    background-color: #f0f0f0;
}

.btn-primary i {
    font-size: 12px;
}

.btn-secondary {
    background-color: transparent;
    color: #9a9a9a;
    border: 1px solid #222222;
}

.btn-secondary:hover {
    background-color: #161616;
    color: #e0e0e0;
    border-color: #2a2a2a;
}

.btn-secondary i {
    font-size: 12px;
}

.settings-card-danger {
    border-color: #2a1a1a;
}

.btn-danger {
    padding: 8px 16px;
    background-color: transparent;
    color: #ff6b6b;
    border: 1px solid #3a2020;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background-color: rgba(255, 107, 107, 0.1);
    border-color: #4a2525;
    color: #ff8a8a;
}

.btn-danger i {
    font-size: 12px;
}

.btn-danger-outline {
    padding: 8px 16px;
    background-color: transparent;
    color: #ff6b6b;
    border: 1px solid #3a2020;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-danger-outline:hover {
    background-color: rgba(255, 107, 107, 0.1);
    border-color: #4a2525;
    color: #ff8a8a;
}

.btn-danger-outline i {
    font-size: 12px;
}

/* Responsive Settings */
@media (max-width: 1200px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.btn-danger {
    padding: 9px 20px;
    background-color: transparent;
    color: #ff6b6b;
    border: 1px solid #3a2020;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background-color: rgba(255, 107, 107, 0.1);
    border-color: #4a2525;
    color: #ff8a8a;
}

.btn-danger i {
    font-size: 12px;
}

/* ========== Modal Styles ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

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

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}


.modal-close {
    background: none;
    border: none;
    color: #9a9a9a;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.modal-close:hover {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.modal-body {
    padding: 24px;
}

.modal-body:has(.modal-icon) {
    text-align: center;
}

.modal-icon {
    margin-bottom: 16px;
}

.modal-icon i {
    font-size: 48px;
    color: #ff6b6b;
}

.modal-body p {
    font-size: 14px;
    color: #9a9a9a;
    line-height: 1.6;
    margin: 0;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #1e1e1e;
    justify-content: flex-end;
}

.modal-footer .btn-danger {
    background-color: #ff6b6b;
    color: #ffffff;
    border-color: #ff6b6b;
}

.modal-footer .btn-danger:hover {
    background-color: #ff5252;
    border-color: #ff5252;
    color: #ffffff;
}

/* ========== Unified Notification Modal Styles ========== */
.notification-modal {
    max-width: 440px;
}

.notification-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.notification-icon i {
    font-size: 48px;
}

.notification-icon.success i {
    color: #4ade80;
}

.notification-icon.error i {
    color: #ff6b6b;
}

.notification-icon.warning i {
    color: #ffa500;
}

.notification-icon.info i {
    color: #5a8fff;
}

#notificationMessage {
    text-align: center;
    font-size: 14px;
    color: #9a9a9a;
    line-height: 1.6;
    margin: 0;
}

/* ========== Usage Widget Styles ========== */
.usage-widget {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 300px);
    min-height: 400px;
}

.usage-widget-header {
    padding: 20px 24px;
    border-bottom: 1px solid #1a1a1a;
}

.usage-widget-header h2 {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.usage-widget-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.usage-widget-content .usage-table {
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #1a1a1a;
}

.usage-widget-content .usage-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.usage-widget-footer {
    padding: 16px 24px;
    border-top: 1px solid #1a1a1a;
    display: flex;
    justify-content: center;
}

.btn-view-all-usage {
    padding: 10px 24px;
    background-color: transparent;
    color: #9a9a9a;
    border: 1px solid #222222;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-view-all-usage:hover {
    background-color: #161616;
    color: #e0e0e0;
    border-color: #2a2a2a;
}

.btn-view-all-usage i {
    font-size: 12px;
}

/* ========== Usage Page Styles ========== */
.usage-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card-minimal {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.15s ease;
}

.stat-card-minimal:hover {
    border-color: #252525;
}

.stat-label-minimal {
    font-size: 12px;
    font-weight: 500;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.stat-value-minimal {
    font-size: 36px;
    font-weight: 300;
    color: #ffffff;
    line-height: 1;
    margin: 0;
    letter-spacing: -0.5px;
}

.stat-progress-minimal {
    margin: 4px 0;
}

.stat-progress-bar-minimal {
    width: 100%;
    height: 2px;
    background-color: #1a1a1a;
    border-radius: 1px;
    overflow: hidden;
}

.stat-progress-fill-minimal {
    height: 100%;
    background-color: #e0e0e0;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.stat-meta-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #5a5a5a;
    margin-top: 4px;
}

.stat-meta-minimal span:last-child {
    color: #9a9a9a;
    font-weight: 500;
}

.stat-icon {
    font-size: 26px;
    color: #5a5a5a;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #161616;
    border-radius: 8px;
}

.stat-info h3 {
    font-size: 12px;
    font-weight: 500;
    color: #777777;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
}

.stat-subtext {
    font-size: 11px;
    color: #5a5a5a;
}

.usage-bars {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    padding: 28px 24px;
    margin-bottom: 24px;
}

.usage-bar-item-minimal {
    margin-bottom: 32px;
}

.usage-bar-item-minimal:last-child {
    margin-bottom: 0;
}

.usage-bar-label-minimal {
    font-size: 12px;
    font-weight: 500;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.usage-bar-progress-minimal {
    margin: 8px 0;
}

.usage-progress-bar-minimal {
    width: 100%;
    height: 2px;
    background-color: #1a1a1a;
    border-radius: 1px;
    overflow: hidden;
}

.usage-progress-fill-minimal {
    height: 100%;
    background-color: #e0e0e0;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.usage-bar-meta-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #5a5a5a;
    margin-top: 8px;
}

.usage-bar-meta-minimal span:last-child {
    color: #9a9a9a;
    font-weight: 500;
}

.usage-history {
    margin-top: 36px;
}

.usage-history h2 {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 18px;
}

.usage-table {
    width: 100%;
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    border-collapse: collapse;
    overflow: hidden;
}

.usage-table thead {
    background-color: #0f0f0f;
}

.usage-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.usage-table td {
    padding: 12px 16px;
    border-top: 1px solid #1a1a1a;
    font-size: 13px;
    color: #9a9a9a;
}

.usage-table tbody tr:hover {
    background-color: #161616;
}

/* ========== Subscription Page Styles ========== */
.subscription-current {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 32px;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.subscription-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.current-plan-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.plan-name-large {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.plan-price-large {
    font-size: 18px;
    font-weight: 500;
    color: #9a9a9a;
}

.next-billing-date {
    font-size: 12px;
    color: #777777;
}

.btn-cancel-subscription {
    padding: 7px 16px;
    background-color: transparent;
    color: #ff6b6b;
    border: 1px solid #3a2020;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-cancel-subscription:hover {
    background-color: rgba(255, 107, 107, 0.1);
    border-color: #4a2525;
}

.available-plans {
    margin-bottom: 32px;
}

.available-plans h2 {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 18px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.plan-option {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.plan-option-popular {
    border-color: #2a4a7a;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: #4a7aff;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.plan-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.plan-option-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.badge-active {
    background-color: rgba(74, 197, 94, 0.15);
    color: #4ade80;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.plan-option-price {
    margin-bottom: 20px;
}

.plan-option-price .price {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
}

.plan-option-price .period {
    font-size: 14px;
    color: #777777;
}

.plan-features {
    list-style: none;
    margin-bottom: 24px;
    padding: 0;
}

.plan-features li {
    font-size: 13px;
    color: #9a9a9a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i {
    color: #4ade80;
    font-size: 12px;
}

.btn-plan-selected {
    width: 100%;
    padding: 9px 20px;
    background-color: #1a1a1a;
    color: #777777;
    border: 1px solid #222222;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: not-allowed;
}

.btn-plan-upgrade {
    width: 100%;
    padding: 9px 20px;
    background-color: #e0e0e0;
    color: #0a0a0a;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-plan-upgrade:hover {
    background-color: #f0f0f0;
}

.payment-methods-section {
    margin-bottom: 32px;
}

.payment-methods-section h2 {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 18px;
}

.payment-methods-list {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.payment-method-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #1a1a1a;
    transition: background-color 0.15s ease;
}

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

.payment-method-item:hover {
    background-color: #161616;
}

.payment-method-icon {
    font-size: 32px;
    color: #5a5a5a;
    width: 48px;
    text-align: center;
}

.payment-method-details {
    flex: 1;
}

.payment-method-name {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 4px;
}

.payment-method-expiry {
    font-size: 12px;
    color: #777777;
}

.payment-method-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-default {
    background-color: #222222;
    color: #9a9a9a;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.btn-icon {
    background-color: transparent;
    border: none;
    color: #777777;
    padding: 6px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.btn-icon:hover {
    color: #ff6b6b;
}

.btn-text-small {
    background-color: transparent;
    border: none;
    color: #5a8fff;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.15s ease;
}

.btn-text-small:hover {
    color: #7da4ff;
    text-decoration: underline;
}

.btn-add-payment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-add-payment:hover {
    background-color: #222222;
    border-color: #333333;
}

.btn-add-payment i {
    font-size: 12px;
}

.billing-address-section h2 {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 18px;
}

.billing-address-card {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.address-display p {
    font-size: 13px;
    color: #9a9a9a;
    margin-bottom: 4px;
}

.address-display strong {
    color: #e0e0e0;
}

.btn-text-link {
    background: none;
    border: none;
    color: #5a8fff;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.15s ease;
}

.btn-text-link:hover {
    color: #7da4ff;
    text-decoration: underline;
}

/* ========== Payment Page Styles ========== */
.billing-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.billing-card {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 20px;
}

.billing-card h3 {
    font-size: 13px;
    font-weight: 500;
    color: #777777;
    margin-bottom: 12px;
}

.billing-amount {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.billing-period {
    font-size: 12px;
    color: #777777;
}

.invoices-section h2 {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 18px;
}

.invoices-table {
    width: 100%;
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    border-collapse: collapse;
    overflow: hidden;
}

.invoices-table thead {
    background-color: #0f0f0f;
}

.invoices-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.invoices-table td {
    padding: 12px 16px;
    border-top: 1px solid #1a1a1a;
    font-size: 13px;
    color: #9a9a9a;
}

.invoices-table tbody tr:hover {
    background-color: #161616;
}

.status-badge {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.paid {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.btn-download {
    background-color: transparent;
    border: 1px solid #222222;
    color: #9a9a9a;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-download:hover {
    background-color: #161616;
    color: #e0e0e0;
    border-color: #2a2a2a;
}

.btn-download i {
    font-size: 11px;
}

/* ========== Responsive Design ========== */
@media (max-width: 1200px) {
    .main-content {
        padding: 28px 32px;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .usage-stats {
        grid-template-columns: 1fr;
    }

    .billing-summary {
        grid-template-columns: 1fr;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #1a1a1a;
    }

    .main-content {
        padding: 20px 16px;
    }
}

/* ========== Scrollbar Styles ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #222222;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

/* ========== Add Payment Method Page Styles ========== */
.page-header-with-back {
    margin-bottom: 32px;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: none;
    color: #9a9a9a;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 16px;
    transition: color 0.15s ease;
}

.btn-back:hover {
    color: #e0e0e0;
}

.btn-back i {
    font-size: 12px;
}

#add-payment-method-page h1,
#change-password-page h1,
#active-sessions-page h1,
#delete-account-page h1,
#edit-billing-address-page h1 {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
}

/* ========== Form Page Styles ========== */
.form-page-container {
    max-width: 600px;
}

.form-page-card {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 32px;
}

.form-page-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-page-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .input-field {
    padding-right: 40px;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #5a5a5a;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.btn-toggle-password:hover {
    color: #9a9a9a;
}

.btn-toggle-password i {
    font-size: 14px;
}

/* ========== Active Sessions Page Styles ========== */
.sessions-container {
    max-width: 800px;
}

.sessions-card {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.sessions-header {
    margin-bottom: 24px;
}

.sessions-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.sessions-description {
    font-size: 13px;
    color: #9a9a9a;
    margin: 0;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #1a1a1a;
    gap: 24px;
}

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

.session-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    min-width: 0;
}

.session-device {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.session-device i {
    font-size: 24px;
    color: #5a5a5a;
    width: 32px;
    text-align: center;
}

.session-device-name {
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 6px;
}

.session-details {
    font-size: 12px;
    color: #777777;
    line-height: 1.4;
}

.session-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 140px;
    flex-shrink: 0;
}

.session-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-status.active {
    background-color: rgba(74, 197, 94, 0.15);
    color: #4ade80;
}

.session-time {
    font-size: 12px;
    color: #777777;
}

.btn-session-remove {
    padding: 8px 16px;
    background-color: transparent;
    color: #9a9a9a;
    border: 1px solid #222222;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.btn-session-remove:hover {
    background-color: #161616;
    color: #e0e0e0;
    border-color: #2a2a2a;
}

.sessions-actions {
    display: flex;
    justify-content: flex-end;
}

.sessions-actions .btn-danger {
    padding: 10px 20px;
}

/* ========== Delete Account Page Styles ========== */
.delete-account-container {
    max-width: 700px;
}

.delete-account-warning {
    background-color: #121212;
    border: 1px solid #2a1a1a;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
}

.warning-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
}

.warning-icon i {
    font-size: 32px;
    color: #ff6b6b;
}

.delete-account-warning h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.warning-description {
    font-size: 14px;
    color: #9a9a9a;
    line-height: 1.6;
    margin: 0;
}

.delete-account-card {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.delete-account-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.delete-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delete-list li {
    font-size: 13px;
    color: #9a9a9a;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.delete-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #5a5a5a;
}

.delete-account-form {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.delete-account-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
}

.btn-danger-delete {
    padding: 10px 24px;
    background-color: #ff6b6b;
    color: #ffffff;
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-danger-delete:hover {
    background-color: #ff5252;
    border-color: #ff5252;
}

.btn-danger-delete i {
    font-size: 12px;
}

.add-payment-form-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
}

.payment-form-section {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 24px;
}

.payment-form-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

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

.form-group-full {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-half {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.payment-form label {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
}

.card-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.card-number-input {
    padding-right: 40px;
}

.card-icon {
    position: absolute;
    right: 12px;
    color: #5a5a5a;
    font-size: 18px;
    pointer-events: none;
}

.payment-form .input-field {
    background-color: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 6px;
    padding: 9px 12px;
    color: #e0e0e0;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.15s ease;
    width: 100%;
}

.payment-form .input-field:focus {
    outline: none;
    border-color: #333333;
    background-color: #0f0f0f;
}

.payment-form .input-field:hover:not(:focus) {
    border-color: #2a2a2a;
}

.payment-form .input-field::placeholder {
    color: #5a5a5a;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
}

.payment-security-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.security-badge {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.security-badge i {
    font-size: 24px;
    color: #4ade80;
    margin-top: 2px;
}

.security-badge h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.security-badge p {
    font-size: 12px;
    color: #9a9a9a;
    line-height: 1.5;
}

.accepted-cards {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accepted-cards span {
    font-size: 12px;
    color: #777777;
}

.card-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.card-icons i {
    font-size: 32px;
    color: #5a5a5a;
}

@media (max-width: 1200px) {
    .add-payment-form-container {
        grid-template-columns: 1fr;
    }
}

/* ========== Breadcrumbs Navigation ========== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #9a9a9a;
}

.breadcrumbs a {
    color: #ff8a00;
    text-decoration: none;
    transition: color 0.15s ease;
    cursor: pointer;
}

.breadcrumbs a:hover {
    color: #ffa533;
    text-decoration: underline;
}

.breadcrumbs i {
    font-size: 10px;
    color: #5a5a5a;
}

.breadcrumbs span {
    color: #e0e0e0;
}

.page-subtitle {
    font-size: 14px;
    color: #9a9a9a;
    margin: 0 0 32px 0;
}

/* ========== Usage Analytics & Charts ========== */
.analytics-charts-section {
    margin-top: 32px;
    margin-bottom: 32px;
}

.analytics-charts-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.chart-card {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 24px;
}

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

.chart-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.chart-period-selector {
    display: flex;
    gap: 6px;
}

.period-btn {
    padding: 6px 12px;
    background-color: transparent;
    border: 1px solid #222222;
    color: #9a9a9a;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.period-btn:hover {
    background-color: #161616;
    border-color: #2a2a2a;
    color: #e0e0e0;
}

.period-btn.active {
    background-color: #1a1a1a;
    border-color: #2a2a2a;
    color: #ffffff;
}

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

/* ========== API Keys Management ========== */
.api-keys-header-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.api-keys-header-minimal h1 {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.api-keys-table-container {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

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

.api-keys-table thead {
    background-color: #0f0f0f;
}

.api-keys-table th {
    text-align: left;
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 600;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #1a1a1a;
}

.api-keys-table tbody tr {
    border-bottom: 1px solid #1a1a1a;
    transition: background-color 0.15s ease;
}

.api-keys-table tbody tr:last-child {
    border-bottom: none;
}

.api-keys-table tbody tr:hover {
    background-color: #161616;
}

.api-keys-table td {
    padding: 16px 20px;
    font-size: 13px;
    color: #e0e0e0;
    vertical-align: middle;
}

.api-key-name-cell {
    font-weight: 500;
    color: #ffffff;
}

.api-key-value-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.api-key-value-cell code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #9a9a9a;
    word-break: break-all;
    user-select: all;
    min-width: 0;
}

.btn-copy-key-minimal {
    background-color: transparent;
    border: none;
    color: #5a5a5a;
    padding: 6px;
    cursor: pointer;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-copy-key-minimal:hover {
    color: #9a9a9a;
}

.btn-copy-key-minimal i {
    font-size: 12px;
}

.api-key-date-cell {
    color: #9a9a9a;
    font-size: 12px;
}

.api-key-actions-cell {
    text-align: right;
}

.btn-revoke-minimal {
    background-color: transparent;
    border: none;
    color: #5a5a5a;
    padding: 6px;
    cursor: pointer;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-revoke-minimal:hover {
    color: #ff6b6b;
}

.btn-revoke-minimal i {
    font-size: 13px;
}

.api-key-warning {
    background-color: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.api-key-warning i {
    color: #ffa500;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.api-key-warning p {
    margin: 0;
    font-size: 13px;
    color: #e0e0e0;
    line-height: 1.5;
}

.api-key-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 16px;
}

.api-key-display code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #e0e0e0;
    word-break: break-all;
    user-select: all;
}

.form-hint {
    font-size: 11px;
    color: #777777;
    margin-top: 6px;
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.form-hint i {
    font-size: 10px;
    color: #5a5a5a;
    margin-top: 2px;
    flex-shrink: 0;
}

.label-required {
    color: #ff6b6b;
    margin-left: 2px;
}

/* ========== API Key Modal Specific Styles ========== */
.api-key-modal {
    max-width: 440px;
}

.api-key-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.api-key-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.api-key-form label {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
}

.api-key-form .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
}

/* ========== Help & Support Center ========== */
.help-container {
    max-width: 1000px;
}

.help-section {
    margin-bottom: 48px;
}

.help-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.faq-item:hover {
    border-color: #2a2a2a;
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 15px;
    font-weight: 500;
    color: #e0e0e0;
    margin: 0;
}

.faq-question i {
    color: #5a5a5a;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px 24px;
}

.faq-answer p {
    font-size: 13px;
    color: #9a9a9a;
    line-height: 1.6;
    margin: 0;
}

.contact-support-card {
    background-color: #121212;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 32px;
}

.contact-description {
    font-size: 14px;
    color: #9a9a9a;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form label {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

@media (max-width: 1200px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}
