/* EverAfter - Wedding Planner
   Luxury/Refined Design System
   Dark, elegant, timeless aesthetic for memorable weddings
*/

/* Design tokens & fonts → company.css  (loaded before this file) */

html.dark-mode .card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html.dark-mode nav {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.6rem 1.2rem;
    background: var(--primary);
    color: var(--bg-body);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
    transition: top 0.15s ease-out;
}
.skip-link:focus {
    top: 0;
}

/* ===== GLOBAL FOCUS VISIBLE ===== */
/* Remove default outline for mouse users, restore for keyboard users */
:focus:not(:focus-visible) {
    outline: none;
}
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===== ICON SYSTEM ===== */
.icon-svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.icon-svg-lg {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    margin-right: 0.25rem;
}

.icon-svg-xl {
    width: 48px;
    height: 48px;
    display: block;
    flex-shrink: 0;
}

.brand-icon {
    width: 50px;
    height: 50px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center 45%;
    -webkit-mask-image: radial-gradient(circle at center, black 52%, transparent 70%);
    mask-image: radial-gradient(circle at center, black 52%, transparent 70%);
}

/* Larger icons in feature cards / step icons */
.feature-icon .icon-svg,
.step-icon-wrap .icon-svg {
    width: 22px;
    height: 22px;
}

/* Sidebar nav icons */
.sidebar-nav .icon-svg,
.sidebar-nav .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

html {
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--dark-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

p {
    margin-bottom: var(--space-md);
    color: var(--light-text);
}

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

a:hover {
    color: var(--dark-text);
}

/* ===== NAVIGATION ===== */
nav {
    background: var(--bg-section);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

nav .brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

nav .nav-flex {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

nav a {
    color: var(--light-text);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

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

/* ===== CONTAINERS & LAYOUT ===== */
.container {
    padding: var(--space-xl) var(--space-lg) 0 var(--space-lg);
    flex: 1;
    width: 100%;
}

.card {
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: var(--space-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-primary);
    box-shadow: 0 8px 24px var(--glow);
    background: var(--card-bg-hover);
}

/* Warme Kartenvariationen — subtile Farbunterschiede */
.card[data-card-type="warm-1"] {
    background: var(--card-bg-warm-1);
}

.card[data-card-type="warm-2"] {
    background: var(--card-bg-warm-2);
}

.card[data-card-type="warm-3"] {
    background: var(--card-bg-warm-3);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: var(--space-lg);
}

label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-text);
    letter-spacing: 0.3px;
}

input,
textarea,
select {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark-text);
    transition: var(--transition-fast);
    background: var(--input-bg);
}

select,
option {
    background-color: var(--bg-section);
    color: var(--dark-text);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow);
}

input::placeholder {
    color: var(--muted-text);
    opacity: 1;
}

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

/* ===== BUTTONS ===== */
button,
.btn {
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.4px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

button:hover,
.btn:hover {
    background: var(--btn-bg-hover);
    color: var(--btn-text);
    transform: translateY(-1px);
}

button:active,
.btn:active {
    transform: scale(0.97);
}

.btn-full {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
    background: var(--glow);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-danger {
    background: var(--error);
    color: var(--dark-text);
}

.btn-danger:hover {
    background: var(--error-hover);
    color: var(--dark-text);
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

/* ===== MESSAGES ===== */
.error {
    color: var(--error);
    margin-top: var(--space-xs);
    font-size: 0.85rem;
    display: block;
}

.error-alert {
    padding: var(--space-md);
    background: rgba(212, 99, 92, 0.1);
    color: var(--error);
    border-radius: 8px;
    margin-bottom: var(--space-lg);
    border-left: 3px solid var(--error);
    animation: slideDown 0.3s ease-out;
}

.success {
    padding: var(--space-md);
    background: rgba(107, 142, 111, 0.1);
    color: var(--success);
    border-radius: 8px;
    margin-bottom: var(--space-lg);
    border-left: 3px solid var(--success);
    animation: slideDown 0.3s ease-out;
}

/* ===== DJANGO MESSAGE TOASTS ===== */
.msg-toast {
    padding: var(--space-md);
    border-radius: 10px;
    margin-bottom: var(--space-md);
    border-left: 3px solid var(--border);
    animation: slideDown 0.3s ease-out;
    transition: opacity 0.5s ease, max-height 0.4s ease, padding 0.4s ease, margin 0.4s ease;
    overflow: hidden;
}

.msg-toast.success {
    background: rgba(107, 142, 111, 0.1);
    color: var(--success);
    border-left-color: var(--success);
}

.msg-toast.error {
    background: rgba(212, 99, 92, 0.1);
    color: var(--error);
    border-left-color: var(--error);
}

.msg-toast.warning {
    background: var(--at-10);
    color: var(--gold);
    border-left-color: var(--gold);
}

.msg-toast.info {
    background: rgba(100, 140, 200, 0.1);
    color: var(--accent);
    border-left-color: var(--accent);
}

.msg-toast--fade {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* ===== AUTHENTICATION PAGES ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--at-05) 0%, rgba(10, 18, 10, 0.8) 100%);
    padding: var(--space-lg);
}

.auth-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: var(--space-2xl);
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.6s ease-out;
}

.auth-card h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

.auth-card > p {
    text-align: center;
    color: var(--light-text);
    margin-bottom: var(--space-xl);
    font-size: 0.95rem;
}

/* ===== DASHBOARD ===== */
.dashboard {
    color: var(--dark-text);
}

.dashboard > h1 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
    animation: fadeInDown 0.5s ease-out;
}

.dashboard > p {
    color: var(--light-text);
    font-size: 1.05rem;
    margin-bottom: var(--space-2xl);
}

.wedding-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding-bottom: var(--space-md); /* room for scrollbar */
    /* hide scrollbar visually but keep it functional */
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.wedding-grid::-webkit-scrollbar {
    height: 4px;
}
.wedding-grid::-webkit-scrollbar-track {
    background: transparent;
}
.wedding-grid::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.wedding-card {
    flex: 0 0 300px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: var(--space-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    animation: fadeInUp 0.6s ease-out backwards;
}

.wedding-card:nth-child(1) { animation-delay: 0.05s; }
.wedding-card:nth-child(2) { animation-delay: 0.1s; }
.wedding-card:nth-child(3) { animation-delay: 0.15s; }
.wedding-card:nth-child(4) { animation-delay: 0.2s; }
.wedding-card:nth-child(5) { animation-delay: 0.25s; }
.wedding-card:nth-child(6) { animation-delay: 0.3s; }

.wedding-card:hover {
    border-color: var(--border-primary);
    box-shadow: 0 12px 32px var(--glow);
    transform: translateY(-4px);
    background: var(--card-bg-hover);
}

.wedding-card h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.wedding-card p {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-sm) 0;
    color: var(--light-text);
    font-size: 0.95rem;
}

.wedding-card .btn {
    margin-top: auto;
    padding-top: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px dashed var(--border);
    color: var(--light-text);
    animation: fadeIn 0.5s ease-out;
}

.empty-state h2 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    margin-bottom: var(--space-lg);
}

.empty-state a {
    display: inline-block;
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--btn-bg);
    color: var(--bg-body);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-fast);
    letter-spacing: 0.4px;
}

.empty-state a:hover {
    background: var(--btn-bg-hover);
    color: var(--bg-body);
}

/* ===== ONBOARDING ===== */
.onboarding {
    color: var(--dark-text);
}

.onboarding h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    color: var(--primary);
    animation: fadeInDown 0.5s ease-out;
}

.form-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    color: var(--dark-text);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: var(--space-2xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

.detail-item {
    padding: var(--space-md);
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.detail-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.detail-item span {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--light-text);
    font-size: 0.9rem;
}

.mt-3 {
    margin-top: var(--space-xl);
}

.flex {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: var(--space-lg) var(--space-md);
    }

    nav {
        padding: var(--space-md);
        flex-direction: column;
        gap: var(--space-md);
    }

    nav .nav-flex {
        width: 100%;
        justify-content: center;
    }

    .auth-card {
        padding: var(--space-lg);
    }

    .wedding-grid {
        gap: var(--space-md);
    }
}

/* ===== TABLES & LISTS ===== */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

thead {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 2px solid var(--border);
}

html:not(.dark-mode) thead {
    background: rgba(0, 0, 0, 0.025);
}

th {
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border);
    color: var(--dark-text);
}

tbody tr {
    transition: var(--transition-fast);
}

tbody tr:hover {
    background: var(--card-bg-hover);
}

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

/* List Items */
.list-item {
    padding: var(--space-md) var(--space-lg);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.list-item:hover {
    border-color: var(--border-primary);
    box-shadow: 0 4px 12px var(--glow);
    background: var(--card-bg-hover);
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.list-item-meta {
    font-size: 0.85rem;
    color: var(--light-text);
}

.list-item-actions {
    display: flex;
    gap: var(--space-sm);
    margin-left: var(--space-md);
}

/* Action Links */
.action-link {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--at-30);
    border-radius: 6px;
    transition: var(--transition-fast);
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-link:hover {
    background: var(--at-10);
    border-color: var(--accent);
    color: var(--dark-text);
}

.action-link.delete {
    color: var(--error);
    border-color: rgba(212, 99, 92, 0.3);
}

.action-link.delete:hover {
    background: rgba(212, 99, 92, 0.1);
    border-color: var(--error);
}

.action-link--accept {
    color: var(--success);
    border-color: rgba(107, 142, 111, 0.35);
}

.action-link--accept:hover {
    background: rgba(107, 142, 111, 0.15);
    border-color: var(--success);
    color: var(--success);
}

.action-link--decline {
    color: var(--error);
    border-color: rgba(212, 99, 92, 0.3);
}

.action-link--decline:hover {
    background: rgba(212, 99, 92, 0.1);
    border-color: var(--error);
    color: var(--error);
}

/* ===== MODALS & OVERLAYS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-2xl);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

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

/* ===== OVERLINE LABEL ===== */
.overline {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 var(--space-sm) 0;
}

/* ===== ICON CIRCLE ===== */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: var(--space-md);
}

.icon-circle .icon-svg {
    width: 28px;
    height: 28px;
}

.icon-circle--success {
    background: rgba(107, 142, 111, 0.15);
    color: var(--success);
}

.icon-circle--error {
    background: rgba(212, 99, 92, 0.15);
    color: var(--error);
}

.icon-circle--accent {
    background: var(--at-12);
    color: var(--accent);
}

/* Change Request section in task list */
.change-requests-section {
    margin-bottom: var(--space-xl);
}

.change-requests-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-primary);
}

.change-requests-badge {
    background: var(--at-15);
    color: var(--accent);
    border-radius: 50px;
    padding: 2px 8px;
    font-size: 0.75rem;
}

.change-request-item {
    border-color: var(--at-25) !important;
}

.change-request-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: var(--space-sm);
}

.change-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--light-text);
}

.change-label {
    color: var(--muted-text);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    min-width: 70px;
}

.change-note {
    font-style: italic;
    color: var(--light-text);
}

.change-row--names { align-items: flex-start; }
.change-name-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip {
    font-size: .72rem; padding: .2rem .6rem; border-radius: 99px;
    background: var(--at-12); border: 1px solid var(--at-25);
    color: var(--accent); white-space: nowrap;
}

