:root {
    --bg: #f4f7ee;
    --surface: #ffffff;
    --surface-soft: #f9fbf4;
    --text: #173124;
    --muted: #607160;
    --line: rgba(88, 124, 40, 0.16);
    --brand: #77c100;
    --brand-strong: #5c9b00;
    --brand-dark: #214b18;
    --shadow-sm: 0 10px 24px rgba(33, 75, 24, 0.08);
    --shadow-md: 0 18px 45px rgba(33, 75, 24, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --transition: 220ms ease;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(119, 193, 0, 0.12), transparent 22%),
        linear-gradient(180deg, #f8fbf2 0%, #f2f6ea 100%);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.coupon-cta {
    font-family: 'Manrope', sans-serif;
}

a {
    color: inherit;
}

main {
    min-height: calc(100vh - 180px);
}

/* Navbar */
.navbar {
    padding: 0.85rem 0;
    background: rgba(248, 251, 242, 0.92) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(88, 124, 40, 0.12);
    box-shadow: 0 8px 20px rgba(33, 75, 24, 0.04);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-dark) !important;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.navbar .nav-link {
    color: var(--text) !important;
    font-weight: 600;
    padding: 0.65rem 1rem !important;
}

.navbar .nav-link:hover {
    color: var(--brand-strong) !important;
}

.navbar-toggler {
    border: 1px solid var(--line);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 1.4rem;
    height: 1.4rem;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-dark);
}

.navbar-toggler-icon::before {
    top: 0.35rem;
}

.navbar-toggler-icon::after {
    bottom: 0.35rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    text-decoration: none;
}

.btn-cta-nav,
.btn-primary-hero,
.btn-dark,
.btn-success {
    border: 0 !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--brand) 0%, #8fd11b 100%) !important;
    box-shadow: 0 12px 25px rgba(119, 193, 0, 0.24);
}

.btn-cta-nav:hover,
.btn-primary-hero:hover,
.btn-dark:hover,
.btn-success:hover {
    color: #fff !important;
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--brand-strong) 0%, var(--brand) 100%) !important;
}

.btn-outline-hero,
.btn-outline-dark {
    border: 1px solid var(--line);
    background: #fff !important;
    color: var(--brand-dark) !important;
}

.btn-outline-hero:hover,
.btn-outline-dark:hover {
    transform: translateY(-2px);
    border-color: rgba(119, 193, 0, 0.4);
    background: #fff !important;
    color: var(--brand-dark) !important;
}

/* Home hero */
.home-hero,
.coupon-single-hero {
    position: relative;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
    gap: 1.5rem;
    align-items: stretch;
}

.home-hero-copy,
.hero-highlight,
.content-card,
.single-shell,
.coupon-strip,
.empty-state {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(88, 124, 40, 0.12);
    box-shadow: var(--shadow-sm);
}

