:root {
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
    --sar: env(safe-area-inset-right, 0px);

    --bg: #070914;
    --bg-body-gradient: radial-gradient(circle at 20% 0%, #1b1740 0, transparent 35%), radial-gradient(circle at 90% 10%, #101d3a 0, transparent 35%), #070914;
    --panel: #0d1220;
    --panel2: #11182a;
    --line: #242c40;
    --line-subtle: rgba(255, 255, 255, 0.08);
    --text: #f7f8ff;
    --text-heading: #ffffff;
    --muted: #8d97ad;
    --primary: #7c5cff;
    --primary-hover: #9175ff;
    --primary2: #9a82ff;
    --primary-dark: #6548d8;
    --danger: #ff5267;
    --warn: #ffb84d;
    --ok: #35d58a;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Semantic Component Tokens (Dark Mode Default) */
    --nav-bg: rgba(5, 7, 14, 0.88);
    --nav-link: #aeb6c9;
    --nav-link-hover: #ffffff;
    --nav-link-hover-bg: rgba(255, 255, 255, 0.06);
    --brand-text: #ffffff;
    --brand-accent: #9f86ff;
    --brand-accent-glow: 0 0 16px rgba(159, 134, 255, 0.4);
    --hero-gradient: linear-gradient(120deg, #ffffff 20%, #a89aff 65%, #7c5cff 100%);
    --card-bg: rgba(12, 17, 29, 0.94);
    --card-text: #bdc5d6;
    --small-card-bg: rgba(12, 18, 32, 0.75);
    --small-card-border: rgba(255, 255, 255, 0.06);
    --notice-bg: rgba(124, 92, 255, 0.08);
    --btn-bg: #11172a;
    --btn-border: #303952;
    --btn-color: #ffffff;
    --btn-hover-bg: #161e36;
    --btn-hover-border: #505b7a;
    --btn-hover-color: #ffffff;
    --drawer-bg: rgba(7, 10, 20, 0.98);
    --drawer-link-bg: rgba(255, 255, 255, 0.03);
    --drawer-link-border: rgba(255, 255, 255, 0.05);
    --drawer-link-color: #d1d7e8;
    --footer-bg: #070914;
    --badge-bg: rgba(255, 255, 255, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
}

html[data-theme="light"],
[data-theme="light"] {
    color-scheme: light;
    --bg: #f8fafc;
    --bg-body-gradient: radial-gradient(circle at 15% 0%, #ece8ff 0, transparent 40%), radial-gradient(circle at 90% 10%, #e0eaff 0, transparent 40%), #f8fafc;
    --panel: #ffffff;
    --panel2: #f1f5f9;
    --line: #e2e8f0;
    --line-subtle: rgba(0, 0, 0, 0.07);
    --text: #0f172a;
    --text-heading: #0f172a;
    --muted: #64748b;
    --primary: #6343e8;
    --primary-hover: #5231db;
    --primary2: #7251f2;
    --primary-dark: #4f2ee8;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);

    /* Semantic Component Tokens for Light Mode */
    --nav-bg: rgba(255, 255, 255, 0.94);
    --nav-link: #475569;
    --nav-link-hover: #0f172a;
    --nav-link-hover-bg: rgba(0, 0, 0, 0.05);
    --brand-text: #0f172a;
    --brand-accent: #6343e8;
    --brand-accent-glow: none;
    --hero-gradient: linear-gradient(135deg, #4f39f6 0%, #7c3aed 50%, #c026d3 100%);
    --card-bg: #ffffff;
    --card-text: #334155;
    --small-card-bg: #f8fafc;
    --small-card-border: #e2e8f0;
    --notice-bg: rgba(99, 67, 232, 0.08);
    --btn-bg: #ffffff;
    --btn-border: #cbd5e1;
    --btn-color: #0f172a;
    --btn-hover-bg: #f1f5f9;
    --btn-hover-border: #94a3b8;
    --btn-hover-color: #000000;
    --drawer-bg: rgba(255, 255, 255, 0.98);
    --drawer-link-bg: #f8fafc;
    --drawer-link-border: #e2e8f0;
    --drawer-link-color: #1e293b;
    --footer-bg: #ffffff;
    --badge-bg: rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    min-height: 100%;
    background: var(--bg);
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
}

html[data-theme="light"] {
    color-scheme: light;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg-body-gradient);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: calc(72px + var(--sat));
    transition: background 0.25s ease, color 0.25s ease;
}

/* =========================================================
   NAVBAR & DRAWER (UNIFIED WITH INDEX.HTML)
   ========================================================= */

.nav,
.site-header {
    height: calc(72px + var(--sat));
    padding-top: var(--sat);
    padding-left: max(20px, var(--sal));
    padding-right: max(20px, var(--sar));
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.brand,
.site-header .brand {
    font-weight: 900;
    letter-spacing: 0.04em;
    font-size: 21px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--brand-text) !important;
    user-select: none;
    -webkit-user-select: none;
    text-decoration: none;
}

.brand-text,
.site-header .brand .brand-text {
    font-weight: 900;
    letter-spacing: 0.04em;
    font-size: 21px;
    color: var(--brand-text) !important;
}

.brand-text span,
.site-header .brand .brand-text span,
.site-header .brand > span:not(.brand-text),
.brand span.brand-accent,
.site-header .brand span.brand-accent {
    color: var(--brand-accent) !important;
    text-shadow: var(--brand-accent-glow);
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.navlinks,
.site-header .nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.navlinks a,
.navlinks button,
.site-header .nav a,
.site-header .nav button {
    border: 0;
    background: transparent;
    color: var(--nav-link);
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.navlinks a:hover,
.navlinks button:hover,
.site-header .nav a:hover,
.site-header .nav button:hover {
    background: var(--nav-link-hover-bg);
    color: var(--nav-link-hover);
}

.online-users {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ok);
    background: rgba(53, 213, 138, 0.1);
    border: 1px solid rgba(53, 213, 138, 0.25);
    padding: 6px 12px;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    user-select: none;
    -webkit-user-select: none;
}

.online-users::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 8px var(--ok);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--badge-bg);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 20px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
}

.nav-toggle:hover {
    background: var(--nav-link-hover-bg);
}

.mobile-drawer {
    display: none;
    position: fixed;
    top: calc(72px + var(--sat));
    left: 0;
    right: 0;
    background: var(--drawer-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px calc(24px + var(--sab));
    flex-direction: column;
    gap: 8px;
    z-index: 49;
    box-shadow: var(--shadow-lg);
    animation: drawerSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
    display: flex;
}

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

.mobile-drawer a {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--drawer-link-bg);
    border: 1px solid var(--drawer-link-border);
    color: var(--drawer-link-color);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.mobile-drawer a:hover {
    background: rgba(124, 92, 255, 0.1);
    color: var(--primary);
    border-color: rgba(124, 92, 255, 0.25);
}

.mobile-drawer a.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: white !important;
    border-color: transparent;
    justify-content: center;
    margin-top: 6px;
    padding: 14px 20px;
    box-shadow: 0 10px 25px rgba(124, 92, 255, 0.35);
}

/* =========================================================
   PAGE CONTENT
   ========================================================= */

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding-left: var(--sal);
    padding-right: var(--sar);
}

.hero {
    padding: 60px 0 30px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(124, 92, 255, 0.25);
    border-radius: 999px;
    background: rgba(14, 19, 35, 0.85);
    color: #c4ccdf;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

html[data-theme="light"] .eyebrow {
    background: rgba(99, 67, 232, 0.08);
    border: 1px solid rgba(99, 67, 232, 0.2);
    color: #6343e8;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 12px var(--ok);
    flex-shrink: 0;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 68px);
    line-height: 1.05;
    margin: 20px 0 14px;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: var(--text-heading);
}

.gradient {
    background: var(--hero-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    display: inline-block;
}

.hero p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(16px, 2.2vw, 18px);
    line-height: 1.7;
}

.updated {
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
}

.content {
    padding: 20px 0 80px;
}

.card {
    border: 1px solid var(--line);
    background: var(--card-bg);
    border-radius: 22px;
    padding: clamp(20px, 4vw, 32px);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.card h2 {
    margin: 0 0 12px;
    font-size: clamp(22px, 4vw, 28px);
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: var(--text-heading);
}

.card h3 {
    margin: 24px 0 8px;
    font-size: clamp(17px, 3vw, 20px);
    line-height: 1.35;
    color: var(--text-heading);
}

.card p {
    color: var(--card-text);
    margin: 0 0 15px;
}

.card p:last-child {
    margin-bottom: 0;
}

.card ul,
.card ol {
    color: var(--card-text);
    padding-left: 24px;
    margin: 12px 0;
}

.card li {
    margin: 8px 0;
}

.card a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.card a:hover {
    color: var(--primary-hover);
}

.muted {
    color: var(--muted);
}

.notice {
    border-left: 3px solid var(--primary);
    background: var(--notice-bg);
    padding: 15px 18px;
    border-radius: 0 14px 14px 0;
    margin: 18px 0;
    color: var(--text);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.small-card {
    background: var(--small-card-bg);
    border: 1px solid var(--small-card-border);
    border-radius: 18px;
    padding: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.small-card:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.small-card h3 {
    margin: 0 0 7px;
    color: var(--text-heading);
    font-size: 18px;
}

.small-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.btn {
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-color) !important;
    border-radius: 14px;
    padding: 13px 20px;
    font-weight: 800;
    font-size: 15px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none !important;
    min-height: 48px;
    user-select: none;
    -webkit-user-select: none;
}

.btn:hover {
    border-color: var(--btn-hover-border);
    background: var(--btn-hover-bg);
    color: var(--btn-hover-color) !important;
    transform: translateY(-1px);
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border-color: transparent !important;
    box-shadow: 0 10px 25px rgba(124, 92, 255, 0.35);
    color: #ffffff !important;
}

.btn.primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary)) !important;
    box-shadow: 0 12px 30px rgba(124, 92, 255, 0.45);
    color: #ffffff !important;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 35px 0 calc(35px + var(--sab));
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: var(--footer-bg);
    transition: background 0.25s ease;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
}

.footer-links a {
    color: var(--muted);
    transition: color 0.2s ease;
    padding: 4px 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--text);
}

