/*
=====================================================
  STYLES FOR EXCEPTIONAL & ADVANCED ACCOUNT DASHBOARD (V3)
  This is your original CSS file, preserved perfectly.
=====================================================
*/
.account-main { padding: 2rem 0 4rem; position: relative; }
.dashboard-grid-v2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; animation: fadeIn 0.5s ease-out forwards; }
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.5rem; }
.dashboard-sidebar-v2 { background: var(--surface-color); border-radius: var(--border-radius-lg); padding: 1.5rem; border: 1px solid var(--border-color); display: flex; flex-direction: column; }
.profile-summary { text-align: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.profile-avatar { position: relative; cursor: pointer; width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1rem; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid var(--primary-color); transition: filter 0.2s; }
.profile-avatar:hover img { filter: brightness(0.7); }
.avatar-progress-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg); display: none; }
.progress-ring-track { stroke: var(--border-color); opacity: 0.5; }
.progress-ring-circle { transition: stroke-dashoffset 0.3s; transform-origin: center; stroke: var(--primary-color); }
.profile-summary .profile-name { font-size: 1.25rem; font-weight: 600; word-break: break-word; }
.profile-summary .profile-email { font-size: 0.9rem; color: var(--text-secondary); word-break: break-all; }
.dashboard-nav { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.nav-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: 0.5rem; color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: all 0.2s; }
.nav-item.active { background-color: var(--primary-color); color: white; }
.nav-item:not(.active):hover { background-color: var(--secondary-hover); color: var(--text-primary); }
.nav-item svg { width: 20px; height: 20px; }
.sidebar-footer { margin-top: auto; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s; }
.welcome-header { margin-bottom: 2rem; }
.welcome-header h1 { font-size: clamp(1.8rem, 5vw, 2.25rem); }
.welcome-header p { color: var(--text-secondary); }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
.stat-card { background-color: var(--surface-color); border-radius: var(--border-radius-lg); padding: 1.5rem; border: 1px solid var(--border-color); }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--primary-color); }
.stat-label { font-size: 0.9rem; color: var(--text-secondary); margin-top: 0.25rem; }
.settings-card { background-color: var(--surface-color); padding: 1.5rem; border-radius: var(--border-radius-lg); border: 1px solid var(--border-color); margin-bottom: 1.5rem; }
.settings-card h3 { font-size: 1.25rem; margin-bottom: 1.5rem; }
.settings-form, .setting-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.setting-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; max-width: 450px; }
.btn-danger { background-color: #ef4444; color: white; }
.danger-zone { border-color: #ef4444; }
.settings-message { font-size: 0.9rem; margin-top: 1.5rem; font-weight: 500; padding: 0.75rem; border-radius: 0.5rem; text-align: center; display: none; }
.settings-message.success { color: #22c55e; background-color: color-mix(in srgb, #22c55e 15%, transparent); }
.settings-message.error { color: #ef4444; background-color: color-mix(in srgb, #ef4444 15%, transparent); }
.settings-message.info { color: var(--primary-color); background-color: color-mix(in srgb, var(--primary-color) 15%, transparent); }
.download-list-container { display: flex; flex-direction: column; gap: 1rem; }
.download-item-v2 { display: flex; align-items: center; gap: 1rem; background-color: var(--surface-color); padding: 1rem; border-radius: var(--border-radius-md); border: 1px solid var(--border-color); flex-wrap: wrap; }
.download-item-image { width: 50px; height: 50px; border-radius: 0.5rem; object-fit: cover; flex-shrink: 0; }
.download-item-details { flex-grow: 1; }
.download-item-details h3 { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.download-item-details p { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.25rem; }
.btn-download { padding: 0.6rem 1rem; font-size: 0.9rem; flex-shrink: 0; flex-basis: 100%; margin-top: 0.5rem; justify-content: center; }
.empty-state-card { background-color: var(--surface-color); padding: 3rem 1.5rem; border-radius: var(--border-radius-lg); border: 2px dashed var(--border-color); text-align: center; }
.empty-state-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.empty-state-card p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.order-history-table table { width: 100%; border-collapse: collapse; background-color: var(--surface-color); border-radius: var(--border-radius-lg); border: 1px solid var(--border-color); overflow: hidden; }
.order-history-table th, .order-history-table td { padding: 1rem; text-align: left; }
.order-history-table thead { display: none; }
.order-history-table tr { display: block; margin-bottom: 1rem; border-radius: var(--border-radius-md); background-color: var(--bg-color); border: 1px solid var(--border-color); }
.order-history-table tr:last-child { margin-bottom: 0; }
.order-history-table td { display: flex; justify-content: space-between; align-items: center; text-align: right; border-bottom: 1px dashed var(--border-color); }
.order-history-table td:last-child { border-bottom: none; }
.order-history-table td::before { content: attr(data-label); font-weight: 600; color: var(--text-secondary); text-align: left; margin-right: 1rem; }
.no-history-cell { text-align: center !important; padding: 2rem; }
.no-history-cell::before { content: "" !important; }
.status-badge { padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.status-badge.completed { background-color: color-mix(in srgb, #22c55e 15%, transparent); color: #22c55e; }
.verification-prompt-card { background: var(--surface-color); padding: 2rem; border-radius: var(--border-radius-lg); border: 1px solid var(--border-color); text-align: center; max-width: 600px; margin: 4rem auto; animation: fadeIn 0.5s; }
.verification-prompt-card h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.verification-prompt-card p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 2rem; }
.verification-prompt-card .btn { margin: 0.5rem; }
.resend-message { margin-top: 1.5rem; font-size: 0.9rem; font-weight: 500; min-height: 1.2em; }
@media (min-width: 576px) { .btn-download { flex-basis: auto; margin-top: 0; } }
@media (min-width: 768px) { .stats-grid { grid-template-columns: 1fr 1fr; } .settings-form, .setting-item { flex-direction: row; align-items: center; justify-content: space-between; } .order-history-table thead { display: table-header-group; } .order-history-table tr { display: table-row; background-color: transparent; border: none; } .order-history-table td { display: table-cell; text-align: left; border-bottom: 1px solid var(--border-color); } .order-history-table tr:last-child td { border-bottom: none; } .order-history-table td::before { display: none; } }
@media (min-width: 992px) { .dashboard-grid-v2 { grid-template-columns: 280px 1fr; gap: 2rem; } .dashboard-sidebar-v2 { position: sticky; top: 120px; align-self: start; } }







/* =====================================================
  UPGRADE 1: ENHANCED GLASS & HOVER GLOW
===================================================== */

/* Make the stat cards and settings cards feel more "glassy" */
.stat-card, .settings-card, .download-item-v2 {
    background: color-mix(in srgb, var(--surface-color) 30%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
    transition: all 0.2s ease-in-out;
}

/* Add a beautiful glow on hover to interactive elements */
.stat-card:hover, .settings-card:hover, .download-item-v2:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
    box-shadow: 0 0 25px color-mix(in srgb, var(--primary-color) 10%, transparent);
}

/* Make the active sidebar navigation item pop more */
.dashboard-nav .nav-item.active {
    background-color: var(--primary-color);
    box-shadow: 0 5px 15px color-mix(in srgb, var(--primary-color) 25%, transparent);
    transform: scale(1.03);
}


/* =====================================================
  UPGRADE 2: IMPROVED TYPOGRAPHY & VISUAL HIERARCHY
===================================================== */

/* Make the main welcome header larger and more impactful */
.welcome-header h1 {
    font-size: clamp(2rem, 5vw, 2.75rem); /* Makes it responsive */
    font-weight: 800; /* Bolder */
    letter-spacing: -1px; /* Tighter letter spacing for big text */
    line-height: 1.2;
}

/* Add a subtle gradient to the username for emphasis */
#welcome-user-name {
    background: linear-gradient(90deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 50%, #fff));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}


/* Improve the look of the stat cards */
.stat-card .stat-value {
    font-size: 2.5rem; /* Bigger numbers */
    font-weight: 800;
}

.stat-card .stat-label {
    font-size: 1rem; /* Slightly larger labels */
    font-weight: 500;
    color: var(--text-secondary);
}

/* Improve section titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem; /* More space after the title */
}


/* =====================================================
  UPGRADE: ATTRACTIVE INPUTS & BUTTONS FOR SETTINGS
  These styles are targeted and will NOT affect other tabs.
===================================================== */

/* --- General Settings Card Layout --- */
#settings-panel .settings-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    background-color: var(--surface-color);
}

#settings-panel .settings-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* --- The Attractive "Glass" Textbox --- */
#settings-panel .input-group-glass {
    width: 100%;
    position: relative;
}

#settings-panel .input-group-glass label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

#settings-panel .input-group-glass input {
    width: 100%;
    background: color-mix(in srgb, var(--bg-color) 50%, transparent);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    font-size: 1rem;
    outline: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

/* The attractive focus glow */
#settings-panel .input-group-glass input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 20%, transparent);
    background: var(--surface-color);
}


/* --- Responsive Form & Item Layout --- */
#settings-panel .settings-form,
#settings-panel .setting-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* On larger screens, make form elements and items sit side-by-side */
@media (min-width: 768px) {
    #settings-panel .settings-form,
    #settings-panel .setting-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    #settings-panel .input-group-glass {
        flex-grow: 1; /* Allows the input to take up available space */
        margin-right: 1.5rem;
    }
}


/* --- Upgraded Button Styles --- */
/* Add a subtle "lift" effect to all buttons in the settings panel on hover */
#settings-panel .btn {
    transition: transform 0.2s ease-out;
}
#settings-panel .btn:hover {
    transform: translateY(-2px);
}




/* =====================================================
  UPGRADE: A TRULY ATTRACTIVE DELETE BUTTON
===================================================== */

/* --- Targeting the button ONLY inside the settings panel --- */
#settings-panel .btn-danger {
    /* Base Appearance */
    background: linear-gradient(145deg, #c81e1e, #a01313); /* Gradient for depth */
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px; /* Adds a professional touch */
    border: none;
    border-radius: 0.5rem; /* Your theme's border-radius */
    padding: 0.75rem 1.5rem;
    
    /* A subtle shadow for a "floating" look */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    /* The key to smooth animations */
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    cursor: pointer;
}

/* --- The "Lift & Glow" Hover Effect --- */
/* This is what happens when the user's mouse is over the button */
#settings-panel .btn-danger:hover {
    /* Lift the button up */
    transform: translateY(-4px);
    
    /* Make the button brighter */
    background: linear-gradient(145deg, #dc2626, #b91c1c);
    
    /* Add a prominent red glow */
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

/* --- The "Press Down" Active Effect --- */
/* This is what happens when the user clicks and holds the button */
#settings-panel .btn-danger:active {
    /* Press the button down */
    transform: translateY(0px);
    
    /* Remove the glow to make it feel grounded */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* =====================================================
  UPGRADE: ATTRACTIVE DELETE ACCOUNT MODAL
===================================================== */

/* --- The full-screen background overlay --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0; /* Starts hidden for animation */
    animation: fadeIn 0.3s forwards;
}

/* --- The modal "card" itself --- */
.modal-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: scale(0.95); /* Starts smaller for animation */
    animation: fadeInScaleUp 0.3s forwards 0.1s;
    opacity: 0;
}

/* --- Animations --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInScaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Modal Icon (the warning triangle) --- */
.modal-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon-wrapper.danger {
    background-color: color-mix(in srgb, #ef4444 15%, transparent);
    color: #ef4444;
}

.modal-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

/* --- Modal Text & Content --- */
.modal-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.modal-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 1rem 0 2rem;
}

.modal-confirmation-input {
    text-align: left;
    margin-bottom: 2rem;
}

.modal-confirmation-input label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.modal-confirmation-input input {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    background-color: var(--secondary-hover);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: var(--text-primary);
}
.modal-confirmation-input input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px color-mix(in srgb, #ef4444 20%, transparent);
    outline: none;
}

/* --- Modal Action Buttons --- */
.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Style for the disabled delete button */
.btn-danger:disabled {
    background-color: #4b1f1f;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #4b1f1f;
    transform: none;
    box-shadow: none;
}