:root {
    color-scheme: light;
    --rotary-blue: #003b73;
    --rotary-night: #050a1f;
    --rotary-gold: #f2aa1f;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-100: #e2e8f0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top left, rgba(0, 59, 115, 0.45), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(242, 170, 31, 0.3), transparent 45%),
        linear-gradient(160deg, rgba(5, 10, 31, 0.85), rgba(15, 23, 42, 0.95));
    color: var(--slate-100);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus {
    outline: 3px solid rgba(242, 170, 31, 0.6);
    outline-offset: 3px;
    border-radius: 8px;
}

.text-slate-900 { color: rgba(241, 245, 249, 0.95) !important; }
.text-slate-700 { color: rgba(226, 232, 240, 0.78) !important; }
.text-slate-600 { color: rgba(203, 213, 225, 0.75) !important; }
.text-slate-500 { color: rgba(148, 163, 184, 0.75) !important; }
.text-blue-700 { color: #93c5fd !important; }
.text-blue-900 { color: #bfdbfe !important; }
.bg-slate-50 { background-color: rgba(15, 23, 42, 0.9) !important; }

.nav-link {
    position: relative;
    padding: 0.65rem 0.9rem;
    border-radius: 9999px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: -1;
}

.nav-link:hover::after,
.nav-link:focus::after {
    opacity: 1;
    transform: scale(1);
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-button--primary {
    background: linear-gradient(135deg, rgba(242, 170, 31, 0.95), rgba(255, 210, 98, 0.95));
    color: var(--rotary-night);
    box-shadow: 0 8px 30px rgba(242, 170, 31, 0.35);
}

.nav-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(242, 170, 31, 0.4);
}

.hero-gradient {
    position: fixed;
    inset: -20% -10% auto -10%;
    height: 400px;
    background: radial-gradient(circle at top left, rgba(19, 78, 216, 0.65), transparent 60%);
    pointer-events: none;
}

.hero-orb {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4;
    pointer-events: none;
}

.hero-orb.orb-1 {
    top: 0;
    right: 10%;
    background: rgba(59, 130, 246, 0.9);
}

.hero-orb.orb-2 {
    top: 180px;
    left: 5%;
    background: rgba(242, 170, 31, 0.75);
}

.hero-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at top, rgba(0, 0, 0, 0.5), transparent 65%);
    pointer-events: none;
}

.card {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(18px);
}

.hero-card {
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.hero-card__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.hero-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.hero-card__eyebrow::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.45);
}

.hero-card__title {
    font-size: clamp(2.3rem, 3vw + 1.1rem, 3.5rem);
    line-height: 1.1;
    color: white;
}

.hero-card__subtitle {
    color: rgba(226, 232, 240, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 44ch;
}

.hero-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.hero-stats dt {
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.6);
}

.hero-stats dd {
    margin: 0.25rem 0 0;
    color: rgba(226, 232, 240, 0.85);
    font-size: 0.95rem;
}

.hero-stats dd span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--rotary-gold);
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.6);
}

.section-title {
    font-size: clamp(1.9rem, 1.8vw + 1.2rem, 2.5rem);
    font-weight: 600;
    color: white;
}

.section-subtitle {
    color: rgba(226, 232, 240, 0.7);
    font-size: 1rem;
}

.glass-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.08);
    backdrop-filter: blur(14px);
}

.glass-card__header h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: white;
}

.glass-card__header p {
    margin-top: 0.25rem;
    color: rgba(226, 232, 240, 0.65);
    font-size: 0.9rem;
}

.glass-card__list {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.glass-card__list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.8);
}

.glass-card__list span {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.65rem;
    color: rgba(148, 163, 184, 0.8);
}

.glass-card__list strong {
    font-size: 1rem;
    color: white;
}

.button-primary {
    background: linear-gradient(135deg, rgba(242, 170, 31, 0.9), rgba(255, 200, 120, 0.9));
    color: var(--rotary-night);
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 14px 30px rgba(242, 170, 31, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button-primary:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 18px 45px rgba(242, 170, 31, 0.4);
}

.button-secondary {
    background: rgba(59, 130, 246, 0.15);
    color: #bfdbfe;
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.button-secondary:hover {
    transform: translateY(-1px);
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(96, 165, 250, 0.5);
}

.link-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #bfdbfe;
    text-decoration: none;
    position: relative;
}

.link-action::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(242, 170, 31, 0), rgba(242, 170, 31, 0.8), rgba(242, 170, 31, 0));
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.link-action:hover::after,
.link-action:focus::after {
    opacity: 1;
    transform: translateY(0);
}