/* Rotate chevron-down to point right for "→" effect */
.change-row .icon-svg {
    width: 14px;
    height: 14px;
    transform: rotate(-90deg);
    flex-shrink: 0;
}

/* form-control-static for read-only fields */
.form-control-static {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
}

/* ===== BADGES & TAGS ===== */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: var(--at-15);
    color: var(--accent);
    text-transform: uppercase;
}

.badge.success {
    background: rgba(107, 142, 111, 0.15);
    color: var(--success);
}

.badge.error {
    background: rgba(212, 99, 92, 0.15);
    color: var(--error);
}

.badge.status-pending {
    background: rgba(212, 99, 92, 0.12);
    color: var(--error);
}

.badge.status-paid {
    background: rgba(107, 142, 111, 0.15);
    color: var(--success);
}

/* ===== GRID LAYOUTS ===== */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ===== SECTION HEADERS ===== */
/* ===== REFINED PAGE HEADERS ===== */
.section-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-lg);
    align-items: flex-start;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.section-header > div:first-child {
    min-width: 0;
}

.section-header h1,
.section-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.2;
}

.section-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 400;
    line-height: 1.4;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease-out;
    background: transparent;
}

.back-button:hover {
    background: rgba(129, 216, 208, 0.1);
    color: var(--primary-hover);
    padding-left: 1rem;
}

.back-button-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.15s ease-out;
}

html:not(.dark-mode) .back-button {
    color: var(--primary);
}

html:not(.dark-mode) .back-button:hover {
    background: rgba(129, 216, 208, 0.12);
    color: var(--primary-hover);
}

.section-header-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    justify-self: end;
}

.section-header-actions .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
    border-radius: 8px;
    font-weight: 500;
}

.section-header-actions .btn-secondary {
    background: transparent;
    color: var(--light-text);
    border: 1px solid var(--border);
}

.section-header-actions .btn-secondary:hover {
    background: var(--glow);
    color: var(--accent);
    border-color: var(--border-primary);
}

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

/* ===== PAGE HEADER (Reusable) ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
    gap: var(--space-lg);
}

.page-header-title {
    flex: 1;
}

.page-header h1 {
    margin: 0;
    font-size: 1.85rem;
    font-family: var(--font-display);
}

.page-subtitle {
    margin: 0;
    color: var(--light-text);
    font-size: 0.95rem;
}

.page-header-actions {
    display: flex;
    gap: var(--space-md);
    flex-shrink: 0;
}

/* ===== MODAL STYLES (Global) ===== */
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--light-text);
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-body {
    padding: var(--space-lg) 0;
}

.modal-footer {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.modal-footer .btn {
    flex: 1;
    padding: var(--space-md);
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 640px) {
    :root {
        --space-xs: 0.375rem;
        --space-sm: 0.75rem;
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 2rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .list-item-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }

    .section-header {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        margin-bottom: var(--space-xl);
    }

    .section-header h1,
    .section-header h2 {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }

    .section-header h1 {
        font-size: 1.5rem;
    }

    .section-header-actions {
        width: 100%;
        justify-self: start;
    }

    .section-header-actions .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        flex: 1;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: var(--space-sm);
    }
}

/* Form Field Component */
.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--light-text);
    letter-spacing: 0.3px;
}

.required {
    color: var(--error);
    margin-left: 2px;
}

.form-field-wrapper {
    position: relative;
}

.form-errors {
    list-style: none;
    margin-top: var(--space-xs);
    padding: 0;
}

.error-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--error);
    margin-bottom: 4px;
}

.error-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.form-help-text {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--light-text);
}

.help-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.form-group-error input,
.form-group-error textarea,
.form-group-error select {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(212, 99, 92, 0.1);
}

/* Form Errors Component */
.form-error-alert {
    padding: var(--space-md) var(--space-lg);
    background: rgba(212, 99, 92, 0.08);
    color: var(--error);
    border-radius: 8px;
    border-left: 4px solid var(--error);
    margin-bottom: var(--space-lg);
    animation: slideDown 0.3s ease-out;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.error-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.error-title {
    font-size: 0.95rem;
}

.error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-list li {
    font-size: 0.9rem;
    padding: 4px 0;
    padding-left: var(--space-md);
    position: relative;
}

.error-list li:before {
    content: '•';
    position: absolute;
    left: 0;
}

/* Onboarding / Pricing Cards */
.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.pricing-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out backwards;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:nth-child(1) { animation-delay: 0.2s; }
.pricing-card:nth-child(2) { animation-delay: 0.3s; border-color: var(--accent); box-shadow: 0 8px 24px var(--at-15); }
.pricing-card:nth-child(3) { animation-delay: 0.4s; }

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--at-12);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 8px 24px var(--at-15);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: translateY(-4px) scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: var(--bg-body);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    margin: 1.5rem 0;
    font-family: 'Barlow', sans-serif;
}

.pricing-card .price-period {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-card li {
    padding: 0.75rem 0;
    color: var(--light-text);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-card li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: bold;
    margin-right: 0.5rem;
}

.pricing-cta {
    margin-top: 2rem;
}

.pricing-card .note {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-top: 1rem;
}

/* ── Billing Period Toggle (shared: onboarding, dashboard, landing) ── */
.billing-period-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto 2.5rem;
    background: var(--glass-bg, rgba(255,255,255,0.06));
    border: 1px solid var(--glass-border, rgba(255,255,255,0.12));
    border-radius: 50px;
    padding: 4px;
    width: fit-content;
}

.billing-period-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: var(--light-text, #888);
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 180ms cubic-bezier(0.23, 1, 0.32, 1),
                color 180ms cubic-bezier(0.23, 1, 0.32, 1),
                transform 160ms ease-out;
}

.billing-period-btn:active {
    transform: scale(0.97);
}

.billing-period-btn.active {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.billing-save-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    background: var(--at-12, rgba(129,216,208,0.12));
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.2px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 200ms cubic-bezier(0.23, 1, 0.32, 1),
                transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.billing-period-btn.active .billing-save-tag {
    opacity: 1;
    transform: scale(1);
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    padding-top: 2rem;
}

.pricing-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.btn-cancel {
    padding: 0.8rem 1.5rem;
    background: var(--card-bg);
    color: var(--dark-text);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-cancel:hover {
    background: var(--card-bg-hover);
}

.support-info {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.95rem;
}

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

.support-email:hover {
    text-decoration: underline;
}

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

/* Onboarding Create */
.onboarding-subtitle {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.onboarding-plan-notice {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--light-text);
}

.onboarding-plan-notice--single {
    padding: var(--space-md);
    background: var(--at-10);
    border-radius: 6px;
    color: var(--accent);
    font-weight: 500;
}

.onboarding-upgrade-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.onboarding-back-link {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin: var(--space-2xl) 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    border: 1px solid var(--primary);
    padding: var(--space-md);
    text-align: center;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px var(--at-10);
}

.stat-card-bg-icon {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 72px;
    height: 72px;
    opacity: 0.07;
    pointer-events: none;
}

.stat-card--primary .stat-card-bg-icon { color: var(--primary); }
.stat-card--success .stat-card-bg-icon { color: var(--success); }
.stat-card--accent  .stat-card-bg-icon { color: var(--accent); }
.stat-card--error   .stat-card-bg-icon { color: var(--error); }

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.stat-number--primary { color: var(--primary); }
.stat-number--success { color: var(--success); }
.stat-number--accent  { color: var(--accent); }
.stat-number--error   { color: var(--error); }

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--light-text);
}

.action-bar {
    display: flex;
    gap: var(--space-md);
    margin: var(--space-2xl) 0;
    align-items: center;
}

.search-form {
    position: relative;
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: center;
}

.search-form input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid var(--primary);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: var(--font-body, 'Barlow', sans-serif);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    color: var(--primary);
}

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

.search-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: inset 0 0 0 2px var(--at-10), 0 0 0 3px var(--at-05);
    background: rgba(255, 255, 255, 0.07);
}

.search-form::before {
    content: '🔍';
    position: absolute;
    left: 0.875rem;
    font-size: 1rem;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.search-submit-hidden {
    display: none;
}

.action-buttons {
    display: flex;
    gap: var(--space-md);
}

.table-wrapper {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.table-wrapper .empty-state {
    padding: var(--space-2xl);
}

.guest-name {
    font-weight: 600;
    color: var(--primary);
}

.guest-group {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-top: 4px;
}

.party-size-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--at-15);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.email-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.rsvp-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    color: white;
}

/* ── RSVP status badge variants ──────────────────────────── */
.rsvp-badge.rsvp-accepted { background: var(--success);           color: #fff; }
.rsvp-badge.rsvp-declined { background: var(--error);             color: #fff; }
.rsvp-badge.rsvp-pending  { background: var(--accent);            color: var(--btn-text); }
.rsvp-badge.rsvp-not_sent { background: rgba(128, 128, 128, 0.2); color: var(--light-text); }

html.dark-mode .rsvp-badge.rsvp-accepted { background: #5a8f5e; }
html.dark-mode .rsvp-badge.rsvp-not_sent { background: rgba(240, 237, 231, 0.1); color: var(--light-text); }

/* Clickable table rows */
.guest-row {
    cursor: pointer;
    transition: background 0.15s;
}

.guest-row:hover {
    background: var(--at-05) !important;
}

/* Required field indicator */
.field-required {
    color: var(--primary);
    font-weight: 700;
    margin-left: 2px;
}

/* Field info tooltip */
.field-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    cursor: help;
    color: rgba(240, 237, 231, 0.3);
    vertical-align: middle;
    transition: color 0.2s;
}

.field-info .icon-svg {
    width: 13px;
    height: 13px;
}

.field-info:hover {
    color: var(--primary);
}

.field-info::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 18, 10, 0.97);
    border: 1px solid var(--at-20);
    color: rgba(240, 237, 231, 0.85);
    padding: 0.5rem 0.75rem;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.45;
    white-space: normal;
    width: 210px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s, visibility 0.18s;
    z-index: 200;
}

.field-info::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--at-20);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s, visibility 0.18s;
    z-index: 201;
}

.field-info:hover::after,
.field-info:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Collapsible form sections */
.form-section--collapsible {
    border: none;
    padding: 0;
}

.form-section--collapsible > .form-section-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    margin: 0 -1rem;
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.2s;
}

.form-section--collapsible > .form-section-summary::-webkit-details-marker {
    display: none;
}

.form-section--collapsible > .form-section-summary:hover {
    background: rgba(255, 255, 255, 0.04);
}

.form-section-summary .form-section-title {
    margin: 0;
    font-size: 0.75rem;
}

.form-section-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(240, 237, 231, 0.4);
    font-weight: 500;
}

.form-section-chevron {
    width: 15px;
    height: 15px;
    color: rgba(240, 237, 231, 0.4);
    transition: transform 0.25s ease;
}

.form-section--collapsible[open] .form-section-chevron {
    transform: rotate(180deg);
}

.form-section-body {
    padding-top: 0.5rem;
}

/* Visually disabled form group (value still submitted) */
.form-group--disabled label {
    opacity: 0.4;
}

