:root {
    --bg-dark: #101923;
    --bg-muted: #152135;
    --bg-panel: rgba(21, 33, 53, 0.75);
    --text-primary: #f8fbff;
    --text-muted: #a9b6d2;
    --accent: #6aa5ff;
    --accent-soft: rgba(106, 165, 255, 0.12);
    --accent-strong: #4d8df5;
    --danger: #ff6b6b;
    --success: #64d99d;
    --warning: #f6c344;
    --card-bg: rgba(32, 46, 72, 0.65);
    --card-border: rgba(143, 172, 220, 0.18);
    --shadow-soft: 0 18px 45px rgba(7, 14, 30, 0.55);
    --radius-lg: 28px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font-main: 'Manrope', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.app-body {
    margin: 0;
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
}

body.app-body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.app-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(140deg, rgba(9, 17, 31, 0.85), rgba(10, 24, 37, 0.7)),
        radial-gradient(120% 120% at 10% 20%, rgba(106, 165, 255, 0.45) 0%, transparent 60%),
        radial-gradient(150% 150% at 90% 10%, rgba(255, 140, 105, 0.3) 0%, transparent 60%),
        radial-gradient(100% 100% at 50% 80%, rgba(110, 220, 190, 0.28) 0%, transparent 65%),
        url('../smeakotak.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    overflow: hidden;
}

.app-bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(transparent 95%, rgba(255, 255, 255, 0.06) 96%),
        linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.05) 96%);
    background-size: 140px 140px;
    opacity: 0.35;
    mix-blend-mode: screen;
}

.app-aurora {
    position: absolute;
    width: clamp(220px, 35vw, 460px);
    height: clamp(220px, 35vw, 460px);
    border-radius: 40%;
    filter: blur(60px);
    opacity: 0.6;
}

.aurora-one {
    top: -10%;
    right: 5%;
    background: radial-gradient(circle, rgba(106, 165, 255, 0.85), rgba(106, 165, 255, 0));
}

.aurora-two {
    bottom: 0;
    left: 5%;
    background: radial-gradient(circle, rgba(255, 140, 105, 0.9), rgba(255, 140, 105, 0));
}

.app-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: clamp(18px, 4vw, 48px);
    display: flex;
    justify-content: center;
}

.app-chrome {
    width: min(1600px, 100%);
    margin: 0 auto;
    min-height: calc(100vh - clamp(40px, 8vw, 96px));
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 32px);
}

@media (max-width: 768px) {
    .app-wrapper {
        padding: clamp(8px, 3vw, 12px);
    }

    .app-background {
        background-image: linear-gradient(150deg, rgba(6, 14, 26, 0.7), rgba(15, 25, 40, 0.62)),
            radial-gradient(120% 120% at 15% 10%, rgba(106, 165, 255, 0.45) 0%, transparent 55%),
            radial-gradient(150% 150% at 85% 10%, rgba(255, 140, 105, 0.3) 0%, transparent 60%),
            radial-gradient(100% 100% at 45% 80%, rgba(110, 220, 190, 0.22) 0%, transparent 60%),
            url('../smeapotrai.jpeg');
        background-position: center top;
    }

    .app-aurora {
        width: clamp(180px, 45vw, 320px);
        height: clamp(180px, 45vw, 320px);
        filter: blur(50px);
        opacity: 0.5;
    }

    .app-chrome {
        min-height: auto;
        gap: 18px;
    }
}

.brand-circle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: var(--bg-dark);
    box-shadow: 0 12px 25px rgba(107, 165, 255, 0.35);
    overflow: hidden;
}

.brand-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
}

.brand-subtitle {
    margin: 2px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Buttons */
.primary-button,
.ghost-button {
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.primary-button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #101923;
    box-shadow: 0 15px 30px rgba(106, 165, 255, 0.35);
}

.primary-button:hover {
    transform: translateY(-2px);
}

.primary-button.danger {
    background: linear-gradient(135deg, #ff7b7b, #ff4e4e);
    color: #fff;
    box-shadow: 0 18px 36px rgba(255, 107, 107, 0.45);
}

.ghost-button {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.14);
}

.ghost-button.danger {
    border-color: rgba(255, 107, 107, 0.5);
    color: #ff9393;
}

.ghost-button.danger:hover {
    background: rgba(255, 107, 107, 0.18);
}

.ghost-button:disabled,
.primary-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mt {
    margin-top: 16px;
}

/* Auth layout */
.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(17, 27, 43, 0.78);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(130, 160, 220, 0.2);
    padding: 42px 36px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    text-align: center;
}

