/* ============================================================
   ROOT VARIABLES & BASE STYLES
   ============================================================ */

:root {
    --font-main: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 999px;
    --shadow-soft: 0 1px 3px rgba(31,35,40,0.12), 0 8px 24px rgba(66,74,83,0.12);
    --shadow-medium: 0 4px 16px rgba(31,35,40,0.12), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-heavy: 0 8px 32px rgba(31,35,40,0.18);
    --shadow-glow: 0 0 12px rgba(9,105,218,0.3);

    /* ───── SUBSA LIGHT MODE ───── */
    --bg-body: #f6f8fa;
    --bg-elevated: #ffffff;
    --bg-elevated-soft: #f6f8fa;
    --border-soft: #d0d7de;
    --text-main: #1f2328;
    --text-muted: #656d76;
    --accent: #0969da;
    --accent-glow: rgba(9,105,218,0.2);
    --accent-soft: rgba(9,105,218,0.08);
    --accent-soft-strong: rgba(9,105,218,0.15);
    --accent-contrast: #ffffff;
    --danger: #d1242f;
    --danger-glow: rgba(209,36,47,0.2);
    --success: #1a7f37;
    --success-glow: rgba(26,127,55,0.25);
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

body.dark-mode {
    /* ───── SUBSA DARK MODE ───── */
    --bg-body: #0d1117;
    --bg-elevated: #161b22;
    --bg-elevated-soft: #21262d;
    --border-soft: #30363d;
    --text-main: #e6edf3;
    --text-muted: #7d8590;
    --accent: #2f81f7;
    --accent-glow: rgba(47,129,247,0.25);
    --accent-soft: rgba(47,129,247,0.12);
    --accent-soft-strong: rgba(47,129,247,0.2);
    --accent-contrast: #ffffff;
    --danger: #f85149;
    --danger-glow: rgba(248,81,73,0.2);
    --success: #3fb950;
    --success-glow: rgba(63,185,80,0.3);
}

/* ─────────────────────────────────────────
   BODY & BASE — Clean SUBSA
───────────────────────────────────────── */
body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    line-height: 1.5;
    
	background-image: 
		radial-gradient(ellipse at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
		radial-gradient(ellipse at 85% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
		radial-gradient(ellipse at 40% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
		repeating-linear-gradient(45deg, rgba(59, 130, 246, 0.03) 0px, rgba(59, 130, 246, 0.03) 2px, transparent 2px, transparent 30px);
	background-repeat: no-repeat, no-repeat, no-repeat, repeat;
	background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px;
}

/*
    background-image: 
        repeating-linear-gradient(45deg, rgba(59, 130, 246, 0.08) 0px, rgba(59, 130, 246, 0.08) 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(-45deg, rgba(37, 99, 235, 0.06) 0px, rgba(37, 99, 235, 0.06) 1px, transparent 1px, transparent 25px),
        radial-gradient(circle, rgba(96, 165, 250, 0.15) 1px, transparent 1px);
    background-size: 48px 48px, 52px 52px, 28px 28px;
    background-position: center center;
    background-repeat: repeat;
}
*/

html { scroll-behavior: smooth; }

/* ───── Premium Scrollbar (Blue Accent) ───── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-elevated-soft); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); opacity: 0.8; }
* { scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg-elevated-soft); }

body.dark-mode .text-muted {
    color: var(--text-muted) !important;
}

/* ─────────────────────────────────────────
   HEADER — SUBSA top-nav feel
───────────────────────────────────────── */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    backdrop-filter: blur(0);
    background: #24292f;
    border-bottom: 1px solid rgba(48,54,61,0.8);
    box-shadow: none;
}
body.dark-mode .app-header {
    background: #161b22;
    border-bottom: 1px solid var(--border-soft);
}
.app-header-inner {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* ─── BRAND with Glow (Blue) ─── */
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
}
.brand:hover { color: rgba(255,255,255,0.8); filter: drop-shadow(0 0 6px var(--accent-glow)); }
.brand-icon {
    width: 32px; height: 32px;
    border-radius: var(--radius-full);
    background: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(9,105,218,0.3);
}
.brand-icon::after {
    content: "";
    position: absolute; 
    inset: 0;
    border-radius: inherit;
    background: url("../uploads/images/subsa-logo.svg") center/contain no-repeat;
}
.brand-icon::after {
    animation: floatS 4s ease-in-out infinite;
}
@keyframes floatS {
    0%, 100% { 
        opacity: 1;
        transform: translateY(0) rotate(0deg);
        filter: drop-shadow(0 0 6px rgba(9,105,218,0.2));
    }
    50% { 
        opacity: 0.9;
        transform: translateY(-3px) rotate(0deg);
        filter: drop-shadow(0 0 12px rgba(47,129,247,0.4));
    }
}
.brand-subtitle {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
    margin-right: 0.1rem;
}

/* ─── TOP NAV Premium (Blue) ─── */
.top-nav {
    display: flex; gap: 0.5rem; align-items: center; font-size: 0.875rem;
}
.top-nav-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex; align-items: center; gap: 0.5rem;
    white-space: nowrap;
    border: 1px solid transparent;
}
.top-nav-link i { font-size: 1rem; }
.top-nav-link:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.1);
}
.top-nav-link.active {
    color: #ffffff;
    background-color: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.2);
}

/* ─── HEADER ACTIONS ─── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* ─── THEME TOGGLE Premium (Blue) ─── */
.theme-toggle {
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    width: 76px;
    height: 36px;
    padding: 3px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    user-select: none;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}
.theme-toggle-knob {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    background: var(--accent);
    top: 3px;
    right: 3px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    pointer-events: none;
}
body.dark-mode .theme-toggle-knob {
    right: 43px;
    background: #f0c040;
    color: #24292f;
}
.theme-toggle-icons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    pointer-events: none;
}
.theme-toggle-icons .bi-sun-fill {
    color: #f0c040 !important;
    opacity: 1 !important;
}
.theme-toggle-icons .bi-moon-stars-fill {
    color: rgba(255,255,255,0.3) !important;
    opacity: 0.6 !important;
}
body.dark-mode .theme-toggle-icons .bi-sun-fill {
    color: rgba(255,255,255,0.3) !important;
    opacity: 0.6 !important;
}
body.dark-mode .theme-toggle-icons .bi-moon-stars-fill {
    color: #f0c040 !important;
    opacity: 1 !important;
}

/* ─── MOBILE MENU BTN ─── */
.mobile-menu-btn {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.2);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    cursor: pointer; flex-shrink: 0;
    transition: all 0.2s ease;
}
.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: #ffffff;
}