.form-group--disabled select,
.form-group--disabled input {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

/* half-width row variant */
.form-row.half {
    grid-template-columns: 1fr;
    max-width: 50%;
}

@media (max-width: 640px) {
    .form-row.half {
        max-width: 100%;
    }
}

.dietary-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary);
}

.action-links {
    display: flex;
    gap: 6px;
}

.col-party  { width: 100px; }
.col-contact { width: 140px; }
.col-rsvp   { width: 120px; }
.col-locations { width: 90px; }
.col-actions { width: 100px; }

/* Location picker popover */
.loc-picker {
    position: relative;
    display: inline-block;
}

.loc-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    color: var(--light-text);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.loc-picker-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.loc-picker-popover {
    position: fixed;
    z-index: 500;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 0.85rem 1rem;
    width: 240px;
    white-space: normal;
    box-sizing: border-box;
}

.loc-picker-hint {
    font-size: 0.75rem;
    color: var(--light-text);
    margin: 0 0 0.6rem;
    line-height: 1.4;
}

.loc-picker-item {
    display: grid;
    grid-template-columns: 1rem 1fr;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0;
    color: var(--text);
    width: 100%;
}

.loc-picker-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loc-picker-item input[type="checkbox"] {
    accent-color: var(--primary);
    cursor: pointer;
    width: 1rem;
    height: 1rem;
}

.loc-picker-actions {
    margin-top: 0.6rem;
    display: flex;
    justify-content: flex-end;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--light-text);
}

.contact-badge.contact-email    { color: var(--accent); }
.contact-badge.contact-whatsapp { color: #6bbf7e; }
.contact-badge.contact-personal { color: var(--light-text); }
.contact-badge.contact-brief    { color: var(--muted-text); }

@media (max-width: 600px) {
    .col-contact { display: none; }
}

@media (max-width: 768px) {
    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        flex-direction: column;
    }

    .action-buttons {
        flex-direction: column;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: var(--space-sm);
    }

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

/* Pricing: On Quote price color */
.price--primary {
    color: var(--primary);
}

/* Modal helper elements */
.modal-form {
    margin: 0;
}

.modal-body-note {
    margin-top: 1rem;
    color: var(--light-text);
    font-size: 0.9rem;
}

.modal-body-intro {
    margin-top: 1rem;
}

.support-info-text {
    margin: 0.5rem 0 0 0;
}

/* ===== BUDGET / GUEST REFERENCE BANNER ===== */
.budget-reference-banner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* QR code / upload link panel variant */
.budget-reference-banner--qr {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.qr-panel-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    display: block;
    flex-shrink: 0;
}

.qr-panel-info {
    flex: 1;
    min-width: 200px;
}

.qr-panel-label {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--light-text);
    font-weight: 600;
}

.qr-panel-url {
    margin: 0 0 0.6rem;
    font-size: 0.85rem;
    color: var(--dark-text);
    word-break: break-all;
}

.qr-panel-desc {
    margin: 0;
    font-size: 0.8rem;
    color: var(--light-text);
}

.qr-panel-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.budget-reference-top {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.budget-reference-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.budget-reference-label {
    font-size: 0.78rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.budget-reference-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.budget-reference-bar-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.budget-reference-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.budget-reference-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.budget-reference-fill--warn {
    background: var(--accent);
}

.budget-reference-fill--over {
    background: var(--error);
}

.budget-reference-pct {
    font-size: 0.85rem;
    color: var(--light-text);
    min-width: 3.5rem;
    text-align: right;
}

.budget-ok {
    color: var(--success);
}

.budget-over {
    color: var(--error);
}

@media (max-width: 768px) {
    .pricing-container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }

    .pricing-header h2 {
        font-size: 2rem;
    }

    .pricing-card {
        padding: 2rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px) scale(1);
    }
}

.detail-icon {
    color: var(--primary);
    vertical-align: middle;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.task-item {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem;
    border-radius: 4px;
}

.task-body {
    flex: 1;
    min-width: 0;
}

.task-title {
    color: var(--dark-text);
    font-weight: 500;
}

.task-meta {
    font-size: 0.75rem;
    color: var(--light-text);
}

/* ============================================================
   Seating Dashboard
   ============================================================ */
.seating-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.seating-section {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.seating-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.guest-card {
    background: var(--light-bg);
    border-radius: 6px;
    padding: 1rem;
    border-left: 4px solid var(--accent);
    cursor: move;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.guest-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.guest-card.dragging {
    opacity: 0.5;
}

.guest-info {
    flex: 1;
}

.guest-size {
    color: var(--light-text);
    font-size: 0.8rem;
}

.seating-table-card {
    background: var(--light-bg);
    border-radius: 6px;
    padding: 1rem;
    border-left: 4px solid var(--primary);
    margin-bottom: 1rem;
    min-height: 120px;
    transition: all 0.2s;
}

.seating-table-card.drag-over {
    background: rgba(255, 255, 255, 0.07);
    border-left-color: var(--primary);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}

.seating-table-card.drag-over-invalid {
    background: rgba(212, 99, 92, 0.1);
    border-left-color: var(--error);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.table-name {
    font-weight: 600;
    font-size: 1rem;
}

.table-type-badge {
    font-size: 0.75rem;
    background: var(--border);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    color: var(--light-text);
}

.capacity-info {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.capacity-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.capacity-fill {
    height: 100%;
    background: var(--success);
    border-radius: 3px;
    transition: width 0.3s;
}

.capacity-fill.warning {
    background: var(--accent);
}

.capacity-fill.danger {
    background: var(--error);
}

.assigned-guests {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.assigned-guest-item {
    background: var(--card-bg);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background 0.2s;
}

.remove-btn:hover {
    background: rgba(212, 99, 92, 0.1);
}

.seating-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feedback-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: none;
}

.feedback-message.show {
    display: block;
}

.feedback-message.success {
    background: rgba(107, 142, 111, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.feedback-message.error {
    background: rgba(212, 99, 92, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

.seating-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
    .seating-container {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Table List
   ============================================================ */
.table-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.table-list-card {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.table-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.table-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.table-list-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--border);
    color: var(--primary);
    margin-top: 0.5rem;
}

.table-info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

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

.info-label {
    color: var(--light-text);
    font-size: 0.9rem;
}

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

.capacity-indicator {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.capacity-text {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 0.25rem;
}

.table-notes {
    background: var(--light-bg);
    border-left: 3px solid var(--primary);
    padding: 0.75rem;
    border-radius: 4px;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--light-text);
}

.table-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.table-actions .btn {
    flex: 1;
    padding: 0.6rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .tables-grid {
        grid-template-columns: 1fr;
    }

    .table-management-header {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================================
   Seating Form
   ============================================================ */
.form-group-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group-layout.full {
    grid-template-columns: 1fr;
}

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

.form-field label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body, 'Barlow', sans-serif);
    background: rgba(255, 255, 255, 0.05);
    color: var(--dark-text);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--at-10);
}

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

.form-field.required label::after {
    content: " *";
    color: var(--error);
}

.form-errors {
    background: rgba(212, 99, 92, 0.1);
    border: 1px solid var(--error);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: var(--error);
}

.form-errors ul {
    margin: 0;
    padding-left: 1.5rem;
}

.form-errors li {
    margin-bottom: 0.5rem;
}

.seating-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.seating-form-actions .btn {
    flex: 1;
}

.form-info {
    background: var(--light-bg);
    border-left: 3px solid var(--primary);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .form-group-layout {
        grid-template-columns: 1fr;
    }

    .seating-form-actions {
        flex-direction: column;
    }
}

/* ============================================================
   Table Form
   ============================================================ */
.table-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.table-form-actions .btn {
    flex: 1;
}

@media (max-width: 768px) {
    .table-form-actions {
        flex-direction: column;
    }
}

/* ============================================================
   Seating Confirm Delete
   ============================================================ */
.info-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

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

/* ============================================================
   Vendor List
   ============================================================ */
.contact-person {
    font-size: 0.9rem;
    color: var(--light-text);
}

.vendor-categories {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    background: var(--border);
    color: var(--primary);
    font-weight: 500;
    width: fit-content;
}

.phone-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .vendor-categories {
        gap: 2px;
    }

    .category-badge {
        font-size: 0.75rem;
    }
}

/* ============================================================
   Vendor Form
   ============================================================ */
.form-page {
    animation: fadeIn 0.4s ease-out;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: var(--space-xl);
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.form-row.full {
    grid-template-columns: 1fr;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Budget List
   ============================================================ */
.grand-totals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin: var(--space-2xl) 0;
}

.total-card {
    background: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: var(--space-md);
    text-align: center;
    transition: var(--transition-fast);
}

.total-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.total-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--light-text);
    margin-bottom: var(--space-xs);
}

.total-amount {
    font-size: 1.75rem;
    font-weight: 700;
}

.category-section {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: var(--space-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.category-header {
    background: var(--light-bg);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border);
}

.category-header h3 {
    margin: 0;
}

.category-totals {
    display: flex;
    gap: var(--space-lg);
    font-size: 0.9rem;
}

.category-total {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-total-label {
    color: var(--light-text);
    font-size: 0.8rem;
    font-weight: 500;
}

.category-total-value {
    font-weight: 600;
    color: var(--primary);
}

.status-paid {
    background: var(--success);
}

.status-pending {
    background: var(--border);
    color: var(--light-text);
}

@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .category-totals {
        width: 100%;
        flex-direction: column;
        gap: var(--space-md);
    }

    .grand-totals-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Budget Item Form
   ============================================================ */
.budget-form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.budget-form-group.full {
    grid-template-columns: 1fr;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.searchable-input-wrapper {
    position: relative;
}

.searchable-vendor-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body, 'Barlow', sans-serif);
    background: rgba(255, 255, 255, 0.05);
    color: var(--dark-text);
}

.searchable-vendor-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--at-10);
}

.searchable-select,
.searchable-select-location {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body, 'Barlow', sans-serif);
    background: rgba(255, 255, 255, 0.05);
    color: var(--dark-text);
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.autocomplete-results.show {
    display: block;
}

.result-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    color: var(--dark-text);
}

.result-item:hover,
.result-item.active {
    background: rgba(255, 255, 255, 0.07);
}

.result-item.create-new {
    color: var(--primary);
    font-weight: 500;
}

.result-item.create-new:hover,
.result-item.create-new.active {
    background: rgba(255, 255, 255, 0.07);
}

/* ============================================================
   Guest Detail
   ============================================================ */
.guest-detail-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.guest-detail-title {
    margin: 0 0 1.5rem 0;
}

.guest-key-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.guest-key-info-cell {
    text-align: center;
}

.guest-info-label {
    font-size: 0.75rem;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}

.guest-contact-info {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.guest-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.guest-notes-block {
    margin-bottom: 1.5rem;
}

.guest-notes-label {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.guest-notes-text {
    margin: 0;
    color: var(--light-text);
}

.guest-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.guest-detail-actions .btn {
    flex: 1;
    text-align: center;
}

/* ============================================================
   Guest Form
   ============================================================ */
.form-help {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-top: 4px;
}

/* ===== Tasks List ===== */

/* Section headers */
.tasks-section {
    margin-bottom: var(--space-lg);
}

.tasks-section-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--light-text);
}

.tasks-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--border);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--light-text);
    line-height: 1;
}

.tasks-section-count--done {
    background: rgba(107, 142, 111, 0.2);
    color: var(--success);
}

/* Task move animations */
@keyframes taskExit {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(16px); }
}

