:root {
    --bg-soft: #f5f6f4;
    --text-main: #2a2d30;
    --text-muted: #5f6467;
    --brand: #42474c;
    --brand-2: #4f7f39;
    --accent: #c99614;
    --bs-primary: #42474c;
    --bs-primary-rgb: 66, 71, 76;
    --bs-link-color: #42474c;
    --bs-link-hover-color: #4f7f39;
    --radius-lg: 1.1rem;
}

body {
    -webkit-font-smoothing: antialiased;
    color: var(--text-main);
    background: radial-gradient(circle at 20% 0%, #f4f5f2 0%, #f8f8f5 45%, #fbfbf9 100%);
}

.app-body {
    min-height: 100vh;
}

.navbar-modern {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(10, 20, 40, 0.08);
}

.navbar-modern .navbar-brand {
    color: #2f3337;
    letter-spacing: .2px;
}

.brand-logo {
    height: 42px;
    width: auto;
    display: block;
}

.navbar-modern .nav-link {
    color: #4b5157;
    font-weight: 500;
}

.card,
.hero-demo-card,
.feature-card {
    border-radius: var(--radius-lg);
}

.btn,
.form-control,
.form-select,
.input-group-text {
    border-radius: .8rem;
}

.btn-primary {
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    border: none;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.hero-landing {
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #ffffff 10%, #f6f6f3 55%, #f3f6ef 100%);
    box-shadow: 0 24px 45px rgba(19, 30, 61, 0.08);
}

.hero-badge {
    display: inline-flex;
    background: #f3ead4;
    color: #6f560f;
    padding: .4rem .8rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(1.7rem, 2.5vw, 2.8rem);
    line-height: 1.15;
    font-weight: 800;
}

.hero-subtitle {
    color: var(--text-muted);
    max-width: 56ch;
    font-size: 1.05rem;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    color: #4b5157;
}

.hero-demo-card {
    position: relative;
    overflow: hidden;
    padding: 1.4rem;
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(34, 56, 88, 0.12);
}

.hero-demo-gradient {
    height: 120px;
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    border-radius: .9rem;
    margin-bottom: 1rem;
}

.hero-demo-card p,
.hero-demo-card li,
.feature-card p {
    color: var(--text-muted);
}

.hero-conversion {
    border: 1px solid rgba(31, 42, 85, 0.08);
}

.hero-proof-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: .6rem;
}

.hero-proof-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(36, 52, 90, 0.1);
    border-radius: .8rem;
    padding: .62rem .75rem;
    font-weight: 500;
    color: #3a4046;
}

.hero-proof-item i {
    color: var(--brand-2);
}

.conversion-demo {
    border: 1px solid rgba(32, 44, 82, 0.08);
}

.conversion-step {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-bottom: .85rem;
}

.conversion-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef3ea;
    color: #4f7f39;
    font-weight: 700;
    flex: 0 0 auto;
}

.conversion-step p {
    margin: .2rem 0 0;
    font-size: .93rem;
}

.event-types-section .card,
.seo-benefits .card,
.faq-section .card,
.cta-conversion .card {
    border-radius: 1.1rem;
}

.event-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.event-chip {
    display: inline-flex;
    align-items: center;
    padding: .4rem .75rem;
    border-radius: 999px;
    background: #f2f5f0;
    border: 1px solid rgba(79, 127, 57, 0.2);
    color: #3b5d2b;
    font-size: .88rem;
    font-weight: 500;
}

.faq-section .accordion-button {
    font-weight: 600;
    color: #42474c;
}

.faq-section .accordion-button:not(.collapsed) {
    background: #f4f6f2;
    color: #3d6a2d;
}

.feature-card {
    background: #fff;
    padding: 1rem;
    box-shadow: 0 12px 22px rgba(24, 35, 62, 0.08);
    height: 100%;
}

.feature-card i {
    font-size: 1.3rem;
    color: var(--brand-2);
}