/* =========================================================
   COMPACT DAY / NIGHT MODE TOGGLE SWITCH (NO HOVER BOUNCE)
   ========================================================= */

.theme-toggle {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
    transform: none !important;
    transition: none !important;
}

.theme-toggle:hover,
.theme-toggle:active,
.theme-toggle:focus {
    transform: none !important;
    outline: none !important;
    background: none !important;
}

.theme-track {
    position: relative;
    width: 86px;
    height: 26px;
    border-radius: 9999px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: background 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

html[data-theme="light"] .theme-track,
[data-theme="light"] .theme-track {
    background: #e2e6eb;
    border-color: rgba(0, 0, 0, 0.16);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.theme-thumb {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

html[data-theme="light"] .theme-thumb,
[data-theme="light"] .theme-thumb {
    transform: translateX(60px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.theme-icon {
    width: 12px;
    height: 12px;
    stroke: #090b14;
    display: block;
}

.theme-thumb .sun-icon {
    display: none;
}

.theme-thumb .moon-icon {
    display: block;
}

html[data-theme="light"] .theme-thumb .sun-icon,
[data-theme="light"] .theme-thumb .sun-icon {
    display: block;
}

html[data-theme="light"] .theme-thumb .moon-icon,
[data-theme="light"] .theme-thumb .moon-icon {
    display: none;
}

.theme-label {
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    z-index: 1;
    transition: opacity 0.2s ease;
    line-height: 1;
    pointer-events: none;
    font-family: var(--font-sans);
}

.day-label {
    padding-left: 5px;
    color: #000000;
    opacity: 0;
}

.night-label {
    padding-right: 5px;
    color: #ffffff;
    opacity: 1;
}

html[data-theme="light"] .day-label,
[data-theme="light"] .day-label {
    opacity: 1;
}

html[data-theme="light"] .night-label,
[data-theme="light"] .night-label {
    opacity: 0;
}

button:not(.theme-toggle):active:not(:disabled),
.btn:active:not(:disabled) {
    transform: scale(0.97);
}

a {
    color: inherit;
    text-decoration: none;
    touch-action: manipulation;
}

.hidden {
    display: none !important;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (MOBILE & TABLET)
   ========================================================= */

/* Mobile Portrait Mode & Navigation (Standard Android view <= 768px) */
@media (max-width: 768px) {
    .navlinks a,
    .navlinks .btn,
    .navlinks a.btn,
    .navlinks .btn.primary {
        display: none !important;
    }

    .nav-toggle {
        display: flex;
    }

    .navlinks .theme-toggle {
        display: inline-flex;
    }
}

/* Small Android phones (< 480px width) */
@media (max-width: 480px) {
    body {
        padding-top: calc(62px + var(--sat));
    }

    .nav,
    .site-header {
        height: calc(62px + var(--sat));
        padding-left: max(12px, var(--sal));
        padding-right: max(12px, var(--sar));
    }

    .navlinks {
        gap: 8px;
    }

    .navlinks .online-users,
    .navlinks [data-online-users] {
        display: none !important;
    }

    .navlinks a,
    .navlinks .btn,
    .navlinks a.btn,
    .navlinks .btn.primary {
        display: none !important;
    }

    .brand {
        font-size: 17px;
        gap: 6px;
    }

    .brand-logo {
        width: 28px;
        height: 28px;
    }

    .theme-track {
        width: 68px;
        height: 20px;
    }

    .theme-thumb {
        width: 14px;
        height: 14px;
        top: 2px;
        left: 2px;
    }

    html[data-theme="light"] .theme-thumb,
    [data-theme="light"] .theme-thumb {
        transform: translateX(48px);
    }

    .theme-label {
        font-size: 6px;
    }

    .hero {
        padding: 24px 0 16px;
    }

    .hero h1 {
        font-size: clamp(24px, 6vw, 30px);
    }

    .hero p {
        font-size: 14px;
        line-height: 1.55;
    }

    .content {
        padding-top: 10px;
    }

    .card {
        padding: 16px;
        border-radius: 16px;
        margin-bottom: 12px;
    }

    .card h2 {
        font-size: 18px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .footer-links {
        gap: 10px 16px;
    }

    .container {
        width: min(100% - 24px, 1160px);
    }
}

/* 18+ Badge */
.badge-18plus {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    font-size: 11.5px;
    font-weight: 800;
    border-radius: 9999px;
    letter-spacing: 0.03em;
    vertical-align: middle;
}

html[data-theme="light"] .badge-18plus {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

/* ========================================================
   CONNECT WITH DEVELOPER COMPONENT
   ======================================================== */
.footer-social-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding: 1.25rem 0 0.5rem;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.footer-dev-credit {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted, var(--muted, #64748b));
    letter-spacing: 0.01em;
}

.footer-social-links {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Pill-style button base */
.footer-social-links .social-link,
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--bg-surface-elevated, #f1f5f9);
    border: 1px solid var(--border-medium, rgba(15, 23, 42, 0.14));
    color: var(--text-main, #0f172a);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
                background 160ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1),
                color 160ms cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.social-link i {
    font-size: 1rem;
    transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Lift & Scale */
.footer-social-links .social-link:hover,
.social-link:hover {
    transform: translateY(-2px);
    color: #ffffff !important;
}

.social-link:hover i {
    transform: scale(1.15);
}

/* Branded Brand States */
.footer-social-links .social-link.social-instagram:hover,
.social-link.social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border-color: #dc2743 !important;
    box-shadow: 0 6px 18px -2px rgba(220, 39, 67, 0.45);
    color: #ffffff !important;
}

.footer-social-links .social-link.social-linkedin:hover,
.social-link.social-linkedin:hover {
    background: #0a66c2 !important;
    border-color: #0a66c2 !important;
    box-shadow: 0 6px 18px -2px rgba(10, 102, 194, 0.45);
    color: #ffffff !important;
}

.footer-social-links .social-link.social-github:hover,
.social-link.social-github:hover {
    background: #24292f !important;
    border-color: #24292f !important;
    box-shadow: 0 6px 18px -2px rgba(36, 41, 47, 0.45);
    color: #ffffff !important;
}

/* Optional Dark Theme Support (via class or data-theme="dark") */
html:not([data-theme="light"]) .social-link,
[data-theme="dark"] .social-link,
body.dark-mode .social-link {
    background: #1a2336;
    border-color: rgba(255, 255, 255, 0.16);
    color: #f1f5f9;
}

html:not([data-theme="light"]) .social-link.social-github:hover,
[data-theme="dark"] .social-link.social-github:hover,
body.dark-mode .social-link.social-github:hover {
    background: #1f242c !important;
    border-color: #4b5262 !important;
    box-shadow: 0 6px 18px -2px rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

/* Responsive Stacking for Small Mobile Screens */
@media (max-width: 580px) {
    .footer-social-wrapper {
        flex-direction: column;
        gap: 0.65rem;
    }
    .footer-social-links {
        width: 100%;
        justify-content: center;
    }
}