@keyframes taskEnter {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.task-exit {
    animation: taskExit 0.28s ease-out forwards;
    pointer-events: none;
}

.task-enter {
    animation: taskEnter 0.35s ease-out forwards;
}

/* View toggle buttons */
.tasks-view-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    gap: 0;
    margin-right: var(--space-sm);
}

.tasks-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.85rem;
    background: none;
    border: none;
    border-right: 1px solid var(--border);
    color: var(--light-text);
    font-size: 0.8rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.tasks-view-btn:last-child { border-right: none; }

.tasks-view-btn:hover {
    background: var(--card-bg-hover);
    color: var(--dark-text);
}

.tasks-view-btn--active {
    background: var(--card-bg-hover);
    color: var(--accent);
}

/* ── Timeline view ── */

/* Two-column layout: timeline on left, no-deadline sidebar on right */
.tl-layout {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.tl-main {
    flex: 1;
    min-width: 0;
}

.tl-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: var(--space-lg);
}

.tl-sidebar-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.tl-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tl-sidebar-item {
    background: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: 0.65rem var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    transition: border-color 0.15s ease;
}

.tl-sidebar-item:hover {
    border-color: var(--border-primary);
}

.tl-sidebar-item.completed {
    opacity: 0.6;
    border-color: var(--success);
}

.tl-sidebar-item .task-title {
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .tl-layout {
        flex-direction: column;
    }
    .tl-sidebar {
        width: 100%;
        position: static;
    }
}

.tl {
    padding-left: 2px;
}

.tl-month {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: var(--space-lg);
}

/* Vertical line connecting months */
.tl-month::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 24px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--at-35), var(--at-10));
}

.tl-month:last-child::before { display: none; }

.tl-month--past { opacity: 0.55; }

.tl-month--wedding::before { display: none; }

/* Node on the line */
.tl-node {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: -2.5rem;
    margin-bottom: var(--space-md);
}

.tl-node-dot {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--at-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl-node-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Wedding day milestone */
.tl-node--wedding {
    margin-bottom: 0;
}

.tl-node-dot--wedding {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1a1a;
    box-shadow: 0 0 14px var(--at-45);
}

.tl-node-label--wedding {
    font-size: 0.95rem;
    color: var(--accent);
    text-shadow: 0 0 20px var(--at-30);
}

/* Done section — collapsible <details>, same layout as .tl-month */
.tl-done-section {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: var(--space-lg);
    margin-top: 0;
}

/* Vertical line above the done node */
.tl-done-section::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, rgba(107,142,111,0.3), rgba(107,142,111,0.05));
}

.tl-done-section > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.tl-done-section > summary::-webkit-details-marker { display: none; }

.tl-done-summary .tl-node {
    transition: opacity 0.15s ease;
}

.tl-done-summary:hover .tl-node { opacity: 0.8; }

.tl-done-chevron {
    margin-left: var(--space-sm);
    color: var(--muted-text);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.tl-done-section[open] .tl-done-chevron { transform: rotate(180deg); }

.tl-node-dot--done {
    width: 24px;
    height: 24px;
    background: rgba(107,142,111,0.15);
    border-color: var(--success);
    color: var(--success);
}

.tl-node-label--done {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Sub-month nodes inside done section */
.tl-month--done {
    opacity: 0.7;
}

.tl-node-dot--done-month {
    width: 14px;
    height: 14px;
    border-color: rgba(107,142,111,0.4);
    background: transparent;
}

.tl-node-label--done-month {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-text);
}

.tl-month--done::before {
    background: linear-gradient(to bottom, rgba(107,142,111,0.2), rgba(107,142,111,0.05));
}



/* Tasks inside a timeline month */
.tl-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tl-task {
    background: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: 0.75rem var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tl-task:hover {
    border-color: var(--accent);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.tl-task.completed {
    opacity: 0.6;
    border-color: var(--success);
}

.tl-task.overdue {
    border-color: var(--error);
}

/* ── Kanban board ── */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    align-items: flex-start;
}

@media (max-width: 860px) {
    .kanban-board { grid-template-columns: 1fr; }
}

.kanban-col {
    background: rgba(255,255,255,0.025);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.kanban-col-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem var(--space-md);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.kanban-col-title {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--light-text);
    flex: 1;
}

.kanban-col--urgent .kanban-col-title { color: var(--error); }
.kanban-col--done   .kanban-col-title { color: var(--success); }

.kanban-col-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--border);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--light-text);
    line-height: 1;
}

.kanban-col-count--urgent { background: rgba(212,99,92,0.2); color: var(--error); }
.kanban-col-count--done   { background: rgba(107,142,111,0.2); color: var(--success); }

.kanban-col-body {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 80px;
}

/* Kanban card */
.kanban-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.65rem 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kanban-card:hover {
    border-color: var(--border-primary);
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.kanban-card.completed {
    opacity: 0.55;
    border-color: rgba(107,142,111,0.3);
}

.kanban-card.overdue {
    border-left: 3px solid var(--error);
}

.kanban-card-body {
    flex: 1;
    min-width: 0;
}

.kanban-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.25rem;
    line-height: 1.35;
}

.kanban-card.completed .kanban-card-title {
    color: var(--light-text);
    text-decoration: line-through;
}

.kanban-card-desc {
    font-size: 0.78rem;
    color: var(--muted-text);
    margin: 0 0 0.35rem;
    line-height: 1.4;
}

.kanban-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 0.35rem;
}

.kanban-card-deadline {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    color: var(--muted-text);
}

.kanban-card-deadline--overdue { color: var(--error); }
.kanban-card-deadline--soon    { color: var(--accent); }

.kanban-empty {
    padding: var(--space-md);
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted-text);
    border: 1px dashed var(--border);
    border-radius: 6px;
}

/* Kanban card: shrink action buttons */
.kanban-card .task-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.task-toggle-form {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.task-checkbox {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    font-size: 1.5rem;
    color: var(--light-text);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-checkbox:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.checkbox-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.checkbox-icon--empty {
    border: 2px solid var(--accent);
    border-radius: 50%;
    transition: border-color 0.2s ease;
}

.task-checkbox:hover .checkbox-icon--empty {
    border-color: var(--accent);
}

.task-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.priority-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    color: white;
}

.priority-badge.priority-high { background: var(--error); }
.priority-badge.priority-medium { background: var(--accent); }
.priority-badge.priority-low { background: var(--light-text); }

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.status-badge.overdue {
    background: var(--error);
    animation: pulse 2s infinite;
}

.status-badge.completed {
    background: var(--success);
}

.task-description {
    margin: var(--space-sm) 0 0;
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.task-deadline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    color: var(--light-text);
}

.deadline-icon {
    font-size: 1rem;
}

/* ===== Location Overview ===== */
.locations-page {
    animation: fadeIn 0.4s ease-out;
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.location-card {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: var(--space-lg);
    transition: var(--transition-fast);
    animation: slideUp 0.3s ease-out backwards;
}

.location-card--clickable {
    cursor: pointer;
}

.location-card--clickable:hover {
    border-color: var(--at-30);
    background: rgba(255, 255, 255, 0.06);
}

/* Generic modal overlay */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #141f14;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--space-2xl);
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: modal-in 0.2s ease;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--dark-text);
    margin-bottom: var(--space-sm);
}

.modal-body {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0;
}

.modal-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    justify-content: center;
}

.modal-actions .btn,
.modal-actions .btn-secondary {
    flex: 1;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.location-card:nth-child(1) { animation-delay: 0.05s; }
.location-card:nth-child(2) { animation-delay: 0.1s; }
.location-card:nth-child(3) { animation-delay: 0.15s; }

.location-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.location-title-section {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
}

.location-title {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary);
}

.location-type-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--primary);
    white-space: nowrap;
}

.location-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.location-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.location-details .detail-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    padding: 0;
    background: none;
    border-left: none;
}

.location-details .detail-item.full-width {
    grid-column: 1 / -1;
}

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

.detail-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--light-text);
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-text);
}