.table-card {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.1), 0 25px 50px rgba(2, 6, 23, 0.45);
    overflow: hidden;
}

.table-card table {
    width: 100%;
    border-collapse: collapse;
}

.table-card th,
.table-card td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    color: rgba(226, 232, 240, 0.88);
}

.table-card thead {
    background: rgba(15, 23, 42, 0.92);
}

.table-card tbody tr:hover {
    background: rgba(59, 130, 246, 0.08);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pill[data-status="paid"] {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
}

.status-pill[data-status="pending"] {
    background: rgba(250, 204, 21, 0.2);
    color: #fde68a;
}

.status-pill[data-status="overdue"] {
    background: rgba(248, 113, 113, 0.2);
    color: #fca5a5;
}

.badge {
    background: rgba(59, 130, 246, 0.15);
    color: #bfdbfe;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    transition: transform 0.2s ease;
}

.badge:hover {
    transform: translateY(-1px);
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.form-card label {
    display: block;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.85);
    margin-bottom: 0.4rem;
}


.form-card input,
.form-card textarea,
.form-card select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    background: rgba(15, 23, 42, 0.85) !important;
    color: rgba(226, 232, 240, 0.93) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
    border-color: rgba(242, 170, 31, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(242, 170, 31, 0.2);
    outline: none;
    background: rgba(15, 23, 42, 0.92) !important;
}

.form-card textarea {
    min-height: 140px;
}

.form-input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.92) !important;
    color: rgba(226, 232, 240, 0.95) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: rgba(242, 170, 31, 0.7);
    box-shadow: 0 0 0 3px rgba(242, 170, 31, 0.25);
    outline: none;
    background: rgba(15, 23, 42, 0.98) !important;
}

.form-input::placeholder {
    color: rgba(148, 163, 184, 0.7) !important;
}

.form-uploader {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.55);
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.75);
}

.page-article {
    background: #ffffff;
    color: #0f172a;
    border-radius: 1.5rem;
    padding: 2.25rem;
    box-shadow: 0 35px 80px rgba(15, 23, 42, 0.12);
}

.page-article h2,
.page-article h3,
.page-article h4 {
    color: #0f172a;
}

.page-article .page-content {
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-article .page-content a {
    color: #0d9488;
    text-decoration: underline;
}

.page-article .page-content img {
    border-radius: 1rem;
    box-shadow: 0 20px 30px rgba(15, 23, 42, 0.08);
    margin: 1rem 0;
}

body.page-view {
    background: #f8fafc;
    color: #0f172a;
}

.page-view .hero-gradient,
.page-view .hero-orb,
.page-view .hero-grid {
    display: none !important;
}

.page-view header {
    background: transparent;
}

.page-view main {
    max-width: 960px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.form-uploader input[type="file"] {
    color: rgba(226, 232, 240, 0.85);
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.table-actions a,
.table-actions button {
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
}

.footer {
    margin-top: 6rem;
    padding: 3rem 0 4rem;
    position: relative;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(5, 10, 31, 0.95));
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: min(240px, 60%);
    height: 1px;
    background: linear-gradient(90deg, rgba(242, 170, 31, 0), rgba(242, 170, 31, 0.8), rgba(242, 170, 31, 0));
}

.footer__content {
    width: min(1100px, 92%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    text-align: center;
}

.footer__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.7rem;
    color: rgba(226, 232, 240, 0.6);
}

.footer__headline {
    font-size: clamp(2rem, 2.8vw + 1rem, 3rem);
    font-weight: 600;
    color: white;
}

.footer__meta {
    color: rgba(226, 232, 240, 0.65);
    font-size: 0.95rem;
}

.animate-pulse-slow {
    animation: pulse-slow 3.5s infinite;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .card {
        padding: 1.6rem;
    }
    .hero-card__subtitle {
        font-size: 1rem;
    }
    .hero-stats {
        gap: 1rem;
    }
    .glass-card__list li {
        flex-direction: column;
        align-items: flex-start;
    }
}