/* ─── HEADER LOGIN BTN Premium (Blue) ─── */
.header-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.2rem;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
}
.header-login-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: #ffffff;
    opacity: 0.95;
}

/* ═══════════════════════════════════════════════════════════
   USER PROFILE — Premium (Blue)
═══════════════════════════════════════════════════════════ */
.user-profile-wrapper {
    position: relative;
    align-items: center;
}
.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.8rem 0.35rem 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.user-profile-trigger:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.35);
    color: #ffffff;
}
.user-profile-wrapper.open .user-profile-trigger {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.35);
}
.user-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.3);
}
.user-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-chevron {
    font-size: 0.75rem;
    opacity: 0.8;
    transition: transform 0.2s ease;
}
.user-profile-wrapper.open .profile-chevron {
    transform: rotate(180deg);
}

/* ─── DROPDOWN MENU Premium (Blue) ─── */
.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 210px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-heavy);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1060;
}
.user-profile-wrapper.open .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.dropdown-list {
    list-style: none;
    margin: 0; padding: 0;
}
.dropdown-list .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.dropdown-list .dropdown-item i {
    font-size: 1rem;
    color: var(--text-muted);
    width: 20px;
    text-align: center;
}
.dropdown-list .dropdown-item:hover {
    background: var(--accent-soft);
    color: var(--accent);
}
.dropdown-list .dropdown-item-danger { color: var(--danger); }
.dropdown-list .dropdown-item-danger i { color: var(--danger); }
.dropdown-list .dropdown-item-danger:hover { background: rgba(209,36,47,0.08); }
.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-soft), transparent);
    margin: 0.4rem 0.6rem;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   OFFCANVAS (MOBILE) Premium (Blue)
═══════════════════════════════════════════════════════════ */
.offcanvas-backdrop {
    position: fixed; inset: 0;
    background: rgba(31,35,40,0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1080;
}
.offcanvas-backdrop.show { opacity: 1; pointer-events: auto; }
.app-offcanvas {
    position: fixed;
    inset-block: 0;
    right: 0;
    width: 320px; max-width: 85%;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-heavy);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 1090;
    padding: 1.25rem 1.5rem;
    display: flex; flex-direction: column; gap: 1rem;
    border-left: 1px solid var(--border-soft);
    overflow-y: auto;
}
.app-offcanvas.open { transform: translateX(0); }
.app-offcanvas-header {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-soft);
}
.app-offcanvas-close {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.2s; font-size: 0.9rem;
}
.app-offcanvas-close:hover {
    background: var(--bg-elevated-soft);
    color: var(--text-main);
}
.app-offcanvas-nav {
    display: flex; flex-direction: column; gap: 0.25rem; padding-top: 0.5rem;
}
.app-offcanvas-link {
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid transparent;
    transition: all 0.2s;
    font-size: 0.9rem; font-weight: 600;
}
.app-offcanvas-link i { color: var(--text-muted); font-size: 1rem; width: 24px; }
.app-offcanvas-link:hover {
    background: var(--bg-elevated-soft);
}
.app-offcanvas-link.active {
    background: var(--accent-soft);
    border-color: var(--accent-soft-strong);
    color: var(--accent);
}
.app-offcanvas-link.active i { color: var(--accent); }
.offcanvas-link-danger       { color: var(--danger) !important; }
.offcanvas-link-danger i     { color: var(--danger) !important; }
.offcanvas-link-danger:hover { background: rgba(209,36,47,0.08) !important; }

/* ─── OFFCANVAS PROFILE Premium (Blue) ─── */
.offcanvas-profile-section {
    border-top: 1px solid var(--border-soft);
    padding-top: 1rem;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.offcanvas-profile-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.8rem 1rem;
    background: var(--accent-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
}
.offcanvas-avatar {
    width: 48px; height: 48px;
    border-radius: 50%; overflow: hidden; flex-shrink: 0;
    border: 2px solid var(--accent);
}
.offcanvas-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}
.offcanvas-profile-name {
    font-size: 1rem; font-weight: 800; color: var(--text-main);
}
.offcanvas-profile-role {
    font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem;
}
.offcanvas-profile-links {
    display: flex; flex-direction: column; gap: 0.15rem;
}

/* ─── OFFCANVAS LOGIN ─── */
.offcanvas-login-section {
    border-top: 1px solid var(--border-soft);
    padding-top: 1rem;
}

/* ─────────────────────────────────────────
   MAIN
───────────────────────────────────────── */
.app-main { padding: 2rem 0 4rem; }