.maps-link {
    margin-top: 6px;
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

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

.location-body {
    display: flex;
    gap: var(--space-lg);
    align-items: stretch;
}

.location-body-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.location-body-map {
    flex: 0 0 340px;
    min-height: 200px;
}

.location-map {
    height: 100%;
    min-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    width: 100%;
}

@media (max-width: 640px) {
    .location-body {
        flex-direction: column;
    }
    .location-body-map {
        flex: none;
    }
    .location-map {
        height: 200px;
    }
}

.location-notes {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: var(--space-md);
    border-left: 3px solid var(--accent);
}

.location-notes strong {
    color: var(--primary);
    display: block;
    margin-bottom: var(--space-sm);
}

.location-notes p {
    margin: 0;
    color: var(--dark-text);
    white-space: pre-wrap;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .location-header {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .location-title-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .location-details {
        grid-template-columns: 1fr;
    }

    .location-actions {
        align-self: flex-end;
    }
}

/* ===== Task Form ===== */
/* (.form-page, .form-container, .form-section, .form-section-title, .form-row already defined above) */

.priority-options {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.priority-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.priority-option:hover {
    background: rgba(255, 255, 255, 0.07);
}

.priority-option input[type="radio"] {
    cursor: pointer;
    accent-color: var(--accent);
}

.option-text {
    font-weight: 500;
    color: var(--dark-text);
}

.form-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.form-actions .btn {
    flex: 1;
    padding: var(--space-md);
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }

    .priority-options {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* ===== Location Form ===== */
/* (uses .form-card, .form-actions, .section-header — all defined above) */

/* ===== Timeline List ===== */
.timeline-page {
    animation: fadeIn 0.4s ease-out;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
    gap: var(--space-lg);
}

.timeline-header h1 {
    margin: 0 0 var(--space-xs) 0;
}

.timeline-header .subtitle {
    margin: 0;
    color: var(--light-text);
    font-size: 0.95rem;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.event-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    border-left: 4px solid var(--light-text);
    padding: var(--space-lg);
    transition: var(--transition-fast);
    animation: slideUp 0.3s ease-out backwards;
}

.event-card:nth-child(1) { animation-delay: 0.05s; }
.event-card:nth-child(2) { animation-delay: 0.1s; }
.event-card:nth-child(3) { animation-delay: 0.15s; }

.event-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px var(--at-12);
}

.event-card.ceremony { border-left-color: var(--primary); }
.event-card.reception { border-left-color: var(--accent); }
.event-card.dinner { border-left-color: #8b6f47; }
.event-card.dancing { border-left-color: #c86b6b; }
.event-card.photo { border-left-color: var(--success); }
.event-card.cocktail { border-left-color: #9b8b6f; }
.event-card.other { border-left-color: var(--light-text); }

.event-type-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.event-type-badge.ceremony { background: var(--primary); }
.event-type-badge.reception { background: var(--accent); }
.event-type-badge.dinner { background: #8b6f47; }
.event-type-badge.dancing { background: #c86b6b; }
.event-type-badge.photo { background: var(--success); }
.event-type-badge.cocktail { background: #9b8b6f; }
.event-type-badge.other { background: var(--light-text); }

/* Card top row: type info + status */
.event-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: var(--space-sm);
}

.event-type-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-type-icon {
    display: flex;
    align-items: center;
    opacity: 0.7;
}

/* Status pill */
.event-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* Time — prominent */
.event-time {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.event-time-sep {
    margin: 0 0.3em;
    opacity: 0.4;
    font-weight: 400;
}

/* Title below time */
.event-title {
    margin: 0 0 var(--space-md) 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, var(--primary));
    opacity: 0.9;
}

/* Location row */
.event-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--light-text);
    font-size: 0.88rem;
    margin-bottom: var(--space-sm);
}

.event-description {
    color: var(--light-text);
    margin: var(--space-sm) 0;
    line-height: 1.6;
    font-size: 0.92rem;
}

.event-notes {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    padding: var(--space-md);
    border-radius: 4px;
    border-left: 3px solid var(--accent);
    font-size: 0.88rem;
    color: var(--light-text);
    margin: var(--space-sm) 0;
}

.event-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
    justify-content: flex-end;
}

.event-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Vertical timeline connector line */
.event-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.event-list::before {
    content: '';
    position: absolute;
    left: 1.6rem;
    top: 2.5rem;
    bottom: 2.5rem;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent);
    pointer-events: none;
}

.event-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    border-left: 4px solid var(--light-text);
    padding: var(--space-lg);
    transition: var(--transition-fast);
    animation: slideUp 0.3s ease-out backwards;
    margin-bottom: var(--space-md);
    position: relative;
}

.event-card:nth-child(1) { animation-delay: 0.05s; }
.event-card:nth-child(2) { animation-delay: 0.1s; }
.event-card:nth-child(3) { animation-delay: 0.15s; }

.event-card:hover {
    box-shadow: 0 8px 24px var(--at-12);
    transform: translateY(-1px);
}

.event-card.ceremony  { border-left-color: var(--primary); }
.event-card.reception { border-left-color: var(--accent); }
.event-card.dinner    { border-left-color: #8b6f47; }
.event-card.dancing   { border-left-color: #c86b6b; }
.event-card.photo     { border-left-color: var(--success); }
.event-card.cocktail  { border-left-color: #9b8b6f; }
.event-card.other     { border-left-color: var(--light-text); }

.event-type-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    opacity: 0.85;
}

.event-type-badge.ceremony  { background: var(--primary); }
.event-type-badge.reception { background: var(--accent); }
.event-type-badge.dinner    { background: #8b6f47; }
.event-type-badge.dancing   { background: #c86b6b; }
.event-type-badge.photo     { background: var(--success); }
.event-type-badge.cocktail  { background: #9b8b6f; }
.event-type-badge.other     { background: var(--light-text); }

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-list::before { display: none; }

    .event-time { font-size: 1.4rem; }

    .event-actions {
        flex-wrap: wrap;
    }

    .event-type-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.45rem;
    }
}

/* ===== View Toggle ===== */
.view-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.view-toggle-btn {
    background: transparent;
    border: none;
    padding: 0.45rem 0.75rem;
    color: var(--light-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.15s, color 0.15s;
    line-height: 0;
}

.view-toggle-btn:not(:last-child) {
    border-right: 1px solid var(--border);
}

.view-toggle-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--primary);
}

.view-toggle-btn--active {
    background: var(--at-12);
    color: var(--accent);
}

/* ===== Timeline Strip View ===== */
.tl-view {
    padding: 0.5rem 0;
}

.tl-row {
    display: grid;
    grid-template-columns: 4.5rem 1.5rem 1fr;
    gap: 0 0.75rem;
    align-items: stretch;
    min-height: 4rem;
}

.tl-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 0.1rem;
    gap: 0.2rem;
}

.tl-time-start {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.tl-time-end {
    font-size: 0.72rem;
    color: var(--light-text);
    line-height: 1;
}

.tl-spine {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.tl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.15rem;
    border: 2px solid var(--card-bg);
    box-shadow: 0 0 0 2px currentColor;
}

.tl-dot.ceremony  { color: var(--primary);  background: var(--primary); }
.tl-dot.reception { color: var(--accent);   background: var(--accent); }
.tl-dot.dinner    { color: #8b6f47;  background: #8b6f47; }
.tl-dot.dancing   { color: #c86b6b;  background: #c86b6b; }
.tl-dot.photo     { color: var(--success);  background: var(--success); }
.tl-dot.cocktail  { color: #9b8b6f;  background: #9b8b6f; }
.tl-dot.other     { color: var(--light-text); background: var(--light-text); }

.tl-line {
    flex: 1;
    width: 2px;
    background: var(--border);
    margin-top: 3px;
}

.tl-row:last-child .tl-line {
    display: none;
}

.tl-content {
    padding-bottom: 1.5rem;
    padding-top: 0;
}

.tl-content-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.tl-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.tl-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tl-location {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.78rem;
    color: var(--light-text);
}

.tl-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.tl-edit-btn {
    color: var(--light-text);
    opacity: 0.5;
    line-height: 0;
    transition: opacity 0.15s;
}

.tl-edit-btn:hover { opacity: 1; }

.tl-description {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-top: 0.5rem;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .tl-row {
        grid-template-columns: 3.5rem 1.25rem 1fr;
        gap: 0 0.5rem;
    }
    .tl-time-start { font-size: 0.85rem; }
}

/* ===== Timeline Form ===== */
.event-form-section {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    background: rgba(255,255,255,0.02);
}

.event-form-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--light-text);
    margin-bottom: 1rem;
    cursor: default;
}

.form-hint {
    display: block;
    color: var(--light-text);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.event-form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.event-form-group:last-child { margin-bottom: 0; }

.event-form-group.full {
    grid-template-columns: 1fr;
}

@media (max-width: 768px) {
    .event-form-group {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Home Page
   ============================================================ */
.dashboard-hero {
    margin-bottom: var(--space-2xl);
}

.wedding-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.wedding-card-title {
    margin: 0;
}

.wedding-card-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.wedding-card-settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.wedding-card-settings-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

/* ── Archived wedding card ── */
.wedding-card--archived {
    opacity: 0.72;
    pointer-events: auto; /* still clickable for read-only view */
    position: relative;
    border-color: var(--border);
}

.wedding-card--archived:hover {
    border-color: var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    opacity: 0.88;
}

.wedding-card-archived-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 8px;
    margin-bottom: var(--space-sm);
}

.wedding-card-archived-ribbon--warn {
    color: #a06010;
    background: rgba(244, 160, 89, 0.1);
    border-color: rgba(244, 160, 89, 0.35);
}
.wedding-card-archived-ribbon--danger {
    color: #b03020;
    background: rgba(180, 50, 50, 0.08);
    border-color: rgba(180, 50, 50, 0.3);
}
html.dark-mode .wedding-card-archived-ribbon--warn {
    color: #e8a040;
    background: rgba(244, 160, 89, 0.12);
}
html.dark-mode .wedding-card-archived-ribbon--danger {
    color: #e05040;
    background: rgba(180, 50, 50, 0.12);
}

.wedding-card--archived .wedding-card-title {
    color: var(--text-secondary);
}

.wedding-card--archived .wedding-card-cta {
    background: var(--bg-hover);
    color: var(--text-secondary);
    font-weight: 500;
}

.wedding-card-cta--archived {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wedding-card--archived:hover .wedding-card-cta {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

/* ── Add wedding card (inline in grid) ── */
.wedding-card--add {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
    background: transparent;
    min-height: 220px;
    transition: var(--transition-fast);
}

.wedding-card--add:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
    box-shadow: none;
}

.wedding-card-add-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.wedding-card--add:hover .wedding-card-add-inner {
    color: var(--primary);
}

.wedding-card-add-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px dashed currentColor;
    transition: var(--transition-fast);
}

.wedding-card-add-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.wedding-card-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.info-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wedding-card-info .info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--light-text);
}

.wedding-card-info .info-value {
    font-size: 0.95rem;
    color: var(--dark-text);
    font-weight: 500;
}

.wedding-card-info .info-value.muted {
    color: var(--light-text);
    font-weight: 400;
}

.wedding-card-cta {
    display: inline-block;
    margin-top: auto;
    padding: var(--space-md) var(--space-lg);
    border-radius: 4px;
    background: var(--primary);
    color: var(--bg-body);
    font-weight: 600;
    text-align: center;
    width: 100%;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.wedding-card:hover .wedding-card-cta {
    background: transparent;
    color: var(--primary);
    border-color: var(--at-50);
}

/* ── Plan badges (used in home + wedding dashboard) ─────────── */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    width: fit-content;
}

.plan-badge.plan-free {
    background: rgba(255, 255, 255, 0.06);
    color: var(--light-text);
    border: 1px solid var(--border);
}

.plan-badge.plan-pro {
    background: var(--at-12);
    color: var(--primary);
    border: 1px solid var(--border-primary);
}

/* ============================================================
   Wedding Dashboard
   ============================================================ */
.dashboard-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.progress-bar-wrap {
    margin-bottom: 1.5rem;
}

.progress-bar-track {
    background: var(--light-bg);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    background: var(--primary);
    height: 100%;
    transition: width 0.3s;
}

.task-icon {
    margin-right: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1.1rem;
}

.event-item {
    background: var(--light-bg);
    border-radius: 4px;
    padding: 0.75rem;
}

/* ── Dashboard Hero ─────────────────────────────────────────── */
.dash-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.dash-hero-left {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dash-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
    line-height: 1.1;
}

.dash-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dash-settings-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    transition: border-color 0.18s ease-out, color 0.18s ease-out, background 0.18s ease-out, transform 0.12s ease-out;
}

.dash-settings-link:active {
    transform: scale(0.97);
}

.dash-settings-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-hover);
}

/* Countdown */
.dash-countdown {
    text-align: right;
    flex-shrink: 0;
}

.dash-countdown-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -2px;
}

.dash-countdown-number--past {
    color: var(--light-text);
}

.dash-countdown-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--light-text);
    margin-top: 0.2rem;
}

.dash-countdown-today {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

/* ── Stats Strip ─────────────────────────────────────────────── */
.dash-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.dash-stat {
    background: var(--card-bg);
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: background 0.18s ease-out, transform 0.12s ease-out;
}

@media (hover: hover) and (pointer: fine) {
    .dash-stat:hover {
        background: var(--card-bg-hover);
    }
}

.dash-stat:active {
    transform: scale(0.98);
}

.dash-stat-icon {
    color: var(--primary);
    display: flex;
}

.dash-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--light-text);
}

.dash-stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-stat-value--empty {
    color: var(--muted-text);
    font-weight: 400;
    font-style: italic;
}

.dash-stat-of {
    font-weight: 400;
    color: var(--light-text);
    font-size: 0.85em;
}

/* ── Section ────────────────────────────────────────────────── */
.dash-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.dash-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
}

/* Progress inline */
.dash-progress-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: flex-end;
}

.dash-progress-track {
    flex: 1;
    max-width: 180px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.dash-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1);

    @starting-style {
        width: 0 !important;
    }
}

.dash-progress-label {
    font-size: 0.78rem;
    color: var(--light-text);
    white-space: nowrap;
}

