/* ===== CSS Reset & Variables ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(20, 20, 35, 0.85);
    --bg-input: rgba(30, 30, 50, 0.6);
    --border-color: rgba(99, 102, 241, 0.2);
    --border-focus: rgba(99, 102, 241, 0.6);
    --text-primary: #e8e8ef;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
    --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== Animated Background ===== */
.bg-pattern { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-pattern::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(167,139,250,0.04) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
}
@keyframes bgFloat {
    0%,100% { transform: translate(0,0) rotate(0deg); }
    33% { transform: translate(2%,-2%) rotate(1deg); }
    66% { transform: translate(-1%,1%) rotate(-0.5deg); }
}

.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: orbFloat 15s ease-in-out infinite; }
.orb-1 { width: 400px; height: 400px; background: rgba(99,102,241,0.12); top: 10%; left: 15%; }
.orb-2 { width: 350px; height: 350px; background: rgba(139,92,246,0.1); bottom: 10%; right: 15%; animation-delay: -5s; }
.orb-3 { width: 250px; height: 250px; background: rgba(167,139,250,0.08); top: 50%; left: 60%; animation-delay: -10s; }
@keyframes orbFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    25% { transform: translate(30px,-40px) scale(1.1); }
    50% { transform: translate(-20px,20px) scale(0.95); }
    75% { transform: translate(15px,30px) scale(1.05); }
}

/* ===== Auth Container ===== */
.auth-wrapper { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.auth-card {
    width: 100%; max-width: 520px;
    background: var(--bg-card); backdrop-filter: blur(20px);
    border: 1px solid var(--border-color); border-radius: var(--radius-xl);
    padding: 40px; box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: cardSlideUp 0.6s cubic-bezier(0.16,1,0.3,1);
}
.auth-card.wide { max-width: 640px; }
@keyframes cardSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Logo / Header ===== */
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo {
    width: 56px; height: 56px; background: var(--accent-gradient); border-radius: var(--radius-md);
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(99,102,241,0.3); animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse { 0%,100% { box-shadow: 0 8px 24px rgba(99,102,241,0.3); } 50% { box-shadow: 0 8px 32px rgba(99,102,241,0.5); } }
.auth-logo i { font-size: 24px; color: white; }
.auth-header h1 { font-size: 24px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; letter-spacing: -0.5px; }
.auth-header p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ===== Alert Messages ===== */
.alert { padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 20px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 10px; animation: alertSlide 0.4s ease; }
@keyframes alertSlide { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.alert-success { background: var(--success-bg); border: 1px solid rgba(16,185,129,0.3); color: var(--success); }
.alert-error { background: var(--error-bg); border: 1px solid rgba(239,68,68,0.3); color: var(--error); }

/* ===== Form Styles ===== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; position: relative; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-group label .required { color: var(--accent-primary); margin-left: 2px; }
.input-wrapper { position: relative; }
.input-wrapper i.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; transition: var(--transition); z-index: 2; }
.form-control {
    width: 100%; padding: 12px 14px 12px 42px;
    background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-md);
    color: var(--text-primary); font-size: 14px; font-family: 'Inter', sans-serif;
    transition: var(--transition); outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus { border-color: var(--border-focus); background: rgba(30,30,55,0.8); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-control:focus ~ .input-icon { color: var(--accent-primary); }
.form-control.is-invalid { border-color: var(--error); box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
textarea.form-control { min-height: 80px; resize: vertical; padding-top: 12px; }
textarea.form-control ~ .input-icon { top: 20px; transform: none; }
.input-error { font-size: 12px; color: var(--error); margin-top: 4px; display: flex; align-items: center; gap: 4px; animation: alertSlide 0.3s ease; }
.input-error i { font-size: 11px; }

/* ===== Password Toggle ===== */
.password-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; font-size: 14px; transition: var(--transition); z-index: 2; }
.password-toggle:hover { color: var(--accent-primary); }

/* ===== Submit Button ===== */
.btn-primary {
    width: 100%; padding: 14px 24px; background: var(--accent-gradient); color: white; border: none; border-radius: var(--radius-md);
    font-size: 15px; font-weight: 600; font-family: 'Inter', sans-serif; cursor: pointer; transition: var(--transition);
    position: relative; overflow: hidden; margin-top: 8px;
}
.btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); transition: left 0.5s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.4); }
.btn-primary:hover::before { left: 100%; }
.btn-primary:active { transform: translateY(0); }
.btn-primary i { margin-right: 8px; }

/* ===== Auth Footer ===== */
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }
.auth-footer a { color: var(--accent-primary); text-decoration: none; font-weight: 600; transition: var(--transition); }
.auth-footer a:hover { color: var(--accent-secondary); text-decoration: underline; }

/* ===== Remember Me ===== */
.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent-primary); cursor: pointer; }
.form-check label { font-size: 13px; color: var(--text-secondary); cursor: pointer; margin-bottom: 0; }