/* ─────────────────────────────────────────
   HERO CARD — SUBSA repo header feel
───────────────────────────────────────── */
.hero-card {
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    padding: 0;
    box-shadow: 0 1px 3px rgba(31,35,40,0.1), 0 1px 2px rgba(66,74,83,0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    min-height: 240px;
}
body.dark-mode .hero-card { box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, var(--accent-soft) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}
.hero-top-bar {
    height: 3px;
    background: linear-gradient(90deg, #0969da 0%, #8250df 35%, #bc4c00 65%, #1a7f37 100%);
    flex-shrink: 0;
}
.hero-body {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    flex: 1;
}
.hero-left {
    flex: 1 1 340px;
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}
.hero-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}
body.dark-mode .hero-left::before { opacity: 0.15; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(26,127,55,0.12);
    color: var(--success);
    border: 1px solid rgba(26,127,55,0.3);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.9rem;
    width: fit-content;
    position: relative;
    z-index: 1;
}
body.dark-mode .hero-badge {
    background: rgba(63,185,80,0.12);
    border-color: rgba(63,185,80,0.3);
}
.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-heading {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0;
    line-height: 1.3;
    color: var(--text-main);
    position: relative;
    z-index: 1;
}
.hero-heading span {
    background: linear-gradient(135deg, #0969da 0%, #8250df 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body.dark-mode .hero-heading span {
    background: linear-gradient(135deg, #2f81f7 0%, #a371f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
.hero-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 36rem;
    line-height: 1.6;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.5rem;
    position: relative;
    z-index: 1;
}

/* ─── HERO RIGHT — Contribution-style cards ─── */
.hero-right {
    flex: 0 0 auto;
    width: 240px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
    background: var(--bg-elevated-soft);
    border-right: 1px solid var(--border-soft);
    position: relative;
    z-index: 1;
}
body.dark-mode .hero-right { background: rgba(255,255,255,0.02); }
.hero-stat-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: var(--bg-elevated);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 1px 3px rgba(31,35,40,0.06);
    transition: all 0.3s ease;
}
.hero-stat-card:hover {
    border-color: var(--accent-soft-strong);
    box-shadow: 0 3px 10px rgba(9,105,218,0.1);
}
.hero-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.hero-stat-icon.blue  { background: rgba(9,105,218,0.1); color: #0969da; }
.hero-stat-icon.purple{ background: rgba(130,80,223,0.1); color: #8250df; }
.hero-stat-icon.green { background: rgba(26,127,55,0.1); color: #1a7f37; }
body.dark-mode .hero-stat-icon.blue  { background: rgba(47,129,247,0.15); color: #2f81f7; }
body.dark-mode .hero-stat-icon.purple{ background: rgba(163,113,247,0.15); color: #a371f7; }
body.dark-mode .hero-stat-icon.green { background: rgba(63,185,80,0.15); color: #3fb950; }
.hero-stat-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.hero-stat-val   { font-size: 0.9rem; font-weight: 700; color: var(--text-main); }
@media (max-width: 768px) {
    .hero-right { display: none; }
    .hero-card  { min-height: unset; }
    .hero-left  { padding: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   TOOLS PAGE — SUBSA category style
═══════════════════════════════════════════════════════════ */
.tools-category-card {
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    box-shadow: 0 1px 3px rgba(31,35,40,0.06);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}
.tools-category-card:hover {
    box-shadow: 0 4px 16px rgba(31,35,40,0.1);
    border-color: var(--accent-soft-strong);
}
.tools-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-elevated-soft);
}
.tools-category-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.tools-category-title i {
    font-size: 1.2rem;
    color: var(--accent);
}
.tools-category-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.3rem 0 0;
}
.tools-category-body {
    padding: 1.5rem;
}
.tools-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.tools-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    letter-spacing: -0.02em;
}
.tools-page-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.35rem 0 0;
}

/* ─────────────────────────────────────────
   BUTTONS — SUBSA style with original animations
───────────────────────────────────────── */
.btn {
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-main);
    font-weight: 500;
    transition: all 0.15s ease;
    line-height: 1.4;
    white-space: nowrap;
    border: 1px solid;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}
.btn:hover::before {
    width: 200%;
    height: 200%;
}
.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset;
}
.btn-primary:hover {
    background: #0860ca;
    color: #ffffff;
    border-color: #0860ca;
}
body.dark-mode .btn-primary {
    background: #2f81f7;
    border-color: #2f81f7;
}
body.dark-mode .btn-primary:hover {
    background: #388bfd;
    border-color: #388bfd;
}
.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-main);
    border-color: var(--border-soft);
    box-shadow: 0 1px 0 rgba(31,35,40,0.04), 0 1px 0 rgba(255,255,255,0.3) inset;
}
.btn-secondary:hover {
    background: var(--bg-elevated-soft);
    box-shadow: 0 1px 0 rgba(31,35,40,0.08);
    color: var(--text-main);
}
body.dark-mode .btn-secondary:hover {
    background: var(--bg-elevated-soft);
}
.btn-danger {
    background: var(--danger);
    color: #ffffff;
    border-color: rgba(0,0,0,0.15);
    box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset;
}
.btn-danger:hover {
    background: #b91c1c;
    color: #ffffff;
}
.btn-sm { padding: 0.35rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.7rem 2rem; font-size: 1rem; }
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: var(--bg-elevated);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 1px 0 rgba(31,35,40,0.04);
}
.btn-icon:hover {
    background: var(--bg-elevated-soft);
    border-color: rgba(31,35,40,0.15);
    color: var(--text-main);
}
.btn-icon-sm {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: var(--bg-elevated);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-icon-sm:hover {
    background: var(--bg-elevated-soft);
    color: var(--text-main);
}

/* ─────────────────────────────────────────
   TOOLS GRID — SUBSA cards with original corner dots
───────────────────────────────────────── */

.section-heading {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    letter-spacing: -0.01em;
}
.section-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (max-width: 992px) { .tools-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 576px)  { .tools-grid { grid-template-columns: minmax(0,1fr); } }
.tool-card {
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    padding: 1.3rem 1.2rem;
    box-shadow: 0 1px 3px rgba(31,35,40,0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
body.dark-mode .tool-card { box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
/* ── Corner Decorations (Subtle Dots) ── */
.tool-card::before,
.tool-card::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0.3;
    pointer-events: none;
}
.tool-card::before {
    top: 12px;
    left: 12px;
}
.tool-card::after {
    bottom: 12px;
    right: 12px;
}
.tool-card:hover {
    border-color: var(--accent-soft-strong);
    box-shadow: 0 4px 16px rgba(31,35,40,0.1);
}
.tool-card:hover::before,
.tool-card:hover::after {
    opacity: 0.8;
}
.tool-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--accent-soft-strong);
}
.tool-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-main);
    letter-spacing: -0.01em;
}
.tool-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
    flex: 1;
    line-height: 1.55;
}
.tool-chip {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    background: rgba(26,127,55,0.1);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid rgba(26,127,55,0.25);
    font-weight: 600;
}
body.dark-mode .tool-chip {
    background: rgba(63,185,80,0.12);
    border-color: rgba(63,185,80,0.25);
    color: #3fb950;
}
.tool-chip i { font-size: 0.7rem; }

/* ─── TOOL BUTTON ─── */
.tool-btn {
    margin-top: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: var(--bg-elevated-soft);
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-main);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(31,35,40,0.04);
}
.tool-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}
.tool-btn:hover::before {
    width: 200%;
    height: 200%;
}
.tool-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}
body.dark-mode .tool-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ─────────────────────────────────────────
   MORE TOOLS BANNER — SUBSA notification style
───────────────────────────────────────── */
.more-tools-banner {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: var(--bg-elevated);
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(31,35,40,0.04);
    position: relative;
    overflow: hidden;
}
.more-tools-banner::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
}
.more-tools-banner:hover {
    border-color: var(--accent-soft-strong);
    background: var(--bg-elevated-soft);
    box-shadow: 0 4px 16px rgba(31,35,40,0.08);
}
.more-tools-left { display: flex; align-items: center; gap: 1rem; }
.more-tools-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 1px solid var(--accent-soft-strong);
}
.more-tools-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.15rem; color: var(--text-main); }
.more-tools-sub   { font-size: 0.8rem; color: var(--text-muted); }