/* ── Checklist Grid ─────────────────────────────────────────── */
.dash-checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.dash-task {
    display: grid;
    grid-template-columns: 20px 20px 1fr 16px;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
    text-decoration: none;
    transition: border-color 0.18s ease-out, background 0.18s ease-out, transform 0.12s ease-out;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .dash-task:hover {
        border-color: var(--at-35);
        background: var(--at-04);
        transform: translateY(-1px);
    }
}

.dash-task:active {
    transform: scale(0.97);
}

.dash-task:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--at-35);
    background: var(--at-04);
}

.dash-task--done {
    opacity: 0.55;
}

.dash-task--done:hover {
    opacity: 0.75;
}

.dash-task-check {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}

.dash-task--done .dash-task-check {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.dash-task--done .dash-task-check .icon-svg {
    color: #fff;
}

.dash-task-icon {
    color: var(--primary);
    opacity: 0.7;
    display: flex;
}

.dash-task-body {
    min-width: 0;
}

.dash-task-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-task--done .dash-task-title {
    text-decoration: line-through;
    color: var(--light-text);
}

.dash-task-desc {
    font-size: 0.75rem;
    color: var(--light-text);
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-task-meta {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.2rem;
}

.dash-task-arrow {
    color: var(--muted-text);
    flex-shrink: 0;
    transition: color 0.18s, transform 0.18s;
}

.dash-task:hover .dash-task-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

/* ── Alert Banner ───────────────────────────────────────────── */
.dash-alert-banner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--at-08);
    border: 1px solid var(--at-30);
    border-radius: 10px;
    padding: var(--space-md) var(--space-lg);
    color: var(--accent);
    text-decoration: none;
    margin-bottom: var(--space-xl);
    transition: background 0.18s ease-out, border-color 0.18s ease-out, transform 0.12s ease-out;
}

@media (hover: hover) and (pointer: fine) {
    .dash-alert-banner:hover {
        background: var(--at-14);
        border-color: var(--at-50);
        color: var(--accent);
    }
}

.dash-alert-banner:active {
    transform: scale(0.99);
}

.dash-alert-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.dash-alert-text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ── Bottom Grid ────────────────────────────────────────────── */
.dash-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dash-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.dash-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

/* Reminder groups */
.dash-reminder-group {
    margin-bottom: 1rem;
}

.dash-reminder-group:last-child {
    margin-bottom: 0;
}

.dash-reminder-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.dash-reminder-label--overdue { color: var(--error); }
.dash-reminder-label--soon { color: var(--accent); }

.dash-reminder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.35rem;
    border: 1px solid var(--border);
}

.dash-reminder-item--overdue {
    background: rgba(212, 99, 92, 0.08);
    border-color: rgba(212, 99, 92, 0.25);
}

.dash-reminder-item--soon {
    background: var(--at-07);
    border-color: var(--at-20);
}

.dash-reminder-title {
    font-size: 0.88rem;
    color: var(--dark-text);
    font-weight: 500;
}

.dash-reminder-date {
    font-size: 0.72rem;
    color: var(--light-text);
    white-space: nowrap;
    margin-left: 0.5rem;
}

/* Events list */
.dash-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-event-item {
    padding: 0.65rem 0.75rem;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.dash-event-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark-text);
}

.dash-event-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.3rem;
    flex-wrap: wrap;
}