.brand-logo {
    width: 88px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(106, 165, 255, 0.28));
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

@media (max-width: 480px) {
    .brand-logo {
        width: 72px;
    }
}

.form-grid {
    display: grid;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.form-field.split > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.inline {
    flex: 1;
    min-width: 180px;
}

.form-field.full-width {
    grid-column: span 2;
}

.form-grid .form-field.full-width {
    grid-column: 1 / -1;
}

.form-grid .form-field.split {
    grid-column: 1 / -1;
}

@media (max-width: 720px) {
    .form-field.full-width {
        grid-column: span 1;
    }
}

label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    background: rgba(18, 28, 45, 0.85);
    border: 1px solid rgba(123, 159, 223, 0.25);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(106, 165, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(106, 165, 255, 0.18);
    outline: none;
}

.field-hint {
    font-size: 12px;
    color: rgba(216, 226, 255, 0.92);
}

.field-hint.field-hint-link {
    text-align: center;
}

.field-link {
    color: #9ec4ff;
    font-weight: 600;
    text-decoration: underline;
}

.field-link:hover {
    color: #c3dbff;
}

.field-error {
    font-size: 13px;
    color: #ff8b8b;
    margin: 0;
}

.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(100, 217, 157, 0.12);
    border-color: rgba(100, 217, 157, 0.35);
    color: #9cf0c1;
}

.alert-error {
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.35);
    color: #ffc0c0;
}

/* Admin layout */
.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 26px;
    min-height: calc(100vh - 64px);
    align-items: flex-start;
}

.admin-sidebar {
    background: rgba(15, 24, 38, 0.9);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(120, 150, 210, 0.18);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: sticky;
    top: 32px;
    height: calc(100vh - 64px);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 45px rgba(3, 8, 20, 0.45);
}

.sidebar-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-logo {
    width: 56px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 10px 24px rgba(106, 165, 255, 0.25));
}

.sidebar-nav {
    margin-top: 32px;
    display: grid;
    gap: 10px;
    flex: 1 1 auto;
    align-content: start;
    overflow-y: auto;
    padding-right: 4px;
}

.sidebar-logout {
    margin-top: auto;
}

.nav-link {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
}

.nav-link:hover,
.nav-link.is-active {
    background: rgba(106, 165, 255, 0.16);
    color: var(--text-primary);
}

.logout-button {
    width: 100%;
    text-align: left;
    background: rgba(255, 107, 107, 0.12);
    color: #ffaaaa;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.admin-main {
    background: rgba(17, 26, 40, 0.78);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(125, 160, 220, 0.15);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    box-sizing: border-box;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.admin-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 18px;
}

.page-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.page-subtitle {
    margin: 6px 0 0;
    color: var(--text-muted);
}

.header-meta {
    display: flex;
    align-items: center;
}

.meta-badge {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: var(--text-muted);
}

.admin-content {
    flex: 1;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    padding: 10px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 10px;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 30, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.sidebar-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Cards & panels */
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 12px 0;
    flex-wrap: wrap;
    background: transparent; /* remove dark band under image */
}

.stat-label {
    margin: 0 0 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(214, 224, 245, 0.75);
}