/* ===== Dashboard Nav ===== */
.dashboard-wrapper { position: relative; z-index: 1; min-height: 100vh; }
.dashboard-nav {
    background: var(--bg-card); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color);
    padding: 0 32px; display: flex; align-items: center; justify-content: space-between; height: 64px;
    position: sticky; top: 0; z-index: 100;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand .nav-logo { width: 36px; height: 36px; background: var(--accent-gradient); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.nav-brand .nav-logo i { font-size: 16px; color: white; }
.nav-brand span { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-avatar { width: 36px; height: 36px; background: var(--accent-gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: white; }
.nav-user-info { display: flex; flex-direction: column; }
.nav-user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.nav-user-email { font-size: 11px; color: var(--text-muted); }
.btn-logout {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: var(--error);
    border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; font-family: 'Inter', sans-serif;
    cursor: pointer; transition: var(--transition);
}
.btn-logout:hover { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); transform: translateY(-1px); }

/* ===== Dashboard Content ===== */
.dashboard-content { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
.welcome-section { margin-bottom: 32px; animation: cardSlideUp 0.5s ease; }
.welcome-section h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.welcome-section h2 span { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.welcome-section p { font-size: 15px; color: var(--text-secondary); }

/* ===== Profile Card ===== */
.profile-card {
    background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid var(--border-color);
    border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md), var(--shadow-glow);
    animation: cardSlideUp 0.6s ease;
}
.profile-card-header { background: var(--accent-gradient); padding: 28px 32px; display: flex; align-items: center; gap: 20px; }
.profile-avatar {
    width: 72px; height: 72px; background: rgba(255,255,255,0.2); border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800; color: white; flex-shrink: 0;
}
.profile-header-info h3 { font-size: 22px; font-weight: 700; color: white; margin-bottom: 4px; }
.profile-header-info p { font-size: 14px; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 6px; }
.profile-card-body { padding: 32px; }
.profile-section-title {
    font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 20px;
    padding-bottom: 12px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 10px;
}
.profile-section-title i { color: var(--accent-primary); font-size: 15px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profile-field {
    padding: 16px; background: var(--bg-input); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); transition: var(--transition);
}
.profile-field:hover { border-color: var(--border-focus); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.profile-field.full-width { grid-column: 1 / -1; }
.profile-field-label {
    font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.8px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.profile-field-label i { font-size: 12px; color: var(--accent-primary); }
.profile-field-value { font-size: 15px; font-weight: 500; color: var(--text-primary); word-break: break-word; }

/* ===== Profile Header — YouTube Style ===== */
.profile-card-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: visible;
    background: none;
}

/* Banner — NO overflow:hidden so the dropdown isn't clipped */
.profile-banner-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    flex-shrink: 0;
    /* clip rounded corners without clipping absolute dropdowns */
    clip-path: inset(0 0 0 0 round var(--radius-xl) var(--radius-xl) 0 0);
}
.profile-banner {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}
.profile-banner-empty {
    width: 100%; height: 100%;
    background: linear-gradient(135deg,
        rgba(18,18,30,1) 0%,
        rgba(26,24,50,1) 40%,
        rgba(20,18,40,1) 70%,
        rgba(12,12,22,1) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255,255,255,0.18);
    font-size: 13px;
    letter-spacing: 0.5px;
    user-select: none;
}
.profile-banner-empty i {
    font-size: 28px;
    opacity: 0.35;
}
.profile-banner-preview {
    width: 100%; height: 100%;
    object-fit: cover;
    display: none;
}

/* Banner edit zone — positioned OVER the banner from outside the clip-path wrapper */
.banner-edit-zone {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 20;    /* above banner and its clip-path */
}
/* The pencil button itself is now a normal button inside the zone */
.banner-edit-btn {
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    transition: var(--transition);
}
.banner-edit-btn:hover {
    background: rgba(0,0,0,0.75);
    border-color: rgba(255,255,255,0.35);
    color: white;
    transform: scale(1.08);
}

/* Avatar row — LEFT: avatar+info  |  RIGHT: action buttons */
.profile-avatar-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 32px 18px;
    margin-top: -44px;
    position: relative;
    z-index: 5;
    gap: 16px;
}
/* LEFT group: avatar circle + name/email */
.profile-avatar-left {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-shrink: 0;
}
/* RIGHT group: action bars, bottom-aligned */
.profile-avatar-right {
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
    padding-bottom: 0;
    transform: translateY(16px);
}

/* Avatar wrapper — explicit size so bottom/right anchoring works */
.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 88px;
    height: 88px;
}
/* The dropdown wrapper is anchored to bottom-right of the avatar circle */
.profile-avatar-wrapper .edit-dropdown-wrapper {
    position: absolute;
    bottom: 4px;
    right: 4px;
    z-index: 15;
}
/* Avatar — position:relative so child images absolutely fill the circle */
.profile-avatar {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 4px solid #12121a;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    transition: var(--transition);
    flex-shrink: 0;
}
/* Initials centered inside the circle */
.avatar-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: white;
    pointer-events: none;
}
/* Images fill the circle absolutely */
.profile-avatar img,
.profile-avatar .avatar-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Preview hidden by default */
.profile-avatar .avatar-preview-img {
    display: none;
}