.dash-event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--light-text);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .dash-stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-checklist-grid {
        grid-template-columns: 1fr;
    }
    .dash-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dash-hero {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    .dash-countdown {
        text-align: left;
    }
    .dash-stats-strip {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dash-progress-fill {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    .dash-task,
    .dash-stat,
    .dash-alert-banner,
    .dash-settings-link,
    .dash-task-arrow {
        transition-duration: 0.01ms !important;
    }
    .dash-task:active,
    .dash-stat:active,
    .dash-alert-banner:active,
    .dash-settings-link:active {
        transform: none;
    }
}

/* ============================================================
   Guest Confirm Delete
   ============================================================ */

/* ============================================================
   Ledger Seating Dashboard
   ============================================================ */
.seating-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.seating-stat-card {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 1.25rem;
}

.seating-stat-label {
    color: var(--light-text);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.seating-stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.seating-stat-value--success {
    color: var(--success);
}

.seating-stat-value--accent {
    color: var(--accent);
}

.seating-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.seating-actions .btn {
    white-space: nowrap;
}

.table-item {
    background: var(--light-bg);
    border-radius: 6px;
    padding: 1rem;
    border-left: 4px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-info {
    flex: 1;
}

.table-details {
    font-size: 0.9rem;
    color: var(--light-text);
}

.unassigned-guest-item {
    background: var(--light-bg);
    border-radius: 6px;
    padding: 1rem;
    border-left: 4px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header-row h1 {
    margin-bottom: 0.25rem;
}

.page-header-row p {
    color: var(--light-text);
    margin: 0;
}

.page-header-title {
    margin: 0;
    color: var(--error);
}

@media (max-width: 768px) {
    .table-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-buttons {
        width: 100%;
        margin-top: 0.75rem;
    }
}

/* ============================================================
   Ledger Table Confirm Delete
   ============================================================ */

/* ============================================================
   Ledger Table List
   ============================================================ */
.table-card {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 1.5rem;
}

/* ============================================================
   Searchable Select Widget
   ============================================================ */
.searchable-select-wrapper {
    position: relative;
}

/* ============================================================
   Searchable Select Location Widget
   ============================================================ */
.searchable-select-location-wrapper {
    position: relative;
}

.autocomplete-results-location {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.result-item-location {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    color: var(--dark-text);
}

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

.result-item-location:hover {
    background: rgba(255, 255, 255, 0.07);
}

.result-item-location.create-new {
    color: var(--primary);
    font-weight: 500;
}

.result-item-location.error {
    color: var(--error);
}

/* ============================================================
   Shared Report Styles (Budget Report, Guest Analytics)
   ============================================================ */
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.report-header h1 {
    margin-bottom: 0.25rem;
}

.report-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.report-section-title {
    margin: 0 0 1.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-progress-track {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.report-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.report-progress-bar--ok   { background: var(--success); }
.report-progress-bar--warn { background: var(--accent); }
.report-progress-bar--over { background: var(--error); }

.report-progress-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--light-text);
    margin: 0;
}

.report-category-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
}

.report-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.report-category-name {
    margin: 0 0 0.2rem 0;
    font-size: 0.95rem;
}

.report-category-count {
    font-size: 0.75rem;
    color: var(--light-text);
}

.report-category-amount {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.report-category-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1rem;
    font-size: 0.82rem;
}

.report-stat-label {
    color: var(--light-text);
    margin-right: 0.35rem;
}

.report-stat--over  { color: var(--error); }
.report-stat--under { color: var(--success); }

.report-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.report-badge {
    background: var(--primary);
    color: var(--bg-body);
    border-radius: 12px;
    padding: 0.2rem 0.65rem;
    font-weight: 700;
    font-size: 0.82rem;
}

.report-empty {
    text-align: center;
    padding: 2rem;
    color: var(--light-text);
    margin: 0;
}

/* ============================================================
   Seating Report
   ============================================================ */
.seating-report-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.seating-report-stat {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    text-align: center;
}

.seating-report-stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.seating-report-stat-value--accent {
    color: var(--accent);
}

.seating-report-stat-value--success {
    color: var(--success);
}

.seating-report-stat-value--error {
    color: var(--error);
}

.progress-bar-fill--warning {
    background: var(--accent);
}

.progress-bar-fill--danger {
    background: var(--error);
}

.seating-report-stat-label {
    color: var(--light-text);
    font-size: 0.9rem;
}

.seating-report-tables {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.seating-report-table-card {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    overflow: hidden;
}

.seating-report-table-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.seating-report-table-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-text);
}

.seating-report-table-type {
    margin: 0.25rem 0 0 0;
    color: var(--light-text);
    font-size: 0.85rem;
}

.seating-report-capacity {
    text-align: right;
}

.seating-report-capacity-value {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.seating-report-capacity-label {
    font-size: 0.75rem;
    color: var(--light-text);
}

.seating-report-guest-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.seating-report-guest-item {
    background: var(--light-bg);
    border-radius: 4px;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seating-report-guest-name {
    font-weight: 500;
    color: var(--dark-text);
}

.seating-report-guest-group {
    font-size: 0.75rem;
    color: var(--light-text);
}

.seating-report-party-badge {
    background: var(--primary);
    color: var(--light-bg);
    border-radius: 12px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.seating-report-empty {
    text-align: center;
    padding: 1rem;
    color: var(--light-text);
    font-size: 0.9rem;
}

.seating-report-table-notes {
    font-size: 0.85rem;
    color: var(--light-text);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 0.75rem;
}

.seating-report-no-tables {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* ============================================================
   Table Confirm Delete
   ============================================================ */
/* (uses .delete-confirmation, .delete-warning, .deletion-impact, .confirmation-actions — all defined above) */

/* ===== RSVP DEADLINE BANNER ===== */
.rsvp-deadline-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    background: transparent;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
}

.rsvp-deadline-banner--urgent {
    border-left-color: #d4a017;
}

.rsvp-deadline-banner--expired {
    border-left-color: var(--error);
}

.rsvp-deadline-info {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.rsvp-deadline-info strong {
    color: var(--dark-text);
}

.rsvp-deadline-label {
    font-weight: 500;
}

.rsvp-deadline-days {
    background: var(--bg-hover);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.rsvp-deadline-days--urgent {
    background: #fde68a;
    color: #92400e;
}

.rsvp-deadline-days--expired {
    background: #fecaca;
    color: #991b1b;
}

.rsvp-deadline-settings {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.rsvp-deadline-settings:hover {
    color: var(--primary);
}


/* ===== UTILITY CLASSES ===== */

/* Forms rendered inline (used in action columns) */
.form-inline {
    display: inline;
}

/* Disabled action link state */
.action-link--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
    pointer-events: none;
}

/* Muted icon color */
.icon-muted {
    color: var(--muted-text);
}

/* Extra buttons in the action bar */
.action-bar-extras {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Table column alignment */
.col-right  { text-align: right; }
.col-center { text-align: center; }

/* Vendor link in tables */
.vendor-link {
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}
.vendor-link:hover {
    color: var(--primary);
}

/* ===== BUDGET LIST ===== */

/* Charts section wrapper */
.budget-charts {
    background: var(--card-bg);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.budget-chart-item {
    flex: 1;
    min-width: 200px;
    max-width: 350px;
    text-align: center;
}

.budget-chart-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-text);
    margin-bottom: 0.5rem;
}

/* Grand total amount colors */
.total-amount--planned { color: var(--primary); }
.total-amount--actual  { color: var(--accent); }
.total-amount--paid    { color: var(--success); }
.total-amount--over    { color: var(--error); }
.total-amount--under   { color: var(--success); }
.total-amount--neutral { color: var(--light-text); }

/* ===== TASK LIST ===== */

/* Budget table: amount cell colors */
.amount-paid    { color: var(--success); }
.amount-outstanding { color: var(--error); }

/* ===== TASK LIST ===== */

/* Change-request status badge */
.status-badge--change-request {
    background: var(--at-12);
    color: var(--accent);
    border: 1px solid var(--at-20);
}

/* ============================================================
   Photo Gallery (photos/gallery.html)
   ============================================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: .5rem 0 1.5rem;
}
.photo-card { display: flex; flex-direction: column; gap: .45rem; }
.photo-thumb {
  position: relative; overflow: hidden; border-radius: 8px;
  aspect-ratio: 1; background: var(--card-bg); border: 1px solid var(--border);
  cursor: pointer;
}
.photo-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.photo-card:hover .photo-thumb img { transform: scale(1.04); }
.photo-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); opacity: 0;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: opacity .2s;
}
.photo-card:hover .photo-overlay { opacity: 1; }
.photo-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: #fff; cursor: pointer; transition: background .15s;
  text-decoration: none;
}
.photo-action:hover { background: rgba(255,255,255,.3); }
.photo-action--danger:hover { background: rgba(212,99,92,.6); border-color: transparent; }
.photo-meta { display: flex; flex-direction: column; gap: .15rem; padding: 0 .1rem; }
.photo-uploader { font-size: .72rem; color: var(--accent); display: flex; align-items: center; gap: .3rem; }
.photo-caption { font-size: .78rem; color: var(--dark-text); }
.photo-date { font-size: .68rem; color: var(--light-text); }

/* Lightbox */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 90vw; max-height: 88vh; border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6); object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,.12); border: none; border-radius: 50%;
  width: 40px; height: 40px; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ============================================================
   Wishlist Manage (wishlist/wishlist_manage.html)
   ============================================================ */
.wishlist-activation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.wishlist-activation-card--active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.wishlist-activation-info { display: flex; align-items: flex-start; gap: var(--space-lg); flex: 1; }
.wishlist-activation-status { padding-top: 2px; }
.wishlist-public-url {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: 6px;
  background: var(--surface, rgba(255,255,255,0.04));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}
.wishlist-url-link { font-size: 0.82rem; color: var(--primary); word-break: break-all; }
.btn-icon { background: none; border: none; cursor: pointer; padding: 2px 4px; color: var(--muted-text); font-size: 0.8rem; }
.wishlist-items { display: flex; flex-direction: column; gap: 2px; }
.wishlist-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: opacity 0.2s;
}
.wishlist-item-row--reserved { opacity: 0.55; }
.wishlist-item-main { flex: 1; }
.wishlist-item-title { font-weight: 500; font-size: 0.95rem; }
.wishlist-item-link { color: var(--primary); text-decoration: none; }
.wishlist-item-link:hover { text-decoration: underline; }
.wishlist-item-desc { font-size: 0.82rem; margin-top: 2px; }
.wishlist-item-meta { display: flex; align-items: center; gap: var(--space-md); }
.wishlist-item-price { font-weight: 600; color: var(--primary); white-space: nowrap; }

/* ============================================================
   Decor Edit (decor/decor_edit.html)
   ============================================================ */
.color-field-wrap {
  display: flex; align-items: center; gap: .5rem;
}
.color-field-wrap input[type="color"] {
  width: 44px; height: 44px; padding: 2px; border-radius: 6px;
  border: 1px solid var(--border); cursor: pointer; background: transparent;
}
.color-hex-preview {
  font-size: .78rem; color: var(--light-text); font-family: monospace;
  min-width: 54px;
}
.preset-palettes { display: flex; flex-wrap: wrap; gap: .5rem; }
.preset-btn {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .5rem .65rem; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card-bg);
  transition: border-color .15s, transform .1s; font-family: var(--font-body);
}
.preset-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.preset-btn.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--at-25); }
.preset-swatches { display: flex; gap: 3px; }
.preset-swatches span {
  display: block; width: 16px; height: 28px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.1);
}
.preset-label {
  font-size: .68rem; color: var(--light-text); white-space: nowrap;
  text-transform: uppercase; letter-spacing: .06em;
}

/* ============================================================
   Vendor Documents (vendors/vendor_documents.html)
   ============================================================ */
.doc-page { display: flex; flex-direction: column; gap: 1.5rem; }
.doc-upload-zone {
  border: 2px dashed var(--border-primary);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  background: var(--at-03);
  transition: var(--transition-fast);
}
.doc-upload-zone:focus-within {
  border-color: var(--accent);
  background: var(--at-06);
  box-shadow: 0 0 0 3px var(--at-12);
}
.doc-upload-zone .form-row { margin-bottom: 0; }
.doc-split {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .doc-split { grid-template-columns: 1fr; }
  .doc-viewer-wrap { display: none; }
}
.doc-list-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.doc-list-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.doc-list-header span {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  font-weight: 600;
  flex: 1;
}
.doc-count-badge {
  font-size: .7rem;
  padding: .15rem .55rem;
  border-radius: 99px;
  background: var(--at-15);
  color: var(--accent);
  font-weight: 600;
}
.doc-item { border-bottom: 1px solid var(--border); transition: var(--transition-fast); }
.doc-item:last-child { border-bottom: none; }
.doc-item.is-active { background: var(--at-07); }
.doc-item:hover { background: rgba(255,255,255,.03); }
.doc-item.is-active:hover { background: var(--at-09); }
.doc-item-btn {
  width: 100%; text-align: left; background: none; border: none;
  padding: .85rem 1.1rem; cursor: pointer;
  display: flex; align-items: flex-start; gap: .65rem; color: var(--dark-text);
}
.doc-item-btn .icon-svg { margin-top: .1rem; color: var(--accent); flex-shrink: 0; }
.doc-item-name { font-size: .9rem; line-height: 1.35; word-break: break-word; flex: 1; }
.doc-item-meta { font-size: .72rem; color: var(--light-text); padding: 0 1.1rem .35rem 2.65rem; }
.doc-item-actions { display: flex; gap: .4rem; padding: .15rem 1.1rem .7rem 2.65rem; flex-wrap: wrap; }
.doc-action {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; padding: .25rem .6rem; border-radius: 5px;
  font-family: var(--font-body); cursor: pointer; text-decoration: none;
  border: 1px solid var(--border); background: none;
  color: var(--light-text); transition: var(--transition-fast);
}
.doc-action:hover { border-color: var(--border-primary); color: var(--accent); }
.doc-action.danger { color: var(--error); border-color: rgba(212,99,92,.25); }
.doc-action.danger:hover { background: rgba(212,99,92,.1); border-color: var(--error); }
.doc-action .icon-svg { width: 12px; height: 12px; }
.doc-viewer-wrap {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  display: flex; flex-direction: column; min-height: 640px;
}
.doc-viewer-header {
  display: flex; align-items: center; gap: .65rem;
  padding: .9rem 1.1rem; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.doc-viewer-header .icon-svg { color: var(--accent); }
#viewer-title { font-size: .88rem; color: var(--light-text); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#viewer-open-btn { font-size: .75rem; }
.doc-viewer-body { flex: 1; display: flex; flex-direction: column; }
.doc-placeholder {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 3rem; text-align: center; color: var(--light-text);
  gap: 1rem;
}
.doc-placeholder svg { opacity: .2; }
.doc-placeholder p { margin: 0; font-size: .88rem; }
#pdf-viewer { display: none; flex: 1; width: 100%; border: none; min-height: 580px; }
.doc-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 3.5rem; text-align: center;
  gap: 1rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--light-text);
}
.doc-empty svg { opacity: .18; }
.doc-empty p { margin: 0; font-size: .9rem; }

/* ============================================================
   Planning Progress (core/wedding/wedding_progress.html)
   ============================================================ */
.progress-page { display: flex; flex-direction: column; gap: 1.5rem; }
.progress-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.progress-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .progress-grid, .progress-grid-3 { grid-template-columns: 1fr; } }
.prog-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  animation: fadeInUp .5s ease-out;
}
.prog-card-header {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1.25rem; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.025);
}
.prog-card-header h2 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--primary); font-weight: 600; margin: 0; flex: 1;
}
.prog-card-header .icon-svg { color: var(--accent); }
.prog-card-body { padding: 1.25rem; }
.prog-card-link { font-size: .75rem; color: var(--accent); text-decoration: none; transition: opacity .2s; }
.prog-card-link:hover { opacity: .7; }
.big-stat { text-align: center; padding: .5rem 0 .75rem; }
.big-stat-number {
  font-family: var(--font-display); font-size: 3.25rem; font-weight: 700;
  line-height: 1; color: var(--primary); letter-spacing: -1px;
}
.big-stat-number.ok    { color: var(--success); }
.big-stat-number.warn  { color: var(--accent); }
.big-stat-number.error { color: var(--error); }
.big-stat-label { font-size: .78rem; color: var(--light-text); margin-top: .35rem; }
.prog-bar-wrap { margin: .75rem 0 .4rem; }
.prog-bar-track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.prog-bar-fill { height: 100%; border-radius: 99px; background: var(--accent); transition: width .6s ease; }
.prog-bar-fill.ok   { background: var(--success); }
.prog-bar-fill.warn { background: var(--accent); }
.prog-bar-fill.error{ background: var(--error); }
.stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .88rem;
}
.stat-row:last-child { border-bottom: none; }
.stat-row-label { color: var(--light-text); display: flex; align-items: center; gap: .4rem; }
.stat-row-value { font-weight: 600; color: var(--dark-text); }
.stat-row-value.ok    { color: var(--success); }
.stat-row-value.warn  { color: var(--accent); }
.stat-row-value.error { color: var(--error); }
.rsvp-funnel { display: flex; flex-direction: column; gap: .55rem; margin-top: .25rem; }
.rsvp-funnel-bar { display: flex; align-items: center; gap: .75rem; }
.rsvp-funnel-bar-label { font-size: .78rem; color: var(--light-text); width: 80px; flex-shrink: 0; }
.rsvp-funnel-track { flex: 1; height: 10px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.rsvp-funnel-fill { height: 100%; border-radius: 99px; transition: width .6s ease; }
.rsvp-funnel-fill.accepted { background: var(--success); }
.rsvp-funnel-fill.declined { background: var(--error); }
.rsvp-funnel-fill.pending  { background: var(--accent); }
.rsvp-funnel-fill.not_sent { background: rgba(255,255,255,.2); }
.rsvp-funnel-count { font-size: .8rem; font-weight: 600; color: var(--dark-text); width: 28px; text-align: right; flex-shrink: 0; }
.cat-list { display: flex; flex-direction: column; gap: .6rem; margin-top: .25rem; }
.cat-item-label { display: flex; justify-content: space-between; font-size: .78rem; margin-bottom: .2rem; }
.cat-item-label span:first-child { color: var(--light-text); }
.cat-item-label span:last-child  { color: var(--dark-text); font-weight: 600; }
.countdown-tile { text-align: center; padding: 1rem 0; }
.countdown-num {
  font-family: var(--font-display); font-size: 4rem; font-weight: 700;
  line-height: 1; letter-spacing: -2px;
}
.countdown-num.future  { color: var(--primary); }
.countdown-num.today   { color: var(--success); }
.countdown-num.past    { color: var(--light-text); }
.countdown-sub { font-size: .8rem; color: var(--light-text); margin-top: .35rem; }
.progress-hero {
  background: var(--card-bg); border: 1px solid var(--border-primary);
  border-radius: 12px; padding: 1.75rem 2rem;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  animation: fadeInUp .45s ease-out;
}
.progress-hero-text { flex: 1; min-width: 180px; }
.progress-hero-text h1 { margin-bottom: .25rem; }
.progress-hero-text p  { color: var(--light-text); font-size: .88rem; margin: 0; }
.progress-donut-wrap { flex-shrink: 0; }
.progress-donut { position: relative; width: 100px; height: 100px; }
.progress-donut svg { transform: rotate(-90deg); }
.donut-bg  { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 8; }
.donut-arc { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.donut-label {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-family: var(--font-display);
}
.donut-pct  { font-size: 1.45rem; font-weight: 700; color: var(--primary); line-height: 1; }
.donut-sub  { font-size: .6rem; color: var(--light-text); letter-spacing: .05em; text-transform: uppercase; }

/* ============================================================
   Save the Date Story Form (savethedate/story_form.html)
   ============================================================ */
.story-form-wrap { max-width: 600px; margin: 3rem auto; padding: 0 1rem; }
.story-form-card { background: var(--card-bg); border-radius: 8px; border: 1px solid var(--border); padding: 2rem; }

/* ============================================================
   Site Footer  (merged from footer.css)
   ============================================================ */

footer.site-footer {
    margin-top: var(--space-3xl);
    background: #060d06;
    color: var(--dark-text, #f0ede7);
    padding: 4rem 2rem 1.5rem;
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.07));
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

footer.site-footer.footer--visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--muted-text);
}