/* ─────────────────────────────────────────
   CARD — SUBSA panel with original dots
───────────────────────────────────────── */
.card {
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    padding: 1.5rem 1.25rem;
    box-shadow: 0 1px 3px rgba(31,35,40,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.card::before,
.card::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.15;
    pointer-events: none;
}
.card::before {
    top: 16px;
    left: 16px;
}
.card::after {
    bottom: 16px;
    right: 16px;
}
.card:hover {
    box-shadow: 0 4px 16px rgba(31,35,40,0.1);
    border-color: var(--accent-soft-strong);
}
.card:hover::before,
.card:hover::after {
    opacity: 0.4;
}

/* ─────────────────────────────────────────
   FORM — SUBSA inputs
───────────────────────────────────────── */
.form-label {
    font-size: 0.8rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: block;
}
.form-control,
.form-select,
textarea.form-control {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background-color: var(--bg-elevated);
    color: var(--text-main);
    font-size: 0.875rem;
    padding: 0.55rem 0.85rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: none;
    font-family: var(--font-main);
    outline: none;
}
body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode textarea.form-control {
    background-color: var(--bg-elevated-soft);
}
.form-control::placeholder,
textarea.form-control::placeholder {
    color: var(--text-muted);
    opacity: 1;
}
body.dark-mode .form-select option {
    background-color: var(--bg-elevated-soft);
    color: var(--text-main);
}
.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background-color: var(--bg-elevated);
    outline: none;
    color: var(--text-main);
}
body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus,
body.dark-mode textarea.form-control:focus {
    background-color: var(--bg-elevated-soft);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-text { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.35rem; }
.form-range::-webkit-slider-thumb { background: var(--accent); border-radius: 50%; }
.form-range::-moz-range-thumb     { background: var(--accent); border: none; }
.form-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent-soft); }

/* ─────────────────────────────────────────
   INPUT TOGGLE
───────────────────────────────────────── */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrapper .form-control { padding-inline-end: 48px; }
.input-toggle {
    position: absolute;
    inset-inline-end: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}
.input-toggle:hover { background: var(--accent-soft); color: var(--accent); }
.input-toggle i     { font-size: 1rem; }

/* ─────────────────────────────────────────
   TEXTAREA
───────────────────────────────────────── */
.textarea {
    min-height: 200px;
    resize: vertical;
    font-family: var(--font-main);
    line-height: 1.7;
}
.textarea-counter {
    text-align: end;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* ─────────────────────────────────────────
   SECTION HEADER
───────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-soft);
}
.status-box { display: flex; align-items: center; }
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
}
.status-badge.active {
    background: rgba(26,127,55,0.1);
    color: var(--success);
    border-color: rgba(26,127,55,0.25);
}
body.dark-mode .status-badge.active {
    background: rgba(63,185,80,0.12);
    border-color: rgba(63,185,80,0.25);
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   CONTENT BOX (CODE BLOCK) — SUBSA style
───────────────────────────────────────── */
.content-box {
    background: var(--bg-elevated-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    min-height: 160px;
    max-height: 420px;
    overflow-y: auto;
    position: relative;
    direction: ltr;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
.content-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #8250df);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    opacity: 0.6;
}
.content-box pre {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text-main);
}
.content-box::-webkit-scrollbar { width: 5px; }
.content-box::-webkit-scrollbar-thumb { background: var(--accent); border-radius: var(--radius-full); }

/* ─────────────────────────────────────────
   INFO BOX — SUBSA style with errorRipple animation
───────────────────────────────────────── */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    background: rgba(9,105,218,0.08);
    border: 1px solid rgba(9,105,218,0.2);
    color: var(--accent);
    box-shadow: 0 1px 3px rgba(31,35,40,0.04);
}
.info-box i { color: inherit; flex-shrink: 0; margin-top: 2px; font-size: 1rem; }
.info-box.error {
    background: rgba(209,36,47,0.08);
    border-color: rgba(209,36,47,0.2);
    color: #c62828;
    position: relative;
    animation: errorRipple 2s ease-out infinite;
}
@keyframes errorRipple {
    0% {
        box-shadow: 0 0 0 0 rgba(209,36,47,0.2);
    }
    100% {
        box-shadow: 0 0 0 12px rgba(209,36,47,0);
    }
}
body.dark-mode .info-box.error {
    background: rgba(248,81,73,0.1);
    border-color: rgba(248,81,73,0.2);
    color: #ff7b72;
}
.info-box.success {
    background: rgba(26,127,55,0.08);
    border-color: rgba(26,127,55,0.2);
    color: #1a7f37;
}
body.dark-mode .info-box.success {
    background: rgba(63,185,80,0.1);
    border-color: rgba(63,185,80,0.2);
    color: #7ee787;
}

/* ─────────────────────────────────────────
   INPUT DISPLAY
───────────────────────────────────────── */
.input-display-wrapper {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--bg-elevated-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: 0 1px 3px rgba(31,35,40,0.04);
}
.input-display {
    flex: 1;
    padding: 0.6rem 0.9rem;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    word-break: break-all;
    min-height: 48px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-soft);
}

/* ─────────────────────────────────────────
   STRENGTH BAR — SUBSA progress
───────────────────────────────────────── */
.strength-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.8rem;
}
.strength-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-elevated-soft);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border-soft);
}
.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--danger);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}
.strength-fill.medium { background: #fb8500; }
.strength-fill.strong { background: var(--success); }
.strength-text {
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 75px;
    text-align: end;
    color: var(--accent);
}

/* ─────────────────────────────────────────
   CHECKBOX GROUP — SUBSA style
───────────────────────────────────────── */
.check-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.check-item {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0.6rem 0.9rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(31,35,40,0.04);
}
.check-item:hover { background: var(--bg-elevated-soft); border-color: var(--accent-soft-strong); }
.check-item .form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent);
    border-radius: 4px;
}
.check-item .form-check-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    margin: 0;
    margin-inline-start: 0.8rem;
}
.check-item .form-check-label i { color: var(--accent); font-size: 0.9rem; }

/* ─────────────────────────────────────────
   DETAILS SECTION
───────────────────────────────────────── */
.details-section { padding: 0.5rem; }
.details-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    word-break: break-all;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* ─────────────────────────────────────────
   INFO GRID — SUBSA cards