.home-hero-copy {
    border-radius: 32px;
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero-copy-full {
    max-width: 860px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(119, 193, 0, 0.12);
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-hero-copy h1,
.page-intro h1,
.single-title {
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.05;
    margin: 1rem 0 0.85rem;
}

.home-hero-copy p,
.page-intro p,
.single-description {
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.75;
    max-width: 58ch;
    margin-bottom: 0;
}

.home-hero-actions,
.single-status-row,
.single-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.hero-highlight {
    border-radius: 32px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.hero-highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(119, 193, 0, 0.12), transparent 32%);
    pointer-events: none;
}

.hero-highlight-header,
.coupon-strip-meta,
.single-meta-line,
.single-status-row {
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-highlight-header,
.coupon-strip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-highlight h2 {
    font-size: 1.8rem;
    line-height: 1.18;
    margin: 1rem 0 0.75rem;
}

.hero-highlight p {
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.hero-highlight-code,
.single-code-box,
.coupon-code {
    padding: 0.95rem 1.1rem;
    border-radius: 16px;
    border: 1px dashed rgba(119, 193, 0, 0.45);
    background: linear-gradient(180deg, #fbfff5 0%, #f1f8e4 100%);
    color: var(--brand-dark);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.hero-highlight-button {
    margin-top: 1.25rem;
}

/* Section */
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-head h2,
.content-card h2 {
    margin: 0.35rem 0 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.section-head a {
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration: none;
}

.section-head a:hover {
    color: var(--brand-strong);
}

/* Coupon list */
.coupon-stack {
    display: grid;
    gap: 1.15rem;
}

.coupon-strip {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 280px;
    align-items: center;
    gap: 1.25rem;
    border-radius: 26px;
    padding: 0;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.coupon-strip:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(119, 193, 0, 0.25);
}

.coupon-strip-value {
    min-height: 100%;
    padding: 2rem 1.4rem;
    background: linear-gradient(180deg, #77c100 0%, #8fd11b 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.coupon-strip-value::after {
    content: '';
    position: absolute;
    inset: auto -35% -25% auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.coupon-strip-store {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

.coupon-strip-value strong {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1;
}

.coupon-strip-value small {
    margin-top: 0.65rem;
    font-size: 0.95rem;
}

.coupon-strip-content {
    padding: 1.75rem 0;
}

.coupon-strip-content h2,
.coupon-strip-content h3 {
    font-size: clamp(1.35rem, 2vw, 2rem);
    margin-bottom: 0.7rem;
}

.coupon-strip-content p {
    margin-bottom: 1rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 60ch;
}

.coupon-strip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.coupon-strip-action {
    padding: 1.5rem;
}

.coupon-cta {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    min-height: 68px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand) 0%, #8dd114 100%) !important;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(119, 193, 0, 0.25);
    transition: transform var(--transition), box-shadow var(--transition);
}

.coupon-cta:hover {
    color: #fff !important;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 34px rgba(119, 193, 0, 0.28);
}

.coupon-cta span,
.coupon-cta strong {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.coupon-cta span {
    flex: 1;
    justify-content: center;
    padding: 0 1.2rem;
    font-size: 1rem;
    font-weight: 800;
}

.coupon-cta strong {
    min-width: 72px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1rem;
}

.coupon-cta::after {
    content: '';
    position: absolute;
    top: 0;
    right: 58px;
    width: 42px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(233, 248, 213, 0.92) 100%);
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
    transition: right var(--transition), transform var(--transition);
}

.coupon-strip:hover .coupon-cta::after,
.coupon-cta:hover::after {
    right: 48px;
    transform: scale(1.04);
}

/* Generic blocks */
.page-intro {
    background: transparent;
}

.content-card {
    border-radius: 28px;
    padding: 2rem;
}

.empty-state {
    padding: 3rem 2rem;
    border-radius: 28px;
}

/* Single */
.single-sidebar-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 251, 244, 0.94) 100%);
}

.single-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 320px;
    gap: 1.4rem;
    border-radius: 32px;
    padding: 1.5rem;
}

.single-brand-panel {
    background: linear-gradient(180deg, #77c100 0%, #8fd11b 100%);
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.single-brand-mark {
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
}

.single-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 999px;
}

.single-brand-mark i {
    font-size: 4rem;
    color: var(--brand);
}

.single-content-panel,
.single-cta-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.single-meta-chip,
.single-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.single-cta-panel {
    gap: 1rem;
}

.single-cta-button {
    border: 0;
    cursor: pointer;
}

.single-cta-note,
.single-copy {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.single-steps {
    padding-left: 1.25rem;
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.single-summary-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.9rem;
}

.single-summary-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(88, 124, 40, 0.1);
}

.single-summary-list li span {
    color: var(--muted);
}

/* Pagination */
.pagination .page-link {
    color: var(--brand-dark);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.7rem 1rem;
    margin: 0 0.2rem;
}

.pagination .page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* Footer */
.footer-shell {
    margin-top: 3rem;
    padding: 3rem 0 1.5rem;
    background: linear-gradient(180deg, #19391a 0%, #112b11 100%);
    color: #fff;
}

.footer-link {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
}

.footer-link:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 1199px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .single-shell {
        grid-template-columns: 1fr;
    }

    .single-brand-panel {
        min-height: 180px;
    }

    .coupon-strip {
        grid-template-columns: 180px minmax(0, 1fr) 250px;
    }
}

@media (max-width: 991px) {
    .home-hero-copy,
    .hero-highlight,
    .single-shell,
    .content-card {
        padding: 1.5rem;
    }

    .coupon-strip {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .coupon-strip-content {
        padding: 1.2rem 1.5rem 0.75rem;
    }

    .coupon-strip-action {
        padding: 0 1.5rem 1.5rem;
    }
}

@media (max-width: 767px) {
    .home-hero.py-4,
    .home-hero.py-5,
    .page-intro.py-5,
    .coupon-single-hero.py-5 {
        padding-top: 1.1rem !important;
        padding-bottom: 1.35rem !important;
    }

    .home-hero-grid {
        gap: 1rem;
    }

    .home-hero-copy,
    .hero-highlight {
        border-radius: 22px;
        padding: 1.15rem;
    }

    .home-hero-copy h1,
    .page-intro h1,
    .single-title {
        font-size: 1.75rem;
        line-height: 1.08;
        margin: 0.8rem 0 0.55rem;
    }

    .home-hero-copy p,
    .hero-highlight p,
    .page-intro p,
    .single-description {
        font-size: 0.93rem;
        line-height: 1.55;
    }

    .home-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.7rem;
        margin-top: 1rem;
    }

    .home-hero-actions .btn {
        width: 100%;
        min-height: 50px;
    }

    .hero-highlight-header {
        gap: 0.6rem;
        font-size: 0.82rem;
    }

    .hero-highlight h2 {
        font-size: 1.25rem;
        line-height: 1.18;
        margin: 0.75rem 0 0.5rem;
    }

    .hero-highlight-code,
    .single-code-box {
        border-radius: 14px;
        padding: 0.8rem 0.9rem;
        font-size: 0.9rem;
        letter-spacing: 0.14em;
    }

    .section-kicker {
        font-size: 0.72rem;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.7rem;
        margin-bottom: 1rem;
    }

    .section-head h2 {
        font-size: 1.8rem;
    }

    .section-head a {
        font-size: 0.92rem;
    }

    .coupon-stack {
        gap: 0.85rem;
    }

    .coupon-strip {
        grid-template-columns: 1fr;
        gap: 0;
        border-radius: 18px;
    }

    .coupon-strip-value,
    .coupon-strip-content,
    .coupon-strip-action {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .coupon-strip-value {
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 0.45rem;
        text-align: left;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        border-radius: 18px 18px 0 0;
    }

    .coupon-strip-store {
        margin: 0;
        font-size: 0.68rem;
    }

    .coupon-strip-value strong {
        font-size: 0.96rem;
        justify-self: end;
    }

    .coupon-strip-value small {
        margin: 0;
        justify-self: end;
        font-size: 0.74rem;
        opacity: 0.92;
    }

    .coupon-strip-content {
        padding-top: 0.75rem;
        padding-bottom: 0.55rem;
    }

    .coupon-strip-content h2,
    .coupon-strip-content h3 {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 0.45rem;
    }

    .coupon-strip-content p {
        font-size: 0.86rem;
        line-height: 1.45;
        margin-bottom: 0.7rem;
    }

    .coupon-strip-meta {
        gap: 0.35rem;
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.76rem;
    }

    .coupon-strip-action {
        padding-top: 0;
        padding-bottom: 0.9rem;
    }

    .coupon-cta {
        min-height: 48px;
        border-radius: 12px;
    }

    .coupon-cta span {
        font-size: 0.9rem;
    }

    .coupon-cta strong {
        min-width: 54px;
        font-size: 0.84rem;
    }

    .coupon-cta::after {
        right: 43px;
        width: 30px;
    }

    .single-shell {
        padding: 1rem;
        gap: 1rem;
        border-radius: 24px;
    }

    .single-brand-panel {
        min-height: 120px;
        border-radius: 22px;
    }

    .single-brand-mark {
        width: 120px;
        height: 120px;
    }

    .single-meta-line,
    .single-status-row {
        gap: 0.55rem;
        margin-top: 0.8rem;
    }

    .single-meta-chip,
    .single-status-badge {
        width: 100%;
        justify-content: center;
        font-size: 0.86rem;
        padding: 0.7rem 0.85rem;
    }

    .content-card {
        border-radius: 22px;
        padding: 1.25rem;
    }

    .single-steps {
        font-size: 0.94rem;
    }

    .single-summary-list li {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .pagination .page-link {
        padding: 0.62rem 0.9rem;
        font-size: 0.92rem;
    }
}