@media (max-width: 768px) {
    footer.site-footer {
        padding: 3rem 1.5rem 1.5rem;
    }
}

html:not(.dark-mode) footer.site-footer {
    background: #f0f0ee;
    border-top-color: rgba(0, 0, 0, 0.1);
    color: var(--dark-text);
}

html:not(.dark-mode) .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.08);
}

/* ===== SUPPORT PAGE — FAQ ===== */
.support-page { max-width: 1000px; margin: 0 auto; }

/* Override the generic section-header layout — no action button column here */
.support-page .section-header {
    display: block;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Each section = a card */
.support-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.support-section:hover {
    border-color: var(--border-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
html.dark-mode .support-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Section title — left accent line for brand personality */
.support-section-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
    padding: 1rem 1.25rem 0.9rem 1.5rem;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    background: var(--at-04);
    letter-spacing: -0.01em;
}

.faq-list { display: flex; flex-direction: column; }

/* FAQ items as rows */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

/* Answer reveal animation */
@keyframes faq-answer-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.faq-question {
    list-style: none;
    padding: 0.9rem 1.25rem;
    min-height: 44px; /* touch target */
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    user-select: none;
    transition: background 0.15s ease, color 0.2s ease;
}
.faq-question::-webkit-details-marker { display: none; }

.faq-question:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    border-radius: 2px;
}

.faq-question::after {
    content: '';
    width: 18px; height: 18px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2381D8D0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    opacity: 0.65;
}
html.dark-mode .faq-question::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23c4a860' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.faq-item[open] > .faq-question {
    color: var(--primary);
    font-weight: 600;
}
.faq-item[open] > .faq-question::after {
    transform: rotate(180deg);
    opacity: 1;
}
.faq-question:hover { background: var(--at-04); }

.faq-answer {
    padding: 0.75rem 1.25rem 1.1rem;
    font-size: 0.86rem;
    color: var(--light-text);
    line-height: 1.78;
    border-top: 1px solid var(--border);
    animation: faq-answer-in 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer a {
    color: var(--primary);
    font-weight: 500;
    text-underline-offset: 3px;
    text-decoration: underline;
    text-decoration-color: var(--at-30);
}
.faq-answer a:hover { text-decoration-color: var(--primary); }
.faq-answer strong { color: var(--dark-text); font-weight: 600; }
.faq-answer ul { margin: 0.6rem 0 0.2rem 0; padding: 0; list-style: none; }
.faq-answer li {
    padding: 0.2rem 0 0.2rem 1rem;
    position: relative;
    margin-bottom: 0.15rem;
}
.faq-answer li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.6;
}

@media (max-width: 620px) {
    .support-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .faq-question::after { transition: none; }
    .faq-answer { animation: none; }
    .support-section { transition: none; }
}


/* ============================================================
   Wedding Dashboard
   ============================================================ */

/* ── Warnings ── */
.dash-deletion-warning {
    display: flex; align-items: center; gap: .6rem;
    background: rgba(180, 50, 50, 0.12); border: 1px solid rgba(180, 50, 50, 0.35);
    color: var(--dark-text); border-radius: 10px;
    padding: .75rem 1rem; margin-bottom: 1.25rem;
    font-size: .875rem; line-height: 1.5;
}
.dash-deletion-warning .icon-svg { color: #c0392b; flex-shrink: 0; width: 1.1em; height: 1.1em; }
.dash-deletion-warning strong { color: #c0392b; }

.dash-cancelation-warning {
    display: flex; align-items: center; gap: .6rem;
    background: rgb(244 160 89 / 0.12); border: 1px solid rgb(228 74 74 / 0.35);
    color: var(--dark-text); border-radius: 10px;
    padding: .75rem 1rem; margin-bottom: 1.25rem;
    font-size: .875rem; line-height: 1.5;
}
.dash-cancelation-warning .icon-svg { color: #ea8f2b; flex-shrink: 0; width: 1.1em; height: 1.1em; }
.dash-cancelation-warning strong { color: #ea8f2b; }

/* ── Apps Grid ── */
.dash-apps-section { margin: 1.5rem 0; }

.dash-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin: 0;
}

.dash-app-card {
    display: flex; flex-direction: column;
    padding: 1rem;
    background: rgba(12, 22, 12, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    text-decoration: none; color: inherit;
    transition: all 0.2s ease;
    position: relative;
}
.dash-app-card:hover {
    background: rgba(12, 22, 12, 0.5);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.dash-app-card--locked { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.dash-app-card--locked:hover { transform: none; border-color: rgba(255, 255, 255, 0.07); box-shadow: none; }

.dash-app-card-icon { position: relative; width: 32px; height: 32px; color: var(--primary); flex-shrink: 0; }
.dash-app-card-icon .icon-svg { width: 32px; height: 32px; }
.dash-app-card-icon .crown-badge {
    position: absolute; top: -6px; right: -6px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--primary); color: var(--bg-body);
    display: flex; align-items: center; justify-content: center;
}
.dash-app-card-icon .crown-badge svg { width: 10px; height: 10px; }

.dash-app-card-body { flex: 1; margin: 0.75rem 0; }
.dash-app-card-title {
    font-family: var(--font-display); font-size: 1rem; font-weight: 600;
    color: var(--dark-text); margin-bottom: 0.25rem;
}
.dash-app-card-title .badge-upgrade { font-size: 0.65rem; margin-left: 0.35rem; }
.dash-app-card-desc { font-size: 0.85rem; color: rgba(240, 237, 231, 0.6); line-height: 1.4; }

.dash-app-card-arrow {
    align-self: flex-end; color: var(--primary);
    opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease;
}
.dash-app-card:hover .dash-app-card-arrow { opacity: 1; transform: translateX(2px); }

.dash-stat--locked { opacity: 0.55; cursor: not-allowed; }
.dash-stat--locked:hover { background: transparent; }

/* ── Light mode overrides ── */
html:not(.dark-mode) .dash-app-card {
    background: rgba(129, 216, 208, 0.05);
    border-color: rgba(0, 0, 0, 0.07);
}
html:not(.dark-mode) .dash-app-card:hover {
    background: rgba(129, 216, 208, 0.1);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
html:not(.dark-mode) .dash-app-card-desc { color: rgba(26, 26, 26, 0.5); }

/* ── Upgrade dropdown ── */
.dash-upgrade-wrap { position: relative; }
.dash-settings-link--upgrade { background: transparent; border-color: var(--accent); color: var(--accent); }
.dash-settings-link--upgrade:hover {
    background: rgba(196, 168, 96, 0.08);
    border-color: var(--primary-hover); color: var(--primary-hover);
}

.dash-upgrade-popup {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 200;
    background: var(--light-bg); border: 1px solid var(--border-gold);
    border-radius: 12px; padding: 1.2rem 1.25rem; width: 280px;
    box-shadow: 0 12px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(196,168,96,.06);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s .2s;
    pointer-events: none;
}
.dash-upgrade-popup.upgrade-open {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition: opacity .2s ease-out, transform .2s ease-out;
    pointer-events: auto;
}
.dash-upgrade-title { font-family: var(--font-display); font-size: 1rem; color: var(--accent); margin: 0 0 .5rem; font-weight: 600; }
.dash-upgrade-hint { font-size: .8rem; color: var(--light-text); margin: 0 0 .75rem; line-height: 1.55; }
.dash-upgrade-price { font-size: .85rem; font-weight: 600; color: var(--dark-text); background: rgba(196, 168, 96, 0.08); border-radius: 8px; padding: .5rem .75rem; }
.dash-upgrade-secure { margin: .6rem 0 0; font-size: .75rem; color: var(--muted-text); text-align: center; }

/* ── Calendar dropdown ── */
.dash-cal-wrap { position: relative; }
button.dash-settings-link { background: transparent; }

.dash-cal-popup {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 200;
    background: var(--light-bg); border: 1px solid var(--border-gold);
    border-radius: 12px; padding: 1.2rem 1.25rem; width: 320px;
    box-shadow: 0 12px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(196,168,96,.06);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s .2s;
    pointer-events: none;
}
.dash-cal-popup.cal-open {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition: opacity .2s ease-out, transform .2s ease-out;
    pointer-events: auto;
}
.dash-cal-hint { font-size: .8rem; color: var(--light-text); margin: 0 0 .9rem; line-height: 1.55; }
.dash-cal-row { display: flex; gap: .4rem; margin-bottom: .6rem; }
.dash-cal-input {
    flex: 1; font-size: .74rem; padding: .4rem .6rem;
    border: 1px solid var(--border); border-radius: 6px;
    background: var(--input-bg); color: var(--dark-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
    font-family: var(--font-body); transition: border-color .18s ease-out;
}
.dash-cal-input:focus { outline: none; border-color: var(--border-gold); }
.dash-cal-copy { padding: .38rem .75rem; font-size: .8rem; white-space: nowrap; }
.dash-cal-webcal {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .8rem; color: var(--primary); text-decoration: none;
    transition: color .18s ease-out, opacity .18s ease-out;
}
.dash-cal-webcal:hover { color: var(--primary-hover); opacity: .9; }
.dash-cal-regen-btn {
    display: block; background: none; border: none; padding: 0;
    margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--border);
    width: 100%; text-align: left; font-size: .75rem; color: var(--muted-text);
    cursor: pointer; font-family: var(--font-body); transition: color .18s ease-out;
}
.dash-cal-regen-btn:hover { color: var(--error); background: none; }

html:not(.dark-mode) .dash-upgrade-popup,
html:not(.dark-mode) .dash-cal-popup {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
html:not(.dark-mode) .dash-settings-link--upgrade { background: rgba(129, 216, 208, 0.06); }

@media (max-width: 1024px) {
    .dash-apps-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 640px) {
    .dash-apps-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-app-card-title { font-size: 0.9rem; }
    .dash-app-card-desc { font-size: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .dash-upgrade-popup, .dash-cal-popup, .dash-settings-link,
    .dash-cal-webcal, .dash-cal-regen-btn, .btn {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