/* Avatar camera edit button — sits in the absolutely positioned wrapper */
.avatar-edit-btn {
    width: 28px;
    height: 28px;
    background: rgba(15,15,28,0.92);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.avatar-edit-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}
/* Avatar dropdown opens upward so it's never clipped */
.profile-avatar-wrapper .edit-dropdown {
    bottom: calc(100% + 8px);
    top: auto;
    left: 0;
    right: auto;
}

/* Profile header info (name/email beside avatar) */
.profile-header-info {
    padding-bottom: 6px;
    flex: 1;
}
.profile-header-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}
.profile-header-info p {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.profile-header-info p i { color: var(--accent-primary); font-size: 12px; }

/* ── Dropdowns ─────────────────────────────── */
.edit-dropdown-wrapper { position: relative; display: inline-block; }
.edit-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 175px;
    background: rgba(22,22,38,0.97);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 200;
    overflow: hidden;
    transform: translateY(-6px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.edit-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.edit-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
}
.edit-dropdown-item i { font-size: 13px; width: 16px; text-align: center; color: var(--text-muted); transition: color 0.15s ease; }
.edit-dropdown-item:hover { background: rgba(99,102,241,0.1); color: var(--accent-primary); }
.edit-dropdown-item:hover i { color: var(--accent-primary); }
.edit-dropdown-item.danger:hover { background: rgba(239,68,68,0.1); color: var(--error); }
.edit-dropdown-item.danger:hover i { color: var(--error); }
.edit-dropdown-divider { height: 1px; background: rgba(99,102,241,0.15); margin: 2px 0; }

/* ── Update button bar ─────────────────────── */
/* Action bars — inside .profile-avatar-right, hidden by default */
.profile-images-actions {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    animation: alertSlide 0.22s ease;
}
.profile-images-actions.visible { display: flex; }

.profile-images-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Danger variant (shown when remove is staged) */
.btn-remove-confirm {
    padding: 10px 26px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}
.btn-remove-confirm:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239,68,68,0.4); }
.btn-remove-confirm:active { transform: translateY(0); }
.btn-update-images {
    padding: 10px 26px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-update-images::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.btn-update-images:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99,102,241,0.4); }
.btn-update-images:hover::before { left: 100%; }
.btn-update-images:active { transform: translateY(0); }
.btn-cancel-images {
    padding: 10px 18px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}
.btn-cancel-images:hover { border-color: var(--border-focus); color: var(--text-primary); }
.actions-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
    text-align: right;
    display: inline-block;
}
.actions-hint:empty {
    display: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .auth-card { padding: 28px 20px; }
    .auth-card.wide { max-width: 100%; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .dashboard-nav { padding: 0 16px; }
    .nav-user-info { display: none; }
    .dashboard-content { padding: 24px 16px; }
    .welcome-section h2 { font-size: 22px; }
    .profile-banner-wrapper { height: 140px; }
    .profile-avatar-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -36px;
        gap: 16px;
        padding: 0 16px 20px;
    }
    .profile-avatar-left {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .profile-avatar-right {
        align-items: center;
        padding-bottom: 0;
        width: 100%;
        justify-content: center;
        transform: none;
    }
    .profile-images-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        align-items: center;
    }
    .profile-images-buttons {
        display: flex;
        width: 100%;
        gap: 10px;
    }
    .profile-images-buttons button {
        width: 100%;
        flex: 1;
    }
    .actions-hint {
        margin-left: 0;
        margin-top: 4px;
        text-align: center;
    }
    .profile-avatar { width: 72px; height: 72px; font-size: 26px; }
    .profile-header-info h3 { font-size: 16px; }
    .profile-card-body { padding: 20px; }
    .profile-grid { grid-template-columns: 1fr; }
    .btn-logout span { display: none; }
}

@media (max-width: 480px) {
    .auth-wrapper { padding: 16px; }
    .auth-card { padding: 24px 16px; border-radius: var(--radius-lg); }
    .auth-header h1 { font-size: 20px; }
    .profile-banner-wrapper { height: 110px; }
    .profile-avatar { width: 60px; height: 60px; font-size: 22px; }
    .profile-avatar-wrapper { width: 60px; height: 60px; }
    .profile-header-info h3 { font-size: 15px; }
}

/* ===== Hidden file inputs ===== */
#avatarFileInput,
#bannerFileInput {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

/* ===== Toast Notification ===== */
.toast-notification {
    position: fixed;
    bottom: 28px;
    right: 28px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    backdrop-filter: blur(12px);
    max-width: 340px;
}
.toast-notification.toast-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.toast-notification.toast-success {
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.4);
    color: #10b981;
}
.toast-notification.toast-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.4);
    color: #ef4444;
}
.toast-notification i { font-size: 16px; }
