/* -------------------------------------------------------------
 * OwnPay Update Registry - Core Stylesheet
 * Premium White Shade Theme (Default) & Dark Mode Configuration
 * ------------------------------------------------------------- */

:root {
    /* Brand & Theme Colors (Light Theme Default) */
    --bg-color: #f8fafc;
    --panel-bg: rgba(255, 255, 255, 0.85);
    --border-color: rgba(15, 23, 42, 0.08);
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    --primary: #0082e6; /* OwnPay Brand Blue */
    --primary-glow: rgba(0, 130, 230, 0.15);
    --primary-dark: #0a2540; /* OwnPay Navy */
    --accent: #4f46e5;
    --accent-glow: rgba(79, 70, 229, 0.15);
    
    --success: #059669;
    --danger: #d90429;
    --warning: #d97706;
    
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --glass-blur: blur(16px);
    
    /* Box Shadows */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08);
    
    --card-header-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-color: #080c14;
    --panel-bg: rgba(15, 22, 36, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    
    --primary: #0091ff;
    --primary-glow: rgba(0, 145, 255, 0.3);
    --primary-dark: #0056b3;
    --accent: #818cf8;
    --accent-glow: rgba(129, 140, 248, 0.25);
    
    --success: #10b981;
    --danger: #f43f5e;
    --warning: #fbbf24;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    --card-header-bg: linear-gradient(135deg, rgba(20, 27, 45, 0.9) 0%, rgba(15, 22, 36, 0.9) 100%);
}

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

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Ambient Glowing Background --- */
.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 30s infinite alternate ease-in-out;
}

[data-theme="dark"] .bg-blob {
    opacity: 0.2;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -15%;
    right: -10%;
    animation-duration: 25s;
}

.blob-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -20%;
    left: -15%;
    animation-duration: 35s;
}

.blob-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: 35%;
    right: 15%;
    animation-duration: 20s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 60px) scale(1.1); }
}

/* --- Sticky Top Navigation --- */
.topnav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 40px;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .topnav {
    background: rgba(8, 12, 20, 0.8);
}

.topnav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.topnav-brand img {
    height: 32px;
    width: auto;
}

.topnav-brand span {
    font-weight: 500;
    opacity: 0.85;
    font-size: 15px;
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.topnav-link {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.topnav-link:hover {
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .topnav-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.theme-toggle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.05);
}

.theme-toggle:hover {
    color: var(--text-main);
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle .sun {
    display: none;
}

.theme-toggle .moon {
    display: inline;
}

[data-theme="dark"] .theme-toggle .sun {
    display: inline;
}

[data-theme="dark"] .theme-toggle .moon {
    display: none;
}

/* --- Header Section --- */
header {
    padding: 60px 20px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 70px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.05));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Show light theme logo by default, hide dark theme logo */
.logo-light-theme {
    display: inline-block !important;
}
.logo-dark-theme {
    display: none !important;
}

/* Switch visibility in dark mode */
[data-theme="dark"] .logo-light-theme {
    display: none !important;
}
[data-theme="dark"] .logo-dark-theme {
    display: inline-block !important;
}

[data-theme="dark"] .logo-img {
    filter: drop-shadow(0 4px 20px var(--primary-glow));
}

.logo-link:hover .logo-img {
    transform: translateY(-3px) scale(1.03);
}

.logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 28px;
    color: #fff;
    box-shadow: var(--shadow-md);
}

h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-dark) 20%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

[data-theme="dark"] h1 {
    background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 24px;
}

/* Verification Command Bar */
.hero-cmd {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 24px auto 12px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: var(--shadow-md);
}

.hero-cmd code {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: #f1f5f9;
    background: none;
    text-align: left;
    white-space: nowrap;
    overflow-x: auto;
}

.hero-cmd code::-webkit-scrollbar {
    height: 4px;
}