───────────────────────────────────────── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 480px) { .info-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }
    .info-item {
        padding: 0.8rem 1rem;
    }
    .info-icon {
        width: 36px;
        height: 36px;
    }
    .info-icon svg {
        width: 18px;
        height: 18px;
    }
    .info-value {
        font-size: 0.85rem;
    }
    .info-label {
        font-size: 0.7rem;
    }
}
.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-elevated-soft);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(31,35,40,0.04);
}
.info-item:hover { border-color: var(--accent-soft-strong); box-shadow: 0 3px 10px rgba(9,105,218,0.08); }
.info-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    border: 1px solid var(--accent-soft-strong);
}
.info-content { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.info-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─────────────────────────────────────────
   ICON WRAPPERS — SUBSA style
───────────────────────────────────────── */
.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    border: 1px solid var(--accent-soft-strong);
    animation: floatIcon 4s ease-in-out infinite;
    box-shadow: 0 1px 3px rgba(31,35,40,0.04);
}
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.icon-large {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    border: 1px solid var(--accent-soft-strong);
    box-shadow: 0 4px 16px rgba(31,35,40,0.08);
}
.icon-sm {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--accent-soft-strong);
}
body.dark-mode .icon-sm {
    background: var(--accent-soft);
}
.icon-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.25rem 0.8rem;
    background: var(--bg-elevated-soft);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-soft);
}

/* ─────────────────────────────────────────
   UPLOAD ZONE — SUBSA drag-drop area
───────────────────────────────────────── */
.upload-zone {
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-soft);
    background: var(--bg-elevated-soft);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(31,35,40,0.04);
}
.upload-zone::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--accent-soft) 0%, transparent 80%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: var(--bg-elevated);
}
.upload-zone:hover::before,
.upload-zone.dragover::before { opacity: 0.5; }
.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}
.upload-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}
.upload-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}
.upload-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    padding: 0.25rem 0.8rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-soft);
    display: inline-block;
}
.selected-file {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--accent-soft-strong);
    position: relative;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(31,35,40,0.04);
}
.file-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}
.file-size { font-size: 0.75rem; color: var(--text-muted); }

/* ─────────────────────────────────────────
   PREVIEW — SUBSA style
───────────────────────────────────────── */
.preview-section { margin-bottom: 2rem; }
.preview-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-elevated-soft);
    border: 1px solid var(--border-soft);
    box-shadow: 0 1px 3px rgba(31,35,40,0.06);
}
.preview-image-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    max-height: 420px;
    background: linear-gradient(135deg, var(--bg-elevated-soft) 0%, var(--bg-body) 100%);
}
.preview-image-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, var(--border-soft) 25%, transparent 25%),
        linear-gradient(-45deg, var(--border-soft) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--border-soft) 75%),
        linear-gradient(-45deg, transparent 75%, var(--border-soft) 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    opacity: 0.08;
    pointer-events: none;
}
.preview-img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: var(--radius-md);
}
.preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.preview-image-box:hover .preview-overlay { opacity: 1; }
.preview-zoom {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-soft);
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(31,35,40,0.04);
}
.preview-zoom:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}
.preview-video-box {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}
.preview-vid { width: 100%; max-height: 480px; display: block; }
.preview-audio-box {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.audio-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 520px;
}
.preview-audio { flex: 1; height: 48px; border-radius: 20px; }
.preview-audio::-webkit-media-controls-panel { background: var(--bg-elevated); }

/* ─────────────────────────────────────────
   SCROLL TO TOP — SUBSA style
───────────────────────────────────────── */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1060;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(31,35,40,0.15);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
body.dark-mode .scroll-top { box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}
.scroll-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

/* ─────────────────────────────────────────
   DONATE BUTTON — Orange remains
───────────────────────────────────────── */
.donate-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1060;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239,68,68,0.4);
    transition: all 0.2s;
}
.donate-btn:hover { transform: scale(1.08); box-shadow: 0 6px 16px rgba(239,68,68,0.6); }

/* ─────────────────────────────────────────
   DONATE PANEL — SUBSA popover style
───────────────────────────────────────── */
.donate-panel {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    z-index: 1065;
    width: 300px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.donate-panel.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}
.donate-panel-top {
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
}
.donate-panel-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-soft);
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.donate-panel-close:hover {
    background: var(--bg-elevated-soft);
    color: var(--text-main);
}
.donate-panel-body {
    padding: 1.3rem 1.3rem 1.5rem;
    text-align: center;
}
.donate-emoji {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.6rem;
    animation: bounceEmoji 2s ease-in-out infinite;
}
@keyframes bounceEmoji {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-5px) rotate(0); }
}
.donate-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.donate-msg {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.donate-msg strong { color: var(--text-main); }
.btn-donate {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(239,68,68,0.3);
    font-family: var(--font-main);
    text-decoration: none;
    transition: all 0.2s;
}
.btn-donate:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(239,68,68,0.5);
    color: white;
}

/* ─────────────────────────────────────────
   FOOTER — SUBSA footer
───────────────────────────────────────── */
.app-footer {
    padding: 1.5rem 0 2rem;
    border-top: 1px solid var(--border-soft);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2rem;
    background: var(--bg-body);
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
}
.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    position: relative;
}
.footer-link + .footer-link::before {
    content: "·";
    position: absolute;
    inset-inline-start: -0.25rem;
    color: var(--border-soft);
}
.footer-link:hover { color: var(--accent); }

/* ─────────────────────────────────────────
   RESPONSIVE (Adjusted for new styles)
───────────────────────────────────────── */
@media (max-width: 768px) {
    .top-nav       { display: none; }
    .theme-toggle  { 
        display: none;
        background: rgba(95,95,95,0.49) !important;
        border: 1px solid rgba(95,95,95,0.49) !important;
        border-radius: var(--radius-full);
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
    }
    .theme-toggle i {
        color: #222;
    }
    body.dark-mode .theme-toggle {
        border: 1px solid rgba(255,255,255,0.2);
        background: rgba(255,255,255,0.08);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    body.dark-mode .theme-toggle .theme-toggle-icons svg,
    body.dark-mode .theme-toggle .theme-toggle-icons i {
        color: #495057 !important;
    }
    .app-main      { padding-top: 1.5rem; }
    .donate-panel  { right: 0.5rem; left: 0.5rem; width: auto; bottom: 5.5rem; }
    .donate-btn    { right: 1rem; bottom: 1rem; width: 48px; height: 48px; }
    .scroll-top    { left: 1rem; bottom: 1rem; }
}
@media (min-width: 769px) { .mobile-menu-btn { display: none; } }

/* ─────────────────────────────────────────
   SPINNER
───────────────────────────────────────── */
.spinner {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 2px;
    border-style: solid;
    border-color: var(--accent) transparent var(--accent) transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────── */
.empty-state {
    padding: 3.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}
.empty-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--bg-elevated-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border-soft);
    box-shadow: 0 1px 3px rgba(31,35,40,0.06);
}
.empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}
.empty-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 300px;
    line-height: 1.6;
}

/* ─────────────────────────────────────────
   LOADING STATE
───────────────────────────────────────── */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(246,248,250,0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}
body.dark-mode .loading-overlay { background: rgba(13,17,23,0.9); }
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}
.loading-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ─────────────────────────────────────────
   RESPONSIVE MOBILE (Adjusted)