.stat-value {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.stat-footnote {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 14px;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.panel-grid.single {
    grid-template-columns: 1fr;
}

.panel {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    padding: 24px;
    box-shadow: 0 12px 25px rgba(7, 12, 22, 0.45);
}

.panel.compact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.panel-header h4 {
    margin: 0;
    font-size: 18px;
}

.panel-header p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 14px;
}

.panel-actions {
    display: flex;
    gap: 10px;
}

.form-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-title {
    margin-top: 0;
    margin-bottom: 18px;
}

.paslon-card-grid {
    display: grid;
    gap: 16px;
}

.paslon-card-grid.slim {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.paslon-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.paslon-card.small {
    text-align: center;
}

.paslon-card h5 {
    margin: 8px 0 4px;
    font-size: 16px;
}

.paslon-number {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
}

.paslon-votes {
    margin: 6px 0 0;
    color: var(--accent);
    font-weight: 600;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 26px 12px;
}

.chart-list {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.chart-row {
    display: grid;
    grid-template-columns: 1fr minmax(140px, 2fr) auto;
    gap: 14px;
    align-items: center;
}

.chart-label {
    display: flex;
    flex-direction: column;
}

.chart-title {
    font-weight: 600;
}

.chart-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.chart-bar {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xs);
    overflow: hidden;
    height: 14px;
}

.chart-bar-fill {
    position: absolute;
    inset: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(106, 165, 255, 0.8), rgba(106, 165, 255, 0.3));
    transition: width 0.6s ease;
}

.chart-value {
    font-weight: 600;
}

.toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(121, 150, 210, 0.18);
}

.hide-sm {
    display: block;
}

.show-sm {
    display: none;
}

.mobile-card-list {
    gap: 16px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(125, 160, 220, 0.1);
    vertical-align: top;
    text-align: left;
}

.data-table th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(211, 224, 248, 0.6);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.table-title {
    font-weight: 600;
}

.table-subtitle {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.text-block {
    max-width: 240px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(215, 226, 249, 0.85);
}

.text-center {
    text-align: center;
}

.table-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.table-actions form {
    margin: 0;
}

.table-note {
    color: var(--text-muted);
}

.paslon-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.4);
}

.paslon-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    font-size: 28px;
    color: var(--text-muted);
}

.image-preview img {
    max-width: 160px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel.mt {
    margin-top: 18px;
}

.token-list {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    height: 100px;
}

.import-errors {
    margin: 12px 0 0;
    padding-left: 20px;
    color: rgba(255, 210, 150, 0.9);
    font-size: 13px;
    line-height: 1.6;
}

.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
}

.chip.is-active {
    background: rgba(106, 165, 255, 0.18);
    color: #dce8ff;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge.success {
    background: rgba(100, 217, 157, 0.18);
    color: #a7f5c9;
}

.badge.warning {
    background: rgba(255, 211, 99, 0.18);
    color: #ffe29a;
}

.badge-soft {
    background: rgba(106, 165, 255, 0.18);
    color: #cfe1ff;
}

.badge-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 6px;
}

.pagination-bar {
    margin-top: 16px;
}

.pagination-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pagination-item {
    display: flex;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(110, 150, 215, 0.2);
    background: rgba(18, 28, 45, 0.75);
    color: #d7e4ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 14px;
}

.pagination-icon {
    font-size: 16px;
    line-height: 1;
}

.pagination-link:hover {
    background: rgba(106, 165, 255, 0.2);
    color: #fff;
}

.pagination-link.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #0f1826;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(106, 165, 255, 0.35);
}

.pagination-link.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pagination-ellipsis {
    color: rgba(220, 230, 255, 0.5);
    padding: 0 6px;
}

.pagination-summary {
    color: rgba(205, 216, 241, 0.75);
    font-size: 13px;
}

.pagination-summary span {
    color: #e7f1ff;
    font-weight: 600;
}

/* Voter layout */
.voter-shell {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-height: 100vh;
}

.voter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16, 25, 35, 0.85);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(120, 150, 210, 0.18);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    gap: 24px;
}