.hero-cmd code::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.hero-copy {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.hero-copy:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hero-note {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* --- Main Layout --- */
main {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px 60px;
    flex-grow: 1;
}

/* --- Server Stats Bar --- */
.stats-bar {
    background: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

/* --- Tabs --- */
.tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: rgba(15, 23, 42, 0.03);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .tabs-container {
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 20px;
    font-family: var(--font-main);
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* --- Search Bar --- */
.release-search-wrap {
    max-width: 460px;
    margin: 0 auto 30px;
    position: relative;
}

.release-search {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px 12px 44px;
    background: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 14.5px;
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.release-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.release-search::placeholder {
    color: var(--text-muted);
}

.release-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    padding: 30px;
    background: var(--panel-bg);
    border-radius: 16px;
    border: 1px dashed var(--border-color);
}

/* --- Channel Panels --- */
.channel-panel {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.channel-panel.active {
    display: block;
}

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

/* --- Latest Release Card (Featured) --- */
.latest-card {
    background: var(--card-header-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.latest-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 130, 230, 0.2);
}

.latest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--success) 100%);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.version-badge-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.version-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.latest-badge {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breaking-badge {
    background: rgba(217, 4, 41, 0.08);
    color: var(--danger);
    border: 1px solid rgba(217, 4, 41, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.release-date {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Download Actions */
.download-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.download-action-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    color: #fff;
    padding: 12px 26px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 15px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.25s ease;
    text-decoration: none;
}

.download-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 130, 230, 0.4);
}

.download-mirror-link {
    font-size: 12.5px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.download-mirror-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.unavailable-badge {
    background: rgba(217, 119, 6, 0.1);
    color: var(--warning);
    border: 1px solid rgba(217, 119, 6, 0.2);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

/* Meta Data Grid */
.latest-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 28px;
}

.meta-cell {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.meta-val {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.meta-val-mono {
    font-family: var(--font-mono);
    font-size: 13px;
    background: rgba(15, 23, 42, 0.03);
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

[data-theme="dark"] .meta-val-mono {
    background: rgba(255, 255, 255, 0.03);
}

.copy-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.copy-icon-btn:hover {
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .copy-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Breaking Change Note Box */
.breaking-note-box {
    background: rgba(217, 4, 41, 0.04);
    border: 1px solid rgba(217, 4, 41, 0.12);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #9b001c;
}

[data-theme="dark"] .breaking-note-box {
    background: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.2);
    color: #fda4af;
}

/* Migration Tags */
.migration-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    background: rgba(79, 70, 229, 0.06);
    color: var(--accent);
    border: 1px solid rgba(79, 70, 229, 0.12);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

[data-theme="dark"] .migration-tag {
    background: rgba(129, 140, 248, 0.1);
    color: #a5b4fc;
    border-color: rgba(129, 140, 248, 0.2);
}

/* Changelog Styling */
.changelog-box h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.markdown-body {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-main);
    opacity: 0.9;
}

.markdown-body ul, .markdown-body ol {
    padding-left: 24px;
    margin-bottom: 14px;
}

.markdown-body li {
    margin-bottom: 8px;
}

.markdown-body h2, .markdown-body h3 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 18px;
    margin-bottom: 10px;
    color: var(--primary);
}

/* --- Historical Releases List --- */
.history-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-item {
    background: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: rgba(0, 130, 230, 0.2);
    box-shadow: var(--shadow-md);
}

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

.history-version-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.history-version-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.history-date {
    font-size: 13.5px;
    color: var(--text-muted);
}

.history-arrow {
    width: 24px;
    height: 24px;
    fill: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-item.open .history-arrow {
    transform: rotate(180deg);
}

.history-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 24px;
}

.history-item.open .history-body {
    max-height: 2000px;
    padding-bottom: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* --- Empty / Error State --- */
.empty-state {
    padding: 50px 30px;
    text-align: center;
    background: var(--panel-bg);
    border-radius: 20px;
    border: 1.5px dashed var(--border-color);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 16px;
}

/* --- Toast Messages --- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0f172a;
    border: 1px solid var(--success);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14.5px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- SVG Icons --- */
.icon {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
    vertical-align: middle;
}

/* --- Footer Area --- */
footer {
    padding: 60px 20px;
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: var(--glass-blur);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] footer {
    background: rgba(8, 12, 20, 0.4);
}

footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .footer-social a {
    background: rgba(255, 255, 255, 0.04);
}

.footer-social a:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* --- Device Responsiveness --- */
@media (max-width: 768px) {
    .topnav {
        padding: 14px 20px;
    }
    
    header {
        padding: 40px 20px 30px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    .latest-card {
        padding: 24px;
    }
    
    .card-header-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .download-actions {
        align-items: flex-start;
        width: 100%;
        margin-top: 10px;
    }
    
    .download-action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .topnav {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .topnav-right {
        justify-content: center;
        width: 100%;
    }
    
    .hero-cmd {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .hero-cmd code {
        white-space: normal;
        word-break: break-all;
    }
    
    .hero-copy {
        align-self: flex-end;
    }
    
    .stats-bar {
        padding: 16px 20px;
    }
    
    .stat-item {
        min-width: 100%;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 12px;
    }
    
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}