───────────────────────────────────────── */
@media (max-width: 576px) {
    .upload-zone     { padding: 1.8rem 1rem; }
    .icon-wrapper    { width: 55px; height: 55px; }
    .file-name       { max-width: 180px; }
    .preview-image-box { min-height: 220px; }
    .preview-img     { max-height: 300px; }
    .input-display   { font-size: 0.85rem; }
    .strength-wrapper{ flex-direction: column; align-items: stretch; }
    .strength-text   { text-align: start; margin-top: 0.4rem; }
    .section-header  { flex-direction: column; gap: 0.8rem; align-items: stretch; }
    .status-box      { justify-content: center; }
    .btn             { width: 100%; justify-content: center; }
}

/* ─────────────────────────────────────────
   BANK PROFIT RESULTS — SUBSA table feel
───────────────────────────────────────── */
.results-container {
    margin-top: 2rem;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(31,35,40,0.06);
}
body.dark-mode .results-container { box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.results-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    background: var(--bg-elevated-soft);
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.results-header i { font-size: 1rem; color: var(--accent); }
.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--border-soft);
    transition: all 0.2s;
}
.result-item:last-child { border-bottom: none; }
.result-item:hover { background: var(--accent-soft); }
.result-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.result-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}
.result-item.highlight {
    background: rgba(9,105,218,0.04);
}
.result-item.highlight .result-label {
    color: var(--accent);
    font-weight: 600;
}
.result-item.highlight .result-value { color: var(--accent); }
body.dark-mode .result-item.highlight { background: rgba(47,129,247,0.06); }
.result-item.highlight-year {
    background: linear-gradient(90deg, rgba(26,127,55,0.06) 0%, rgba(9,105,218,0.04) 100%);
    border-left: 3px solid var(--success);
}
.result-item.highlight-year .result-label {
    color: var(--success);
    font-weight: 700;
}
.result-item.highlight-year .result-value {
    color: var(--success);
    font-size: 1rem;
}
body.dark-mode .result-item.highlight-year {
    background: linear-gradient(90deg, rgba(63,185,80,0.06) 0%, rgba(47,129,247,0.04) 100%);
}
@media (max-width: 576px) {
    .result-item     { padding: 0.7rem 1rem; }
    .result-label    { font-size: 0.8rem; }
    .result-value    { font-size: 0.85rem; }
    .result-item.highlight-year .result-value { font-size: 0.95rem; }
}

/* ─────────────────────────────────────────
   AUTH PAGES
───────────────────────────────────────── */
.form-control.is-invalid,
.form-control[style*="danger"] {
    border-color: var(--danger);
}
.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(209,36,47,0.12);
}
body.dark-mode .form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(248,81,73,0.15);
}