.panel-hero {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #ffffff 15%, #f5f6f3 60%, #f2f6ed 100%);
    box-shadow: 0 10px 24px rgba(21, 34, 66, 0.08);
}

.metric-card {
    border: 1px solid rgba(28, 44, 82, 0.08);
    background: #fff;
}

.metric-label {
    color: var(--text-muted);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .25rem;
}

.metric-value {
    margin: 0;
    font-weight: 700;
}

.admin-chart-wrap {
    position: relative;
    height: 320px;
    min-height: 320px;
    max-height: 320px;
}

.admin-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.invitation-live-preview {
    top: 90px;
}

.preview-card {
    border-radius: 1.2rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 38px rgba(25, 39, 72, 0.18);
}

.preview-cover {
    position: relative;
    height: 180px;
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
}

.preview-cover.bg-birthday,
.public-cover.bg-birthday {
    background: linear-gradient(135deg, #7f4bff, #ff6aa5 55%, #ffc06a);
}

.preview-cover.bg-wedding,
.public-cover.bg-wedding {
    background: linear-gradient(135deg, #8b5a2b, #d4af7f 55%, #f6e6d3);
}

.preview-cover.bg-corporate,
.public-cover.bg-corporate {
    background: linear-gradient(135deg, #2f3337, #42474c 55%, #4f7f39);
}

.preview-cover.bg-baby,
.public-cover.bg-baby {
    background: linear-gradient(135deg, #c99614, #4f7f39 45%, #42474c);
}

.preview-cover.bg-graduation,
.public-cover.bg-graduation {
    background: linear-gradient(135deg, #1f2937, #374151 45%, #f59e0b);
}

.preview-cover.bg-party,
.public-cover.bg-party {
    background: linear-gradient(135deg, #42474c, #c99614 50%, #4f7f39);
}

.preview-cover.bg-night,
.public-cover.bg-night {
    background: linear-gradient(135deg, #111827, #1e293b 50%, #334155);
}

.preview-cover img[data-preview-hero] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 35, 0.35);
}

.preview-avatar-wrap {
    position: absolute;
    right: 18px;
    bottom: -32px;
}

.preview-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

.preview-content {
    padding: 2.7rem 1.2rem 1.3rem;
    background: var(--secondary-color, #fff);
}

.preview-type {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-muted);
}

.preview-title {
    margin-top: .35rem;
    margin-bottom: .4rem;
}

.preview-meta,
.preview-location,
.preview-description {
    color: var(--text-muted);
}

.preview-btn {
    background: var(--theme-color, #42474c);
    color: #fff;
    border: 1px solid transparent;
    border-radius: .8rem;
    padding: .65rem 1rem;
    margin-top: .35rem;
    transition: all .2s ease;
}

.preview-btn.btn-gradient {
    background: linear-gradient(120deg, var(--theme-color, #42474c), #4f7f39);
    color: #fff;
    border-color: transparent;
}

.preview-btn.btn-outline {
    background: transparent;
    color: var(--theme-color, #42474c);
    border-color: var(--theme-color, #42474c);
}

.preview-btn.btn-soft {
    background: color-mix(in srgb, var(--theme-color, #42474c) 14%, white);
    color: var(--theme-color, #42474c);
    border-color: color-mix(in srgb, var(--theme-color, #42474c) 35%, white);
}

.preview-btn.btn-pill {
    border-radius: 999px;
    padding-inline: 1.25rem;
}

.style-glass .preview-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 255, 0.92));
}

.public-invite-card.style-glass .public-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 255, 0.92));
}

.style-minimal .preview-content {
    box-shadow: inset 0 0 0 1px rgba(45, 62, 98, 0.1);
}

.public-invite-card.style-minimal .public-content {
    box-shadow: inset 0 0 0 1px rgba(45, 62, 98, 0.1);
}

.style-bold .preview-content {
    background: linear-gradient(160deg, #222b45, #1b1835);
    color: #fff;
}

.public-invite-card.style-bold .public-content {
    background: linear-gradient(160deg, #222b45, #1b1835);
    color: #fff;
}

.style-bold .preview-meta,
.style-bold .preview-location,
.style-bold .preview-description,
.style-bold .preview-type {
    color: rgba(255, 255, 255, 0.82);
}

.style-soft .preview-content {
    background: linear-gradient(145deg, #fff9f3, #ffffff);
}

.public-invite-card.style-soft .public-content {
    background: linear-gradient(145deg, #fff9f3, #ffffff);
}

.style-outline .preview-content {
    background: #fff;
    border: 2px dashed rgba(79, 127, 57, 0.42);
}

.public-invite-card.style-outline .public-content {
    background: #fff;
    border: 2px dashed rgba(79, 127, 57, 0.42);
}

.public-invite-card.style-bold .public-date,
.public-invite-card.style-bold .public-description,
.public-invite-card.style-bold p,
.public-invite-card.style-bold .public-type {
    color: rgba(255, 255, 255, 0.85);
}

.public-invite-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.public-invite-card {
    position: relative;
    border-radius: 1.2rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 40px rgba(24, 31, 56, 0.18);
}

.public-cover {
    height: 280px;
    position: relative;
    background: linear-gradient(135deg, var(--theme-color), var(--secondary-color));
}

.public-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 30, var(--overlay-opacity, 0.35));
}

.public-avatar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -52px;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
}

.public-content {
    margin-top: 22px;
}

.public-type {
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--theme-color);
    font-size: .8rem;
    font-weight: 600;
}

.public-title {
    color: var(--theme-color);
}

.public-date,
.public-description {
    color: var(--text-muted);
}

.font-modern {
    font-family: Inter, "Segoe UI", sans-serif;
}

.font-elegant {
    font-family: "Georgia", "Times New Roman", serif;
}

.font-classic {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.font-playful {
    font-family: "Comic Sans MS", "Segoe UI", sans-serif;
}

.font-luxury {
    font-family: "Palatino Linotype", Palatino, serif;
}

.font-mono {
    font-family: "Courier New", monospace;
}

.watermark-paid-required {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 800;
    color: rgba(215, 33, 33, 0.22);
    transform: rotate(-18deg);
    letter-spacing: .2rem;
    pointer-events: none;
    z-index: 5;
    text-align: center;
}

.payment-panel {
    background: linear-gradient(140deg, #ffffff 0%, #f7f7f4 55%, #f2f6ed 100%);
    border-radius: 1rem;
}

.payment-copy {
    max-width: 580px;
}

.payment-copy h3 {
    color: #2f3337;
}

.payment-form {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(40, 58, 92, 0.08);
    border-radius: .9rem;
    padding: .6rem;
}

.payment-select {
    min-width: 220px;
}

.payment-coupon {
    min-width: 180px;
}

.invite-editor-header {
    border: 1px solid rgba(30, 47, 89, 0.08);
    background: linear-gradient(130deg, #ffffff 10%, #f7f7f4 55%, #f2f6ed 100%);
}

.invite-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
    justify-content: flex-end;
}

.invite-editor-actions .btn {
    white-space: nowrap;
}

.invite-editor-pdf {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    padding: .35rem;
    border: 1px solid rgba(30, 47, 89, 0.12);
    border-radius: .85rem;
    background: rgba(255, 255, 255, 0.88);
}

.invite-editor-pdf .form-select {
    min-width: 170px;
}

@media (max-width: 768px) {
    .invite-editor-actions {
        justify-content: flex-start;
    }

    .invite-editor-pdf {
        width: 100%;
    }

    .invite-editor-pdf .form-select,
    .invite-editor-pdf .btn {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .hero-landing {
        padding: 1.1rem;
    }

    .preview-cover {
        height: 160px;
    }
}

@media (min-width: 992px) {
    .hero-proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}