/* NES — Design System Premium */

:root {
    --bg-primary: #000000;
    --bg-secondary: #1d1d1f;
    --bg-tertiary: #2d2d2f;
    --bg-elevated: rgba(29, 29, 31, 0.72);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);

    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #6e6e73;

    --accent: #2997ff;
    --accent-hover: #0077ed;
    --accent-glow: rgba(41, 151, 255, 0.35);

    --success: #30d158;
    --warning: #ffd60a;
    --danger: #ff453a;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px var(--accent-glow);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --nav-height: 52px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(41, 151, 255, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(48, 209, 88, 0.06), transparent);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
.display-xl {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.display-lg {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.display-md {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.headline {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.body-lg {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.body {
    font-size: 1rem;
    color: var(--text-secondary);
}

.caption {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.gradient-text {
    background: linear-gradient(135deg, #f5f5f7 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-text {
    background: linear-gradient(135deg, #2997ff 0%, #5ac8fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.container-narrow {
    max-width: 720px;
}

.container-wide {
    max-width: 1400px;
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 48px 0;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.15;
}

.nav-logo-short {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.nav-logo-full {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-logo svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 8px 14px;
    border-radius: 980px;
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    border-radius: 980px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    padding: 12px 16px;
}

.btn-ghost:hover {
    background: rgba(41, 151, 255, 0.1);
    color: var(--accent-hover);
}

.btn-danger {
    background: rgba(255, 69, 58, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 69, 58, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 69, 58, 0.25);
    color: var(--danger);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.0625rem;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.filter-chip {
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-chip.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

/* Cards */
.card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(20px);
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--border-strong);
    background: var(--bg-glass-hover);
}

.card-flat {
    background: var(--bg-secondary);
}

.card-elevated {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stat-value.positive { color: var(--success); }
.stat-value.negative { color: var(--danger); }
.stat-value.accent { color: var(--accent); }

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

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

.form-hint {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 6px;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.table .amount {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: var(--text-primary);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 980px;
    border: 1px solid transparent;
}

.badge-draft { background: rgba(161, 161, 166, 0.15); color: var(--text-secondary); border-color: rgba(161, 161, 166, 0.2); }
.badge-sent { background: rgba(41, 151, 255, 0.15); color: var(--accent); border-color: rgba(41, 151, 255, 0.3); }
.badge-accepted, .badge-paid { background: rgba(48, 209, 88, 0.15); color: var(--success); border-color: rgba(48, 209, 88, 0.3); }
.badge-refused { background: rgba(255, 69, 58, 0.15); color: var(--danger); border-color: rgba(255, 69, 58, 0.3); }
.badge-cancelled { background: rgba(161, 161, 166, 0.1); color: var(--text-tertiary); }

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    margin-bottom: 24px;
    border: 1px solid;
}

.alert-success {
    background: rgba(48, 209, 88, 0.1);
    border-color: rgba(48, 209, 88, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(255, 69, 58, 0.1);
    border-color: rgba(255, 69, 58, 0.3);
    color: var(--danger);
}

/* Hero (legacy) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    text-align: center;
}

/* ─── Landing Page ─── */

.landing-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 48px) 0 80px;
    overflow: hidden;
}

.landing-hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.35), transparent 70%);
    top: -20%;
    right: -10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(90, 200, 250, 0.2), transparent 70%);
    bottom: -10%;
    left: -15%;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(48, 209, 88, 0.15), transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.landing-hero-copy {
    max-width: 560px;
}

.landing-title {
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 24px;
}

.landing-lead {
    font-size: 1.1875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 36px;
}

.landing-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.landing-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.landing-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.landing-trust-icon {
    color: var(--text-secondary);
    opacity: 0.7;
}

.landing-hero-visual {
    position: relative;
}

.landing-mockup {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    padding: 24px;
    backdrop-filter: blur(40px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: mockupFloat 6s ease-in-out infinite;
}

@keyframes mockupFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.landing-mockup-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.landing-mockup-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.landing-mockup-bar span:first-child { background: rgba(255, 69, 58, 0.6); }
.landing-mockup-bar span:nth-child(2) { background: rgba(255, 214, 10, 0.6); }
.landing-mockup-bar span:nth-child(3) { background: rgba(48, 209, 88, 0.6); }

.landing-mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.landing-mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.landing-mock-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.landing-mock-stat span {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.landing-mock-stat strong {
    font-size: 1rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.landing-mock-stat strong.negative {
    color: var(--danger);
}

.landing-mockup-chart {
    height: 80px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.landing-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100%;
}

.landing-chart-bars div {
    flex: 1;
    background: linear-gradient(180deg, var(--accent), rgba(41, 151, 255, 0.2));
    border-radius: 4px 4px 0 0;
    opacity: 0.85;
    animation: barGrow 1.2s ease forwards;
    transform-origin: bottom;
}

@keyframes barGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.landing-mockup-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landing-mock-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.landing-mock-row strong {
    margin-left: auto;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.landing-mock-row .icon {
    color: var(--accent);
    opacity: 0.8;
}

.landing-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(29, 29, 31, 0.9);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    animation: floatCard 5s ease-in-out infinite;
}

.landing-float-card .icon {
    color: var(--success);
}

.landing-float-card strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9375rem;
    margin-top: 2px;
}

.landing-float-card-1 {
    top: -20px;
    right: -24px;
    animation-delay: 0s;
}

.landing-float-card-2 {
    bottom: 40px;
    left: -32px;
    animation-delay: -2.5s;
}

.landing-float-card-2 .icon {
    color: var(--accent);
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.landing-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-tertiary);
    animation: bounce 2s ease infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

.landing-stats-strip {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.landing-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.landing-stat-num {
    display: block;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.landing-stat-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.landing-section-head {
    margin-bottom: 56px;
    max-width: 640px;
}

.landing-section-head.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.landing-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.landing-bento-card {
    padding: 36px;
    border-radius: var(--radius-xl);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.landing-bento-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
}

.landing-bento-large {
    grid-row: span 2;
}

.landing-bento-wide {
    grid-column: span 2;
}

.landing-bento-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(41, 151, 255, 0.12);
    border-radius: var(--radius-md);
    color: var(--accent);
    margin-bottom: 24px;
}

.landing-bento-icon.accent-green {
    background: rgba(48, 209, 88, 0.12);
    color: var(--success);
}

.landing-bento-icon.accent-purple {
    background: rgba(175, 82, 222, 0.12);
    color: #bf5af2;
}

.landing-bento-icon.accent-orange {
    background: rgba(255, 159, 10, 0.12);
    color: #ff9f0a;
}

.landing-bento-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.landing-bento-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.landing-bento-list {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landing-bento-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.landing-bento-list .icon {
    color: var(--accent);
    opacity: 0.7;
}

.landing-bento-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.landing-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.landing-timeline-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.landing-timeline-item:last-child {
    border-bottom: none;
}

.landing-timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 12px var(--accent-glow);
}

.landing-timeline-item strong {
    display: block;
    font-weight: 500;
    margin-bottom: 2px;
}

.landing-timeline-item p {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin: 0;
}

.landing-steps {
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid var(--border);
}

.landing-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.landing-step {
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

.landing-step-num {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.landing-step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent);
}

.landing-step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.landing-step p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.country-card-premium {
    position: relative;
}

.country-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.country-card-flag {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(41, 151, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent);
}

.country-card-arrow {
    color: var(--text-tertiary);
    opacity: 0;
    transform: translateX(-4px);
    transition: all var(--transition);
}

.country-card-premium:hover .country-card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

.landing-cta-section {
    padding-bottom: 120px;
}

.landing-cta-card {
    position: relative;
    padding: 80px 48px;
    border-radius: var(--radius-xl);
    background: var(--bg-glass);
    border: 1px solid var(--border-strong);
    text-align: center;
    overflow: hidden;
}

.landing-cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(41, 151, 255, 0.2), transparent 70%);
    pointer-events: none;
}

.landing-cta-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
}

.landing-cta-content h2 {
    margin-bottom: 16px;
}

.landing-cta-content p {
    margin-bottom: 32px;
}

.landing-cta-content .landing-cta {
    justify-content: center;
    margin-bottom: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 980px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-subtitle {
    margin: 24px auto 40px;
    max-width: 560px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(41, 151, 255, 0.12);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: var(--accent);
}

.icon {
    flex-shrink: 0;
    display: block;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Countries grid */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.country-card {
    display: block;
    padding: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    color: inherit;
}

.country-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: inherit;
}

.country-card-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.country-card-meta {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.country-card-stats {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.country-card-stat span {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.country-card-stat strong {
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
}

/* App layout */
.app-main {
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 80px;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 40px;
}

.page-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.breadcrumb a {
    color: var(--text-tertiary);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--text-secondary);
}

/* Ministry list */
.ministry-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

.ministry-item:last-child {
    border-bottom: none;
}

.ministry-info h4 {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.ministry-info p {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.ministry-budget {
    font-size: 1rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Invoice items dynamic */
.invoice-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.invoice-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-tertiary);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(41, 151, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent);
    opacity: 0.8;
}

.empty-state h3 {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }

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

/* Modal inline forms */
.inline-form {
    display: flex;
    gap: 8px;
    align-items: end;
    flex-wrap: wrap;
}

.inline-form .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 140px;
}

/* Progress bar */
.budget-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.budget-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #5ac8fa);
    border-radius: 3px;
    transition: width var(--transition);
}

/* Responsive */
@media (max-width: 1024px) {
    .landing-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .landing-hero-copy {
        max-width: none;
    }

    .landing-cta,
    .landing-trust {
        justify-content: center;
    }

    .landing-hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }

    .landing-float-card-1 { right: 0; }
    .landing-float-card-2 { left: 0; }

    .landing-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-bento-large {
        grid-row: auto;
    }

    .landing-bento-wide {
        grid-column: auto;
    }

    .landing-bento-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section { padding: 48px 0; }
    .invoice-item-row { grid-template-columns: 1fr; }
    .page-header-top { flex-direction: column; }
    .nav-links .nav-link:not(.btn) { display: none; }
    .nav-logo-full { display: none; }

    .landing-bento {
        grid-template-columns: 1fr;
    }

    .landing-steps-grid {
        grid-template-columns: 1fr;
    }

    .landing-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .landing-cta-card {
        padding: 48px 24px;
    }

    .landing-scroll { display: none; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ─── Admin Panel ─── */

.admin-body {
    background: var(--bg-primary);
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - var(--nav-height));
    padding-top: var(--nav-height);
}

.admin-sidebar {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 260px;
    height: calc(100vh - var(--nav-height));
    padding: 24px 16px;
    border-right: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.admin-sidebar-head {
    padding: 0 12px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all var(--transition);
}

.admin-nav-link:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.admin-nav-link.active {
    background: rgba(41, 151, 255, 0.12);
    color: var(--accent);
}

.admin-sidebar-foot {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.admin-main {
    grid-column: 2;
    padding: 32px 24px 80px;
    margin-left: 260px;
}

.nav-link-admin {
    color: var(--accent) !important;
}

.staff-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 980px;
    border: 1px solid transparent;
}

.staff-badge-sm {
    padding: 2px 8px;
    font-size: 0.625rem;
}

.staff-badge-superadmin {
    background: rgba(255, 159, 10, 0.15);
    color: #ff9f0a;
    border-color: rgba(255, 159, 10, 0.3);
}

.staff-badge-admin {
    background: rgba(175, 82, 222, 0.15);
    color: #bf5af2;
    border-color: rgba(175, 82, 222, 0.3);
}

.staff-badge-moderator {
    background: rgba(41, 151, 255, 0.15);
    color: var(--accent);
    border-color: rgba(41, 151, 255, 0.3);
}

.staff-badge-user {
    background: rgba(161, 161, 166, 0.1);
    color: var(--text-tertiary);
}

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

    .admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        top: 0;
    }

    .admin-main {
        margin-left: 0;
    }
}