/* ═══════════════════════════════════════════════════════════
   PROFILE PAGE — SUBSA style
═══════════════════════════════════════════════════════════ */
.profile-avatar-wrapper {
    display: inline-block;
    position: relative;
}
.profile-avatar-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 4px 16px rgba(31,35,40,0.15);
    transition: all 0.3s;
}
.profile-avatar-img:hover {
    transform: scale(1.02);
}
.profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}
.profile-username {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem;
    background: var(--bg-elevated-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(31,35,40,0.04);
}
.quick-link:hover {
    border-color: var(--accent-soft-strong);
    box-shadow: 0 3px 10px rgba(9,105,218,0.08);
    transform: translateX(-4px);
}
.quick-link-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.quick-link-icon.blue   { background: rgba(9,105,218,0.1); color: #0969da; }
.quick-link-icon.green  { background: rgba(26,127,55,0.1); color: #1a7f37; }
.quick-link-icon.purple { background: rgba(130,80,223,0.1); color: #8250df; }
.quick-link-icon.orange { background: rgba(188,76,0,0.1); color: #bc4c00; }
body.dark-mode .quick-link-icon.blue   { background: rgba(47,129,247,0.15); color: #2f81f7; }
body.dark-mode .quick-link-icon.green  { background: rgba(63,185,80,0.15); color: #3fb950; }
body.dark-mode .quick-link-icon.purple { background: rgba(163,113,247,0.15); color: #a371f7; }
body.dark-mode .quick-link-icon.orange { background: rgba(210,153,34,0.15); color: #d29922; }
.quick-link-content {
    flex: 1;
    min-width: 0;
}
.quick-link-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}
.quick-link-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.quick-link-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}
.quick-link:hover .quick-link-arrow {
    transform: translateX(-4px);
    color: var(--accent);
}
.security-tips {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.security-tip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.security-tip i {
    font-size: 1rem;
}
.security-tip .text-success { color: var(--success); }
.security-tip .text-primary  { color: var(--accent); }
.security-tip .text-warning  { color: #fb8500; }

/* ═══════════════════════════════════════════════════════════════
   UPLOAD PROGRESS BAR — SUBSA style with animations
═══════════════════════════════════════════════════════════════ */
.upload-progress-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-elevated-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    display: none;
    animation: slideDown 0.3s ease;
    box-shadow: 0 1px 3px rgba(31,35,40,0.04);
}
.upload-progress-container.show {
    display: block;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.progress-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}
.progress-title i {
    color: var(--accent);
    font-size: 1.1rem;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.progress-percentage {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.2rem 0.8rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--accent-soft-strong);
}
.progress-file-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding: 0.8rem 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    box-shadow: 0 1px 3px rgba(31,35,40,0.04);
}
.progress-file-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid var(--accent-soft-strong);
}
.progress-file-details {
    flex: 1;
    min-width: 0;
}
.progress-file-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.15rem;
}
.progress-file-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 1.2rem;
}
.progress-bar-wrapper {
    position: relative;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    margin-bottom: 1rem;
}
.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #8250df);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}
body.dark-mode .progress-bar-fill {
    background: linear-gradient(90deg, #2f81f7, #a371f7);
}
.progress-bar-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.2) 50%,
        transparent 100%
    );
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.progress-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.progress-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}
.progress-stat-label {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.progress-stat-label i {
    font-size: 0.75rem;
    color: var(--accent);
}
.progress-stat-value {
    font-weight: 700;
    color: var(--text-main);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}
.progress-cancel-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}
.progress-cancel-btn:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: #ffffff;
}
.upload-progress-container.error .progress-bar-fill {
    background: var(--danger);
    width: 100% !important;
}
.upload-progress-container.error .progress-percentage {
    background: rgba(209,36,47,0.1);
    border-color: rgba(209,36,47,0.2);
    color: var(--danger);
}
.upload-progress-container.completed .progress-bar-fill {
    background: var(--success);
    width: 100% !important;
}
.upload-progress-container.completed .progress-percentage {
    background: rgba(26,127,55,0.1);
    border-color: rgba(26,127,55,0.2);
    color: var(--success);
}
#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
@media (max-width: 576px) {
    .progress-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .progress-cancel-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    .progress-file-meta {
        flex-direction: column;
        gap: 0.2rem;
    }
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
}
.hero-stats-mobile {
    display: none;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.8rem;
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    .hero-stats-mobile {
        display: flex;
    }
    .hero-stats-mobile .hero-stat-card {
        flex: 1 1 100%;
        min-width: 0;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .more-tools-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .more-tools-left {
        flex-direction: column;
        text-align: center;
    }
    .more-tools-banner .btn {
        width: 100%;
        justify-content: center;
    }
}
@media (min-width: 481px) and (max-width: 768px) {
    .hero-stats-mobile .hero-stat-card {
        flex: 1 1 calc(33.333% - 0.6rem);
        min-width: 150px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   GAMES SHOWCASE — Premium (Blue/Purple mix)
═══════════════════════════════════════════════════════════════ */
.games-showcase-card {
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 2.5rem;
    box-shadow: 0 1px 3px rgba(31,35,40,0.06);
}
.games-showcase-card:hover {
    border-color: var(--accent-soft-strong);
    box-shadow: 0 4px 16px rgba(9,105,218,0.08);
}
.showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    background: var(--bg-elevated-soft);
    border-bottom: 1px solid var(--border-soft);
    flex-wrap: wrap;
    gap: 1rem;
}
.showcase-title-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.showcase-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #a855f7, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 2px 8px rgba(168,85,247,0.3);
}
.showcase-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}
.showcase-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0;
}
.showcase-link-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-soft-strong);
    transition: all 0.2s;
    text-decoration: none;
}
.showcase-link-btn:hover {
    background: var(--accent);
    color: #fff;
}
.showcase-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}
@media (max-width: 768px) {
    .showcase-body {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}
.champion-card {
    background: linear-gradient(135deg, rgba(168,85,247,0.08) 0%, rgba(99,102,241,0.04) 100%);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    position: relative;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    box-shadow: 0 1px 3px rgba(31,35,40,0.04);
}
.champion-card:hover {
    border-color: rgba(168,85,247,0.4);
    box-shadow: 0 4px 16px rgba(168,85,247,0.08);
}
.champion-ribbon {
    position: absolute;
    top: -1px;
    right: 1.2rem;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.champion-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(168,85,247,0.3);
}
.champion-info {
    flex: 1;
    min-width: 0;
}
.champion-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}
.champion-score {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.champion-score strong {
    color: #f59e0b;
    font-size: 0.9rem;
}
.champion-game {
    font-size: 0.75rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.champion-badge {
    background: rgba(168,85,247,0.12);
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #a855f7;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}
.popular-card {
    background: var(--bg-elevated-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 1px 3px rgba(31,35,40,0.04);
}
.popular-card:hover {
    border-color: var(--accent-soft-strong);
    box-shadow: 0 3px 10px rgba(9,105,218,0.08);
}
.popular-stats {
    text-align: center;
    min-width: 85px;
}
.stats-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.stats-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.popular-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, var(--border-soft), transparent);
}
.popular-game-icon {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}
.popular-game-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}
.popular-record {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(245,158,11,0.1);
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-full);
}
.popular-record i {
    font-size: 0.75rem;
}
.popular-record strong {
    color: #f59e0b;
    font-weight: 700;
}
.showcase-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--accent-soft);
    border-top: 1px solid var(--border-soft);
    flex-wrap: wrap;
    gap: 1rem;
}
.cta-text {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}
.cta-text i {
    font-size: 1.2rem;
    color: #f59e0b;
}
.cta-badge {
    background: var(--success);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-full);
}
.cta-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(168,85,247,0.3);
}
.cta-play-btn:hover {
    box-shadow: 0 4px 12px rgba(168,85,247,0.5);
    color: #fff;
}
@media (max-width: 576px) {
    .showcase-cta {
        flex-direction: column;
        text-align: center;
    }
    .cta-text {
        justify-content: center;
    }
    .champion-card {
        flex-direction: column;
        text-align: center;
    }
    .champion-badge {
        width: 100%;
        justify-content: center;
    }
    .popular-card {
        justify-content: center;
        text-align: center;
    }
    .popular-divider {
        display: none;
    }
}
.card-header {
    padding: 1.2rem 1.5rem;
    background: var(--bg-elevated-soft);
    border-bottom: 1px solid var(--border-soft);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.card-title i {
    color: var(--accent);
}
.card-body {
    padding: 1.5rem;
    background: var(--bg-elevated);
}
.profile-email {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.profile-email i {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   ALERTS — SUBSA style
═══════════════════════════════════════════════════════════════ */
.alert {
    border-radius: var(--radius-md);
    border: 1px solid;
    padding: 0.9rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    box-shadow: 0 1px 3px rgba(31,35,40,0.04);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}
.alert-danger {
    background: rgba(209,36,47,0.08);
    border-color: rgba(209,36,47,0.2);
    color: #c62828;
}
body.dark-mode .alert-danger {
    background: rgba(248,81,73,0.1);
    border-color: rgba(248,81,73,0.2);
    color: #ff7b72;
}
.alert-success {
    background: rgba(26,127,55,0.08);
    border-color: rgba(26,127,55,0.2);
    color: #1a7f37;
}
body.dark-mode .alert-success {
    background: rgba(63,185,80,0.1);
    border-color: rgba(63,185,80,0.2);
    color: #7ee787;
}
.alert-warning {
    background: rgba(188,76,0,0.08);
    border-color: rgba(188,76,0,0.2);
    color: #bc4c00;
}
body.dark-mode .alert-warning {
    background: rgba(210,153,34,0.1);
    border-color: rgba(210,153,34,0.2);
    color: #f0c040;
}
.alert-info {
    background: rgba(9,105,218,0.08);
    border-color: rgba(9,105,218,0.2);
    color: var(--accent);
}
body.dark-mode .alert-info {
    background: rgba(47,129,247,0.1);
    border-color: rgba(47,129,247,0.2);
    color: #79c0ff;
}
.alert a,
.alert .alert-link {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.alert a:hover,
.alert .alert-link:hover {
    opacity: 0.8;
}
.alert .btn {
    font-size: 0.8rem;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-md);
}
.alert i.bi {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.alert .btn-close {
    padding: 0.5rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    filter: invert(0);
}
body.dark-mode .alert .btn-close {
    filter: invert(1);
}
.alert .btn-close:hover {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   LIVE PRICES WIDGET — Premium (Blue/Orange)
═══════════════════════════════════════════════════════════════ */
.live-prices-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
@media (max-width: 992px) {
    .live-prices-row {
        grid-template-columns: 1fr;
    }
}
.live-price-card-wrapper {
    display: flex;
}
.live-price-card {
    width: 100%;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    box-shadow: 0 1px 3px rgba(31,35,40,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.live-price-card:hover {
    box-shadow: 0 4px 16px rgba(31,35,40,0.1);
    border-color: var(--accent-soft-strong);
}
.live-price-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: var(--bg-elevated-soft);
    border-bottom: 1px solid var(--border-soft);
}
.live-price-header-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    border: 1px solid;
}
.coin-header .live-price-header-icon {
    background: rgba(245,158,11,0.1);
    color: #f59e0b;
    border-color: rgba(245,158,11,0.2);
}
.gold-header .live-price-header-icon {
    background: rgba(234,179,8,0.1);
    color: #eab308;
    border-color: rgba(234,179,8,0.2);
}
.currency-header .live-price-header-icon {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent-soft-strong);
}
.live-price-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    letter-spacing: -0.01em;
}
.live-price-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0;
}
.live-price-body {
    padding: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}
.live-price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 1rem;
    border: 1px solid transparent;
}
.live-price-item:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft-strong);
}
.live-price-item-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    flex: 1;
}
.live-price-item-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}
.live-price-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}
.live-price-item-symbol {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}
.live-price-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}
.live-price-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}
.live-price-item-price small {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 2px;
}
.live-price-item-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}
.live-price-item-change.price-up {
    background: rgba(26,127,55,0.1);
    color: #1a7f37;
    border: 1px solid rgba(26,127,55,0.2);
}
.live-price-item-change.price-down {
    background: rgba(209,36,47,0.08);
    color: #c62828;
    border: 1px solid rgba(209,36,47,0.15);
}
.live-price-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.live-price-empty i {
    font-size: 1.1rem;
    animation: spin 2s linear infinite;
}
.live-price-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-elevated-soft);
    border-top: 1px solid var(--border-soft);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s;
}
.live-price-footer:hover {
    color: #ffffff;
    background: var(--accent);
}
.live-price-footer i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}
.live-price-footer:hover i {
    transform: translateX(-3px);
}

