:root {
    --bg-dark: #04120c;
    --bg-card: rgba(8, 32, 23, 0.85);
    --bg-card-hover: rgba(14, 48, 35, 0.95);
    --emerald-deep: #07271b;
    --emerald-glow: #104933;
    --gold-primary: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #AA771C;
    --gold-gradient: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #AA771C 100%);
    --gold-gradient-soft: linear-gradient(135deg, rgba(243,229,171,0.15) 0%, rgba(212,175,55,0.05) 100%);
    --text-main: #EAEAEA;
    --text-muted: #A3B8B0;
    --border-gold: rgba(212, 175, 55, 0.35);
    --border-gold-bright: rgba(212, 175, 55, 0.8);
    --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.15);
    --font-title: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px 12px;
    /* Forest Art Deco geometric fan & diamond background pattern */
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(16, 73, 51, 0.35) 0%, transparent 70%),
        repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.03) 0, rgba(212, 175, 55, 0.03) 1px, transparent 0, transparent 50px),
        repeating-linear-gradient(-45deg, rgba(212, 175, 55, 0.03) 0, rgba(212, 175, 55, 0.03) 1px, transparent 0, transparent 50px);
    background-attachment: fixed;
}

/* Art Deco Border Container */
.deco-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid var(--border-gold);
    padding: 24px 16px;
    position: relative;
    background: rgba(4, 18, 12, 0.7);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

/* Art Deco Corner Ornaments */
.deco-wrapper::before,
.deco-wrapper::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid var(--gold-primary);
    pointer-events: none;
}

.deco-wrapper::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.deco-wrapper::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* Header Styling */
header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-gold);
    position: relative;
}

.deco-badge {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-light);
    background: var(--gold-gradient-soft);
    border: 1px solid var(--border-gold);
    padding: 6px 20px;
    margin-bottom: 12px;
    position: relative;
}

h1 {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 2px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
    font-weight: 300;
}

.art-deco-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    gap: 12px;
}

.art-deco-divider .line {
    height: 1px;
    width: 80px;
    background: var(--gold-gradient);
}

.art-deco-divider .diamond {
    width: 10px;
    height: 10px;
    background: var(--gold-primary);
    transform: rotate(45deg);
    box-shadow: 0 0 10px var(--gold-primary);
}

/* Section Titles */
.section-title {
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Cards Layout */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.tier-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.tier-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: var(--border-gold-bright);
    box-shadow: var(--shadow-gold);
}

.tier-card:hover::before {
    opacity: 1;
}

.tier-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border-gold);
}

.tier-name {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.tier-price-tag {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    font-family: var(--font-title);
}

.tier-price-subtitle {
    font-size: 0.8rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.tier-features {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.tier-features li {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tier-features li::before {
    content: '◆';
    color: var(--gold-primary);
    font-size: 0.7rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.badge-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 2px;
    margin-left: auto;
    white-space: nowrap;
}

.select-tier-btn {
    display: block;
    width: 100%;
    background: transparent;
    color: var(--gold-light);
    border: 1px solid var(--gold-primary);
    padding: 12px;
    font-family: var(--font-title);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.select-tier-btn:hover, .select-tier-btn.active {
    background: var(--gold-gradient);
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Interactive Estimator Panel */
.estimator-section {
    background: var(--emerald-deep);
    border: 1px solid var(--border-gold);
    padding: 30px 24px;
    margin-bottom: 40px;
    position: relative;
}

.estimator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

.estimator-group-title {
    font-family: var(--font-title);
    color: var(--gold-light);
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-gold);
    padding-bottom: 6px;
}

.toggle-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(4, 18, 12, 0.6);
    border: 1px solid var(--border-gold);
    padding: 12px 16px;
    margin-bottom: 12px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.toggle-option:hover {
    border-color: var(--gold-primary);
}

.toggle-option.included {
    border-color: var(--emerald-glow);
    background: rgba(7, 39, 27, 0.4);
    opacity: 0.8;
    pointer-events: none;
}

.toggle-option label {
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
}

.toggle-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.toggle-price {
    font-family: var(--font-title);
    font-size: 0.85rem;
    color: var(--gold-primary);
    white-space: nowrap;
    margin-left: 12px;
    min-width: 60px;
    text-align: right;
}

.toggle-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--gold-primary);
    background: transparent;
    cursor: pointer;
    position: relative;
    outline: none;
}

.toggle-checkbox:checked {
    background: var(--gold-primary);
}

.toggle-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: var(--bg-dark);
    font-weight: bold;
    font-size: 14px;
    top: -2px;
    left: 3px;
}

/* Summary Receipt Box */
.summary-box {
    background: rgba(4, 18, 12, 0.9);
    border: 2px solid var(--gold-primary);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.summary-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--gold-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 16px;
}

.summary-items-list {
    list-style: none;
    margin-bottom: 20px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 8px;
}

.summary-items-list li {
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px rgba(163, 184, 176, 0.2) solid;
}

.summary-total {
    border-top: 2px solid var(--gold-primary);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-title);
}

.summary-total-label {
    font-size: 1.1rem;
    color: var(--gold-light);
    letter-spacing: 1px;
}

.summary-total-price {
    font-size: 2rem;
    color: #FFFFFF;
    font-weight: 700;
}

/* Highlights / Key Specs Footer */
.specs-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border-gold);
}

.spec-item {
    text-align: center;
    background: rgba(8, 32, 23, 0.6);
    border: 1px solid var(--border-gold);
    padding: 16px;
}

.spec-value {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.spec-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
