:root {
    --totn-red: #c8102e;
    --totn-black: #111111;
    --totn-ember: #ff3d3d;
    --totn-paper: #ffffff;
    --totn-ink: #151515;
    --totn-cloud: #f5f5f5;
}

body {
    color: var(--totn-ink);
    background:
        linear-gradient(155deg, rgba(200, 16, 46, 0.07) 0%, rgba(255, 255, 255, 0) 34%),
        radial-gradient(circle at 100% 100%, rgba(17, 17, 17, 0.12), transparent 40%),
        var(--totn-paper);
    min-height: 100vh;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.app-navbar {
    background:
        linear-gradient(120deg, #0d0d0d 0%, #1a1a1a 46%, #2a2a2a 100%);
    border-bottom: 3px solid var(--totn-red);
    box-shadow: 0 0.7rem 1.8rem rgba(0, 0, 0, .2);
}

.navbar-brand span {
    color: #ffd9df;
}

.login-shell {
    min-height: 78vh;
    display: grid;
    place-items: center;
}

.login-card {
    width: min(100%, 470px);
    border: 0;
    border-top: 6px solid var(--totn-red);
    background: #fff;
    box-shadow: 0 1.1rem 3rem rgba(22, 11, 14, .18);
}

.login-mark {
    color: var(--totn-red);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 700;
}

.btn-primary {
    --bs-btn-bg: var(--totn-red);
    --bs-btn-border-color: var(--totn-red);
    --bs-btn-hover-bg: #a50d26;
    --bs-btn-hover-border-color: #a50d26;
}

.dashboard-band {
    background:
        linear-gradient(110deg, #171717 0%, #0f0f0f 56%, #3a1b22 100%);
    color: #fff;
    border-left: 5px solid var(--totn-red);
    border-radius: .5rem;
}

.stat-card {
    border-left: 4px solid var(--totn-red);
    background: #fff;
}

.rsvp-shell {
    min-height: 78vh;
    display: grid;
    place-items: center;
}

.rsvp-card {
    width: min(100%, 720px);
    border: 0;
    border-top: 6px solid var(--totn-red);
    background: #fff;
    box-shadow: 0 1.1rem 3rem rgba(24, 12, 15, .16);
}

.rsvp-guest-panel {
    background: var(--totn-cloud);
    border-left: 4px solid var(--totn-black);
    padding: 1rem 1.25rem;
}

.rsvp-choice {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    border: 1px solid #dddddd;
    border-radius: .35rem;
    padding: 1rem;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.rsvp-choice:hover {
    border-color: #d26b7c;
    box-shadow: 0 .35rem 1rem rgba(200, 16, 46, .12);
}

.rsvp-choice input {
    margin-top: .25rem;
}

.rsvp-choice span {
    display: grid;
    gap: .2rem;
}

.rsvp-choice small {
    color: #5f5f5f;
}

.gold-text {
    color: var(--totn-red);
}

.confirmation-icon {
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.confirmation-success { background: #198754; }
.confirmation-neutral { background: #64727a; }

.gate-result-card {
    border-radius: .5rem;
    padding: 2rem 1.5rem;
    color: #fff;
    text-align: center;
}

.gate-result-status {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: .05em;
    margin-bottom: 1rem;
}

.gate-result-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.gate-result-position {
    opacity: .85;
    margin-bottom: .5rem;
}

.gate-result-meta {
    margin-top: .35rem;
}

.gate-result-valid { background: #198754; }
.gate-result-warning { background: #9a7008; }
.gate-result-invalid { background: #b02a37; }

.home-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: .25rem 0 1.5rem;
}

.home-hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    border-radius: .75rem;
    border: 1px solid rgba(255, 255, 255, .1);
    background:
        linear-gradient(110deg, rgba(17, 17, 17, .94) 0%, rgba(17, 17, 17, .66) 48%, rgba(200, 16, 46, .78) 100%),
        url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1800&q=80") center/cover;
    box-shadow: 0 1.2rem 3rem rgba(15, 8, 10, .25);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: linear-gradient(90deg, #ffffff 0%, #c8102e 38%, #111111 100%);
}

.home-hero .lead {
    max-width: 64ch;
    color: #f7e9ec;
}

.home-hero .btn-outline-light {
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
}

.home-hero .btn-outline-light:hover {
    background: #fff;
    color: #1b1b1b;
}

.home-hero .login-mark,
.home-hero .gold-text {
    color: #ffd4da;
}

.home-stat {
    background: #fff;
    border-left: 4px solid var(--totn-red);
    border-radius: .55rem;
    box-shadow: 0 .75rem 1.8rem rgba(15, 10, 11, .08);
    transition: transform .22s ease, box-shadow .22s ease;
}

.home-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 1rem 2.1rem rgba(15, 10, 11, .13);
}

.home-stat h2 {
    color: #5b5b5b;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.home-content,
.home-flow {
    background: #fff;
    border-radius: .7rem;
    box-shadow: 0 .9rem 2.2rem rgba(18, 10, 12, .09);
}

.home-content h2,
.home-flow h2 {
    position: relative;
    padding-bottom: .5rem;
}

.home-content h2::after,
.home-flow h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--totn-red), #111111);
}

.home-gallery img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: .45rem;
    display: block;
    box-shadow: 0 .6rem 1.6rem rgba(0, 0, 0, .16);
    transition: transform .28s ease, box-shadow .28s ease;
}

.home-gallery .col-12 img {
    height: 220px;
}

.home-media {
    margin: 0;
}

.home-media figcaption {
    font-size: .8rem;
    color: #555555;
    margin-top: .35rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.home-media:hover img {
    transform: scale(1.03);
    box-shadow: 0 .9rem 2rem rgba(0, 0, 0, .2);
}

.home-step {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: .45rem;
    padding: 1rem;
    height: 100%;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.home-step:hover {
    transform: translateY(-2px);
    border-color: #c9c9c9;
    box-shadow: 0 .7rem 1.6rem rgba(18, 10, 12, .11);
}

.home-step-number {
    color: var(--totn-red);
    font-weight: 800;
    letter-spacing: .08em;
    font-size: .82rem;
    margin-bottom: .5rem;
}

/* DataTables controls inside cards: pad the search/length and info/paging
   bars horizontally while the table itself stays flush with the card edges. */
.card div.dt-container > .row {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 767px) {
    .home-shell {
        padding-top: 0;
    }

    .home-hero {
        border-radius: .6rem;
        background-position: 68% center;
    }

    .home-hero .display-4 {
        font-size: 2.05rem;
    }

    .home-gallery img,
    .home-gallery .col-12 img {
        height: 180px;
    }
}