.header-left {
    display: flex;
    gap: 14px;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.header-right form {
    margin: 0;
}

.header-right .ghost-button {
    padding: 12px 24px;
}

.voter-main {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

@media (max-width: 768px) {
    .voter-header {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .header-left {
        justify-content: space-between;
        gap: 18px;
    }

    .header-right {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    .header-right .ghost-button {
        width: 100%;
        justify-content: center;
    }
}

.token-banner {
    background: rgba(16, 28, 45, 0.85);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    border: 1px solid rgba(130, 160, 220, 0.15);
    box-shadow: var(--shadow-soft);
}

.token-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 520px;
}

.banner-label {
    margin: 0;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: rgba(220, 232, 255, 0.6);
}

.banner-value {
    margin: 8px 0 0;
    font-size: 30px;
}

.banner-text {
    margin: 0;
    max-width: 460px;
    color: rgba(200, 210, 235, 0.85);
    line-height: 1.6;
}

.banner-subtext {
    margin: 0;
    color: rgba(205, 218, 245, 0.65);
    font-size: 13px;
}

.paslon-stage {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(140, 170, 225, 0.22);
    padding: 32px;
    background-image: linear-gradient(135deg, rgba(8, 13, 24, 0.88), rgba(16, 26, 42, 0.92)), url('../smeakotak.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.paslon-stage .empty-state {
    margin: 0;
    padding: 42px 16px;
    color: rgba(230, 238, 255, 0.75);
}

.paslon-stage .paslon-grid {
    position: relative;
    z-index: 1;
}

.paslon-stage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.stage-eyebrow {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    color: rgba(209, 223, 250, 0.65);
}

.stage-title {
    margin: 0;
    font-size: clamp(22px, 4vw, 30px);
    max-width: 520px;
    line-height: 1.3;
}

.stage-meta {
    margin: 6px 0 0;
    max-width: 420px;
    color: rgba(210, 222, 245, 0.8);
    line-height: 1.6;
}

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

.voter-card {
    background: rgba(17, 26, 40, 0.82);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(120, 150, 210, 0.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 16px 0;
    flex-wrap: wrap;
}

.card-head-primary {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 260px;
}

.paslon-subtitle {
    margin: 6px 0 0;
    color: rgba(207, 220, 255, 0.8);
    font-size: 14px;
}

.paslon-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 180px;
}

.paslon-meta-text {
    margin: 0;
    font-size: 13px;
    color: rgba(205, 218, 245, 0.7);
}

.paslon-number {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    background: rgba(15, 24, 38, 0.65);
    border-radius: var(--radius-md);
    border: 1px solid rgba(120, 150, 210, 0.2);
    min-width: 96px;
}

.paslon-number span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(205, 218, 245, 0.55);
}

.paslon-number strong {
    font-size: 28px;
    margin-top: 4px;
}

.paslon-headline {
    flex: 1;
    min-width: 200px;
}

.paslon-headline h3 {
    margin: 0;
    font-size: clamp(20px, 3vw, 28px);
}

.paslon-headline .tagline,
.paslon-headline .paslon-subtitle {
    color: rgba(207, 220, 255, 0.85);
}

.paslon-label {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 11px;
    color: rgba(205, 218, 245, 0.55);
}

.card-head .badge-soft {
    position: static;
    align-self: flex-start;
    background: rgba(106, 165, 255, 0.2);
    color: #e2ecff;
}

.badge-media {
    position: absolute;
    top: 18px;
    right: 18px;
    left: auto;
}

.card-media {
    position: relative;
    background: rgba(15, 24, 38, 0.7);
    overflow: hidden;
}

.card-media::before {
    content: "";
    display: block;
    padding-top: 133.333%;
}

@supports (aspect-ratio: 3 / 4) {
    .card-media {
        aspect-ratio: 3 / 4;
    }

    .card-media::before {
        display: none;
    }
}

.card-media img,
.card-media .paslon-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-media .paslon-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(32px, 5vw, 48px);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(210, 222, 245, 0.85);
}

.media-overlay {
    display: none; /* overlay removed; keep selector in case reused */
}

.media-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 11px;
    color: rgba(225, 235, 255, 0.65);
}

.media-text {
    margin: 6px 0 0;
    font-size: 16px;
    font-weight: 600;
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.card-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(13, 22, 38, 0.75);
    border: 1px solid rgba(120, 150, 210, 0.15);
    border-radius: var(--radius-md);
}

.card-section-accent {
    background: linear-gradient(145deg, rgba(12, 20, 38, 0.85), rgba(18, 28, 45, 0.95));
    border-color: rgba(106, 165, 255, 0.28);
    box-shadow: 0 16px 30px rgba(7, 12, 25, 0.35);
    padding: 20px;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-toggle {
    border: none;
    background: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    margin-top: 4px;
    align-self: flex-start;
}

.section-toggle:hover {
    color: var(--accent-strong);
}

.summary-collapsed,
.summary-expanded {
    margin: 0;
}

.summary-expanded {
    display: none;
}

.expandable-text[data-expanded="true"] .summary-collapsed {
    display: none;
}

.expandable-text[data-expanded="true"] .summary-expanded {
    display: block;
}

.expandable-text[data-expanded="false"] .summary-expanded {
    display: none;
}

.expandable-list[data-expanded="false"][data-expand-limit="missions"] .mission-list li:nth-child(n + 4),
.expandable-list[data-expanded="false"][data-expand-limit="programs"] .program-chips .program-chip:nth-child(n + 4) {
    display: none;
}

.section-title {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 11px;
    color: rgba(205, 218, 245, 0.6);
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 190px;
    overflow-y: auto;
    padding-right: 6px;
}

.mission-list li {
    display: flex;
    gap: 10px;
    color: rgba(205, 215, 240, 0.9);
    font-size: 14px;
}

.mission-list li span:last-child {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.mission-index {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(106, 165, 255, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(225, 235, 255, 0.85);
}

.mission-empty {
    color: rgba(210, 222, 245, 0.65);
    font-style: italic;
}

.program-chips {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.program-chip {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    width: 100%;
    background: rgba(106, 165, 255, 0.12);
    border: 1px solid rgba(106, 165, 255, 0.25);
    font-size: 13px;
    color: #d5e2ff;
    text-align: left;
}

.card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 16px;
}

.card-footer form {
    margin: 0;
}

.card-footer > button,
.card-footer .primary-button,
.card-footer .ghost-button {
    width: 100%;
}

.vote-form {
    width: 100%;
}

@media (max-width: 1024px) {
    .paslon-stage {
        padding: 26px;
    }
}

@media (max-width: 768px) {
    .paslon-stage {
        padding: 22px;
        border-radius: var(--radius-md);
        background-image: linear-gradient(150deg, rgba(6, 12, 22, 0.85), rgba(18, 24, 38, 0.9)), url('../smeapotrai.jpeg');
        background-position: center top;
    }

    .paslon-stage .empty-state {
        padding: 32px 12px;
    }
}

@media (max-width: 480px) {
    .paslon-stage {
        padding: 18px;
    }
}

.card-body h3 {
    margin: 0;
    font-size: 20px;
}

.tagline {
    margin: 0;
    color: rgba(207, 220, 255, 0.8);
    font-style: italic;
}

.tagline.small-tagline {
    font-style: normal;
    color: rgba(210, 222, 245, 0.85);
    font-size: 14px;
    margin-top: 4px;
}

.summary {
    margin: 0;
    line-height: 1.6;
    color: rgba(205, 215, 240, 0.85);
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 25, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 10;
    backdrop-filter: blur(6px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal.is-open {
    display: flex;
}

.modal-dialog {
    max-width: 620px;
    width: 100%;
    background: rgba(17, 27, 43, 0.96);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(123, 159, 223, 0.18);
    padding: 28px 32px;
    position: relative;
    box-shadow: 0 25px 60px rgba(3, 8, 20, 0.55);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: auto;
}

.modal-dialog-wide {
    max-width: 780px;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.modal-header {
    margin-bottom: 18px;
}

.modal-header h3 {
    margin: 8px 0 0;
    font-size: 24px;
}

.modal-badge {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(199, 214, 244, 0.7);
}

.modal-tagline {
    margin-top: 6px;
    font-style: italic;
    color: rgba(208, 220, 245, 0.8);
}

.modal-meta {
    margin-top: 6px;
    color: rgba(205, 216, 241, 0.85);
    font-size: 14px;
}

.modal-body {
    display: grid;
    gap: 18px;
}

.modal-body-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.modal-body h4 {
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.16em;
    color: rgba(198, 211, 236, 0.7);
}

.modal-body ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(210, 222, 245, 0.85);
    line-height: 1.6;
}

.modal-section {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(10, 18, 32, 0.65);
    border: 1px solid rgba(120, 150, 210, 0.15);
}

.modal-footer {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-modal {
    z-index: 25;
}

.confirm-modal .modal-dialog {
    max-width: 480px;
    padding: 34px 32px 30px;
    text-align: center;
}

.confirm-modal .modal-header {
    text-align: center;
}

.confirm-modal .modal-meta {
    font-size: 15px;
    color: rgba(210, 222, 245, 0.9);
}

.confirm-modal .modal-footer {
    justify-content: center;
    flex-wrap: wrap;
}

.confirm-modal .ghost-button,
.confirm-modal .primary-button {
    min-width: 140px;
}

/* Guest thanks */
.thanks-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thanks-card h2 {
    margin: 0;
    font-size: 28px;
}

.thanks-card .muted {
    color: var(--text-muted);
    font-size: 14px;
}

/* Badge overlay */
.badge-soft {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 600;
    font-size: 12px;
}

.code-cell {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    letter-spacing: 0.16em;
}

.badge-soft,
.modal-badge {
    background: rgba(106, 165, 255, 0.2);
    color: #e2ecff;
}

@media (max-width: 1024px) {
    .admin-shell {
        grid-template-columns: 1fr;
        position: relative;
    }

    .menu-toggle {
        display: flex;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-105%);
        width: 260px;
        max-width: 85%;
        height: 100%;
        z-index: 20;
        display: flex;
        flex-direction: column;
        gap: 24px;
        transition: transform 0.25s ease;
        border-radius: 0;
        border-right: 1px solid rgba(120, 150, 210, 0.2);
    }

    .sidebar-close {
        display: inline-flex;
    }

    .sidebar-logo {
        width: 48px;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
        overflow-y: auto;
    }

    .sidebar-logout {
        margin-top: auto;
    }

    .admin-shell.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-shell.sidebar-open .sidebar-overlay {
        display: block;
    }

    .admin-main {
        padding: 24px;
    }

    .admin-header {
        align-items: center;
    }
}

@media (max-width: 640px) {
    .hide-sm {
        display: none;
    }

    .show-sm {
        display: grid;
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .paslon-stage {
        padding-left: 0;
        padding-right: 0;
        /* offset outer wrapper padding so stage flushes to viewport edges */
        margin-left: -8px;
        margin-right: -8px;
    }

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

    .voter-card {
        min-width: 0;
    }

    .voter-header,
    .token-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-head {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .card-head-primary {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .paslon-meta {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .card-media img {
        height: 100%;
        object-position: top center;
    }

    .card-body {
        padding: 18px;
        gap: 14px;
    }

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

    .card-footer {
        grid-template-columns: 1fr 1fr;
    }

    .modal {
        padding: 0;
        align-items: flex-start;
    }

    .modal-dialog {
        max-height: 100vh;
        border-radius: 0;
        padding: 20px 16px;
        margin: 0;
    }

    .modal-body {
        max-height: calc(100vh - 200px);
    }

    .paslon-number {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .paslon-number span {
        letter-spacing: 0.16em;
    }

    .paslon-stage-header {
        flex-direction: column;
        padding: 0 20px;
    }

    .card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-main {
        padding: 20px;
        border-radius: 22px;
    }

    .admin-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .admin-header > div:first-child {
        width: 100%;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px;
    }

    .admin-header > div:first-child > div {
        flex: 1 1 auto;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .header-meta {
        justify-content: flex-start;
    }

    .meta-badge {
        display: inline-flex;
    }

    .card-grid,
    .panel-grid {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 20px;
    }

    .data-table {
        min-width: 620px;
    }

    .mobile-paslon-card {
        background: rgba(17, 26, 40, 0.85);
        border-radius: 18px;
        border: 1px solid rgba(130, 160, 220, 0.15);
        padding: 20px;
        display: grid;
        gap: 14px;
        box-shadow: 0 18px 36px rgba(5, 10, 20, 0.55);
    }

    .mobile-card-header {
        display: flex;
        gap: 14px;
        align-items: center;
    }

    .mobile-card-media img {
        width: 72px;
        height: 72px;
        object-fit: cover;
        border-radius: 16px;
    }

    .mobile-card-media .paslon-thumb {
        width: 72px;
        height: 72px;
        border-radius: 16px;
        font-size: 26px;
    }

    .mobile-card-title h3 {
        margin: 4px 0 0;
        font-size: 18px;
    }

    .mobile-card-subtitle {
        margin: 4px 0 0;
        color: rgba(205, 215, 240, 0.8);
        font-size: 13px;
    }

    .mobile-card-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 4px 10px;
        border-radius: 999px;
        background: rgba(106, 165, 255, 0.2);
        color: #dce8ff;
        font-size: 12px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .mobile-card-section h4 {
        margin: 0 0 6px;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 0.16em;
        color: rgba(198, 211, 236, 0.7);
    }

    .mobile-card-section p {
        margin: 0;
        color: rgba(211, 222, 245, 0.85);
        line-height: 1.6;
        font-size: 14px;
    }

    .mobile-card-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .mobile-token-card {
        background: rgba(17, 26, 40, 0.85);
        border-radius: 18px;
        border: 1px solid rgba(130, 160, 220, 0.15);
        padding: 18px;
        display: grid;
        gap: 12px;
        box-shadow: 0 18px 36px rgba(5, 10, 20, 0.5);
    }

    .mobile-token-card header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .mobile-token-card .token-code {
        font-family: 'Courier New', monospace;
        font-size: 18px;
        letter-spacing: 0.22em;
        font-weight: 700;
    }

    .mobile-token-card .token-meta {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .mobile-token-card section p {
        margin: 4px 0;
        color: rgba(210, 222, 245, 0.85);
        font-size: 14px;
        line-height: 1.5;
    }

    .mobile-token-card footer {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .mobile-token-card footer .ghost-button {
        width: 100%;
    }

    .pagination-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .pagination-list {
        justify-content: center;
    }

    .pagination-summary {
        text-align: center;
    }

    .stat-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* ============================
   Paslon Detail Page Styles
   ============================ */

.paslon-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    align-items: start;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.18s ease;
    margin-bottom: 20px;
}

.detail-back-button:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(-2px);
}

.detail-back-button svg {
    width: 18px;
    height: 18px;
}

.detail-media {
    width: 100%;
    max-width: none;
    margin: 0;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.detail-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
}

.detail-section p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-list li {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.detail-list li::before {
    content: '•';
    color: var(--accent);
    font-weight: bold;
    font-size: 20px;
    line-height: 1.3;
    flex-shrink: 0;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.detail-actions form,
.detail-actions .ghost-button {
    flex: 1;
}

.detail-actions .primary-button,
.detail-actions .ghost-button {
    width: 100%;
}

@media (max-width: 640px) {
    .paslon-detail-container {
        padding: 12px 16px;
    }

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

    .detail-media {
        max-width: 200px;
        margin: 0 auto;
        border-radius: var(--radius-md);
    }

    .detail-back-button {
        margin-bottom: 16px;
        padding: 8px 14px;
        font-size: 13px;
    }

    .detail-section {
        padding: 18px;
        margin-bottom: 12px;
        border-radius: var(--radius-md);
    }

    .detail-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .detail-section p {
        font-size: 14px;
    }

    .detail-list {
        gap: 10px;
    }

    .detail-list li {
        font-size: 14px;
    }

    .detail-actions {
        flex-direction: column;
        margin-top: 16px;
        gap: 10px;
    }
}

/* ============================
   Footer Component Styles
   ============================ */

.app-footer {
    margin-top: auto;
    padding: 24px 0;
    border-top: 1px solid var(--card-border);
    background: var(--bg-muted);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    width: 60px;
    height: auto;
    opacity: 0.7;
}

.footer-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .app-footer {
        padding: 20px 0;
    }

    .footer-content {
        gap: 10px;
        padding: 0 16px;
    }

    .footer-logo {
        width: 50px;
    }

    .footer-text {
        font-size: 13px;
    }
}