/* ═══════════════════════════════════════════════════════════════
   CRYPTO TABLE — PREMIUM (Blue / Eye-catching)
═══════════════════════════════════════════════════════════════ */
.crypto-table-wrapper {
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    box-shadow: 0 1px 3px rgba(31,35,40,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}
.crypto-table-wrapper:hover {
    box-shadow: 0 4px 16px rgba(31,35,40,0.1);
    border-color: var(--accent-soft-strong);
}
.crypto-table {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.crypto-table-header {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.8fr 1fr;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
	background: rgba(9, 105, 218, 0.08);
	backdrop-filter: blur(4px);
	color: var(--accent);
	border-bottom: 2px solid var(--accent-soft-strong);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.crypto-table-body {
    display: flex;
    flex-direction: column;
}
.crypto-table-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.8fr 1fr;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-soft);
    text-decoration: none;
    transition: all 0.2s ease;
    align-items: center;
    background: var(--bg-elevated);
}
.crypto-table-row:hover {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
}
.crypto-table-row:last-child {
    border-bottom: none;
}
.crypto-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.crypto-info > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.crypto-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--bg-elevated-soft);
    padding: 6px;
}
.crypto-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin: 0;
}
.crypto-symbol {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-soft);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    display: inline-block;
    width: fit-content;
    border: 1px solid var(--accent-soft-strong);
}
.crypto-price-usd {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    direction: ltr;
    background: var(--bg-elevated-soft);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-md);
    display: inline-block;
}
.crypto-price-irt {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    background: var(--accent-soft);
    padding: 0.2rem 0.8rem;
    border-radius: var(--radius-full);
}
.crypto-price-irt small {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}
.crypto-change {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}
.crypto-change.change-up {
    background: rgba(26,127,55,0.1);
    color: #1a7f37;
    border: 1px solid rgba(26,127,55,0.2);
}
.crypto-change.change-down {
    background: rgba(209,36,47,0.08);
    color: #c62828;
    border: 1px solid rgba(209,36,47,0.15);
}
.crypto-change i {
    font-size: 0.8rem;
}
.crypto-footer-link {
    margin-top: 1.5rem;
    text-align: center;
}
.crypto-footer-link .btn {
    gap: 0.5rem;
}
@media (max-width: 768px) {
    .crypto-table-header {
        display: none;
    }
    .crypto-table-row {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        padding: 1.2rem;
        text-align: center;
        align-items: stretch;
        border-radius: var(--radius-md);
        margin: 0.5rem;
        background: var(--bg-elevated);
        border: 1px solid var(--border-soft);
    }
    .crypto-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .crypto-icon {
        width: 55px;
        height: 55px;
        margin: 0 auto;
    }
    .crypto-name {
        font-size: 1.1rem;
    }
    .crypto-price-usd {
        font-size: 1.3rem;
        font-weight: 800;
        display: inline-block;
        background: var(--accent-soft);
        padding: 0.4rem 1rem;
    }
    .crypto-price-irt {
        font-size: 1.1rem;
        font-weight: 700;
        white-space: normal;
        word-break: break-word;
        display: inline-block;
    }
    .crypto-change {
        display: inline-flex;
        margin: 0 auto;
        padding: 0.4rem 1.2rem;
    }
}

/* ============================================================
   MODAL — SUBSA
   ============================================================ */

.modal-content {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-heavy);
    color: var(--text-main);
}

.modal-header {
    border-bottom-color: var(--border-soft);
    background-color: var(--bg-elevated-soft);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 1rem 1.5rem;
}

.modal-header .btn-close {
    filter: invert(0);
    opacity: 0.6;
    transition: opacity 0.2s;
}

body.dark-mode .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.5;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-title {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
}

.modal-body {
    background-color: var(--bg-elevated);
    color: var(--text-main);
    padding: 1.5rem;
}

.modal-footer {
    border-top-color: var(--border-soft);
    background-color: var(--bg-elevated-soft);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 1rem 1.5rem;
}

.modal-backdrop {
    background-color: rgba(31, 35, 40, 0.6);
}

body.dark-mode .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal.fade .modal-dialog {
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}