@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700;800&display=swap');

main > .container {
    padding: 70px 15px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.not-set {
    color: var(--bs-danger);
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px var(--bs-body-color);
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px var(--bs-body-color);
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: var(--bs-secondary-color);
}

.error-summary {
    color: var(--bs-danger-text-emphasis);
    background: var(--bs-danger-bg-subtle);
    border-left: 3px solid var(--bs-danger-border-subtle);
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align navbar brand baseline with nav links */
.navbar > .container,
.navbar > .container-fluid {
    align-items: baseline;
}

/* style navbar logout link color, hover state, and mobile layout */
.navbar-nav .nav-link.logout {
    color: var(--bs-navbar-color);
}

@media (max-width: 767.98px) {
    .navbar-nav .nav-link.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar-nav .nav-link.logout:focus,
.navbar-nav .nav-link.logout:hover {
    color: var(--bs-navbar-hover-color);
}



/* footer logo: light logo by default (light bg-body-tertiary), dark logo for dark theme */
.footer-logo-dark { display: none; }

[data-bs-theme="dark"] .footer-logo-light { display: none; }
[data-bs-theme="dark"] .footer-logo-dark  { display: inline-block; }

/* Yii brand button */
.btn-yii {
    background: linear-gradient(135deg, #40B3D8, #3a9cbd);
    border: none;
    font-weight: 600;
    letter-spacing: .02em;
    transition: opacity .2s, transform .1s;
}

.btn-yii:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.btn-yii:active {
    transform: translateY(0);
}

/* form inputs: seamless icon inside input (Volt style) */
.form-card .input-group {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-card .input-group .input-group-text {
    background: var(--bs-body-bg);
    border: 0;
    padding-left: 1rem;
    padding-right: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-card .input-group .form-control {
    border: 0;
}

.form-card .input-group .form-control:focus {
    box-shadow: none;
}

.form-card .input-group:focus-within {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}

/* validation styles for browsers that support :has() */
@supports selector(.input-group:has(.is-invalid)) {
    .form-card .input-group:has(.is-invalid) ~ .invalid-feedback {
        display: block;
        margin-top: .35rem;
        margin-bottom: .5rem;
    }

    .form-card .input-group:has(.is-invalid) {
        border-color: var(--bs-danger);
    }

    .form-card .input-group:has(.is-invalid):focus-within {
        box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
    }
}

/* fallback validation styles for browsers without :has() support */
@supports not selector(.input-group:has(.is-invalid)) {
    .form-card .invalid-feedback:not(:empty) {
        display: block;
        margin-top: .35rem;
        margin-bottom: .5rem;
    }

    .form-card .input-group .form-control.is-invalid {
        border: var(--bs-border-width) solid var(--bs-danger);
    }

    .form-card .input-group .form-control.is-invalid:focus {
        box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
    }
}

/* login inputs: seamless icon inside input (Volt style) */
.login-split-card .input-group {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.login-split-card .input-group .input-group-text {
    background: transparent;
    border: 0;
    padding-left: 1rem;
    padding-right: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-split-card .input-group .form-control {
    border: 0;
    background: transparent;
}

.login-split-card .input-group .form-control:focus {
    box-shadow: none;
}

.login-split-card .input-group:focus-within {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}

/* validation styles for login split card (browsers with :has()) */
@supports selector(.input-group:has(.is-invalid)) {
    .login-split-card .input-group:has(.is-invalid) ~ .invalid-feedback {
        display: block;
        margin-top: .35rem;
        margin-bottom: .5rem;
    }

    .login-split-card .input-group:has(.is-invalid) {
        border-color: var(--bs-danger);
    }

    .login-split-card .input-group:has(.is-invalid):focus-within {
        box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
    }
}

/* fallback validation styles for login split card (browsers without :has()) */
@supports not selector(.input-group:has(.is-invalid)) {
    .login-split-card .invalid-feedback:not(:empty) {
        display: block;
        margin-top: .35rem;
        margin-bottom: .5rem;
    }

    .login-split-card .input-group .form-control.is-invalid {
        border: var(--bs-border-width) solid var(--bs-danger);
    }

    .login-split-card .input-group .form-control.is-invalid:focus {
        box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
    }
}

/* login split card */
.login-split-card {
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .10);
    background-color: var(--bs-gray-100);
    width: 100%;
    max-width: 900px;
}

.login-split-card-wide {
    max-width: 960px;
}

.login-brand-title {
    font-size: 1.75rem;
    line-height: 1.3;
}

.login-brand-text {
    font-size: .9rem;
}

.login-brand-panel {
    background: linear-gradient(135deg, #40B3D8 0%, #3a9cbd 40%, #83C933 100%);
    position: relative;
    min-height: 480px;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(241, 138, 42, .25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(131, 201, 51, .2) 0%, transparent 40%);
    pointer-events: none;
}

.login-btn {
    background: linear-gradient(135deg, #40B3D8, #3a9cbd);
    border: none;
    font-weight: 600;
    letter-spacing: .02em;
    transition: opacity .2s, transform .1s;
}

.login-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

/* dark mode login card */
[data-bs-theme="dark"] .login-split-card {
    background-color: var(--bs-body-bg);
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 4px 24px rgba(0, 0, 0, .4);
}

[data-bs-theme="dark"] .login-mobile-logo {
    filter: invert(1);
}

/* contact form textarea height */
.site-contact textarea.form-control {
    height: 140px;
}

/* form cards */
.form-card {
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .10);
}

/* dark mode: elevate form cards against dark background */
[data-bs-theme="dark"] .form-card {
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 4px 24px rgba(0, 0, 0, .4);
}

/* captcha: blend with card background */
.site-contact img[src*="captcha"] {
    border-radius: var(--bs-border-radius);
    mix-blend-mode: multiply;
}

/* dark mode: invert captcha for visibility on dark background */
[data-bs-theme="dark"] .site-contact img[src*="captcha"] {
    mix-blend-mode: screen;
    filter: invert(1) hue-rotate(180deg);
}

/* centered page layout */
.site-login,
.site-signup,
.site-contact,
.site-request-password-reset,
.site-reset-password,
.site-resend-verification-email,
.site-index,
.site-error,
.site-about {
    flex: 1;
}

.site-error .site-error-content,
.site-about .site-about-content {
    width: 100%;
    max-width: 90%;
}

@media (min-width: 576px) {
    .site-error .site-error-content,
    .site-about .site-about-content {
        max-width: 80%;
    }
}

@media (min-width: 768px) {
    .site-error .site-error-content,
    .site-about .site-about-content {
        max-width: 60%;
    }
}

@media (min-width: 992px) {
    .site-error .site-error-content,
    .site-about .site-about-content {
        max-width: 50%;
    }
}

/* hero banner */
.hero-banner {
    background: linear-gradient(135deg, #83C933 0%, #3a9cbd 40%, #40B3D8 100%);
    position: relative;
}

.hero-lead {
    max-width: 520px;
}

.hero-logo {
    height: 120px;
    opacity: .45;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 15% 85%, rgba(241, 138, 42, .3) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(131, 201, 51, .25) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(64, 179, 216, .15) 0%, transparent 60%);
    pointer-events: none;
}

/* extension cards */
.extension-card {
    transition: transform .15s ease-in-out, box-shadow .15s ease-in-out;
}

.extension-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12) !important;
}

.extension-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* dark mode: extension cards */
[data-bs-theme="dark"] .extension-card {
    background-color: var(--bs-body-bg);
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 2px 8px rgba(0, 0, 0, .3);
}

[data-bs-theme="dark"] .extension-card:hover {
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 8px 24px rgba(0, 0, 0, .4) !important;
}

/* ==========================================================================
   PREMIUM LANDING PAGE STYLES (TUYIMGA KELING) - LUXURY OVERHAUL
   ========================================================================== */
/* Typography & Global Font Fallbacks */
:root {
    --bs-body-font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif !important;
    --bs-font-sans-serif: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif !important;
    --bs-headings-font-family: 'Cormorant Garamond', Georgia, Garamond, serif !important;
}

body {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif !important;
    color: #2D3748;
    background-color: #FDFBF7; /* Warm luxury ivory/champagne background */
    -webkit-font-smoothing: antialiased;
}

/* Primary romantic editorial headings (h1, h2, h3) */
h1, h2, h3, .h1, .h2, .h3, .hero-title, .section-title {
    font-family: 'Cormorant Garamond', Georgia, Garamond, serif !important;
    font-weight: 700;
    color: #1F2937;
    letter-spacing: -0.01em;
}

/* Luxury card titles and UI subtitles (h4, h5, h6) */
h4, h5, h6, .h4, .h5, .h6 {
    font-family: 'Cinzel', Georgia, serif !important;
    font-weight: 700;
    color: #1F2937;
    letter-spacing: 0.05em;
}

.font-sans {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif !important;
}

.font-serif {
    font-family: 'Cormorant Garamond', Georgia, Garamond, serif !important;
}

.font-branding {
    font-family: 'Cinzel', Georgia, serif !important;
    letter-spacing: 0.08em;
}

/* Premium Spacing & Margins */
.section-spacing {
    padding: 6.5rem 0;
}

/* Breathtaking Gold Gradients & Accents */
.text-gradient-gold {
    background: linear-gradient(135deg, #b8860b 0%, #d4af37 30%, #f3e5ab 70%, #aa7c11 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.bg-gradient-gold {
    background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
}

.bg-luxury-champagne {
    background: linear-gradient(180deg, #fdfcf9 0%, #f6ebd4 100%);
}

.border-luxury-gold {
    border: 1px solid rgba(212, 175, 55, 0.28) !important;
}

/* Premium Glassmorphic Container */
.glass-premium {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: 0 10px 40px rgba(162, 142, 110, 0.05);
}

/* Floating Animation Keyframe */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes goldPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.2); }
    70% { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Custom Navbar (Header) styling */
.custom-navbar {
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15) !important;
    padding: 0.9rem 1rem;
    transition: all 0.4s ease;
}

.custom-navbar .nav-link {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88) !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1.1rem !important;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.custom-navbar .nav-link:hover {
    color: #e5c158 !important;
    background: rgba(212, 175, 55, 0.08);
}

.custom-navbar .navbar-brand {
    font-family: 'Cinzel', 'Cormorant Garamond', Georgia, Garamond, serif;
    font-size: 1.55rem;
    letter-spacing: -0.5px;
    font-weight: 700;
}

/* Luxury Editorial Hero Section */
.hero-wrapper {
    margin-top: 3.5rem;
    background: radial-gradient(circle at top right, rgba(245, 238, 220, 0.85) 0%, transparent 70%),
                radial-gradient(circle at bottom left, rgba(230, 242, 255, 0.55) 0%, transparent 60%);
    border-radius: 30px;
    padding: 6rem 4rem;
    margin-bottom: 5rem;
    box-shadow: 0 20px 50px rgba(162, 142, 110, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

/* Luxury double frames in hero */
.hero-wrapper::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    pointer-events: none;
}

.hero-tagline {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #b8860b;
    font-weight: 700;
}

.hero-title {
    font-size: 3.75rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif;
    font-size: 1.22rem;
    color: #4B5563;
    line-height: 1.7;
    max-width: 650px;
}

/* Premium Section Titles */
.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.85rem;
}

.section-subtitle {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif;
    font-size: 1.15rem;
    color: #6B7280;
    max-width: 650px;
    margin: 0 auto 3.5rem auto;
    line-height: 1.6;
}

/* Premium Info Cards */
.premium-info-card {
    background: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.15) !important;
    border-radius: 20px;
    padding: 2.75rem 2.25rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(162, 142, 110, 0.03);
    position: relative;
    overflow: hidden;
}

.premium-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.premium-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(162, 142, 110, 0.08) !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
}

.premium-info-card:hover::before {
    opacity: 1;
}

.premium-info-card h4 {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif !important;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
}

.premium-info-card p {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif !important;
    color: #4B5563;
    line-height: 1.6;
}

/* Premium Feature Cards */
.premium-feature-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 22px;
    padding: 3rem 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01);
    height: 100%;
}

.premium-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(162, 142, 110, 0.1) !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
}

.feature-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffbeb 0%, #fde68a 100%);
    color: #b8860b;
    font-size: 1.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.25);
    transition: transform 0.4s ease;
}

.premium-feature-card:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif !important;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.9rem;
}

.feature-desc {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif !important;
    font-size: 1rem;
    color: #4B5563;
    line-height: 1.6;
}

/* Premium Template Cards */
.template-card {
    background: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(162, 142, 110, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 70px rgba(162, 142, 110, 0.12) !important;
    border-color: rgba(212, 175, 55, 0.7) !important;
}

.template-img-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #F9FAFB;
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.template-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.template-card:hover .template-img {
    transform: scale(1.08);
}

.template-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #fde68a;
    padding: 0.45rem 1rem;
    border-radius: 30px;
    font-family: 'Cinzel', 'Cormorant Garamond', Georgia, Garamond, serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.template-body {
    padding: 2.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.template-title {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif !important;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.75rem;
}

.template-desc {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif !important;
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

/* Feature elements inside card list */
.template-features-title {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #9CA3AF;
    font-weight: 700;
    margin-bottom: 1rem;
}

.template-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.template-features-list li {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.template-features-list li i {
    color: #10B981;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Luxury Price Box */
.template-price-box {
    border-top: 1px solid rgba(229, 231, 235, 0.8);
    padding-top: 1.5rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.template-price-label {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: #6B7280;
    font-weight: 600;
}

.template-price-value {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: #b8860b;
}

.template-price-free {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif;
    color: #10B981;
    font-weight: 800;
    font-size: 1.45rem;
}

/* Premium CTA buttons */
.btn-premium-primary {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
    border: none;
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.25);
    letter-spacing: 0.5px;
}

.btn-premium-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(184, 134, 11, 0.45) !important;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
}

.btn-premium-secondary {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif;
    background: #ffffff;
    border: 1px solid rgba(184, 134, 11, 0.5) !important;
    color: #b8860b !important;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.5px;
}

.btn-premium-secondary:hover {
    background: rgba(184, 134, 11, 0.06);
    border-color: #b8860b !important;
    transform: translateY(-3px);
}

/* Modern FAQ Accordion styling */
.custom-accordion {
    max-width: 850px;
    margin: 0 auto;
}

.custom-accordion .accordion-item {
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 16px !important;
    margin-bottom: 1.25rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(162, 142, 110, 0.02);
    transition: all 0.3s ease;
}

.custom-accordion .accordion-item:hover {
    border-color: rgba(212, 175, 55, 0.45) !important;
    box-shadow: 0 8px 25px rgba(162, 142, 110, 0.05);
}

.custom-accordion .accordion-button {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif !important;
    font-weight: 700;
    font-size: 1.15rem;
    color: #1F2937 !important;
    padding: 1.5rem 1.75rem;
    background: #ffffff !important;
    box-shadow: none !important;
    border: 0 !important;
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: #b8860b !important;
    background: rgba(245, 238, 220, 0.45) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15) !important;
}

.custom-accordion .accordion-button::after {
    background-size: 1.15rem;
}

.custom-accordion .accordion-body {
    padding: 1.5rem 1.75rem;
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif !important;
    font-size: 1rem;
    color: #4B5563 !important;
    line-height: 1.7;
    background: #ffffff !important;
}

/* Luxury Dark Contact Section */
.contact-wrapper {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0b0f19 100%) !important;
    border-radius: 30px;
    padding: 5.5rem 4rem;
    color: #ffffff !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.contact-wrapper::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 20px;
    pointer-events: none;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(212, 175, 55, 0.65) !important;
    transform: translateY(-6px);
}

.contact-icon {
    font-size: 2.5rem;
    color: #e5c158 !important;
    margin-bottom: 1.25rem;
}

.contact-name {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8 !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 1.25rem;
}

.contact-action-btn {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #e5c158 !important;
    text-decoration: none;
    transition: all 0.25s ease;
}

.contact-action-btn:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}

/* Ensure light colors inside dark contact wrapper in all conditions */
.contact-wrapper,
.contact-wrapper h2,
.contact-wrapper h3,
.contact-wrapper h4,
.contact-wrapper p,
.contact-wrapper span,
.contact-wrapper div:not(.contact-card) {
    color: #ffffff !important;
}

.contact-wrapper .contact-name {
    color: #94a3b8 !important;
}
.contact-wrapper .contact-value {
    color: #ffffff !important;
}
.contact-wrapper .contact-action-btn {
    color: #e5c158 !important;
}
.contact-wrapper .contact-action-btn:hover {
    color: #ffffff !important;
}

/* ==========================================================================
   THEME COMPATIBILITY & DARK MODE SUPPORT
   ========================================================================== */

[data-bs-theme="dark"] body {
    color: #F3F4F6 !important;
    background-color: #0b0f17 !important;
}

[data-bs-theme="dark"] h1, 
[data-bs-theme="dark"] h2, 
[data-bs-theme="dark"] h3, 
[data-bs-theme="dark"] h4, 
[data-bs-theme="dark"] h5, 
[data-bs-theme="dark"] h6 {
    color: #ffffff !important;
}

/* Specific Section Titles & Subtitles for Dark Theme */
[data-bs-theme="dark"] .section-title {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .section-subtitle {
    color: #9CA3AF !important;
}

/* Dark Mode card conversions */
[data-bs-theme="dark"] .premium-info-card,
[data-bs-theme="dark"] .premium-feature-card,
[data-bs-theme="dark"] .template-card,
[data-bs-theme="dark"] .custom-accordion .accordion-item {
    background-color: #111827 !important;
    border-color: rgba(212, 175, 55, 0.18) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

[data-bs-theme="dark"] .premium-info-card:hover,
[data-bs-theme="dark"] .premium-feature-card:hover,
[data-bs-theme="dark"] .template-card:hover,
[data-bs-theme="dark"] .custom-accordion .accordion-item:hover {
    border-color: rgba(212, 175, 55, 0.6) !important;
}

/* Dark mode text colors */
[data-bs-theme="dark"] .premium-info-card h4,
[data-bs-theme="dark"] .feature-title,
[data-bs-theme="dark"] .template-title {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .premium-info-card p,
[data-bs-theme="dark"] .feature-desc,
[data-bs-theme="dark"] .template-desc {
    color: #9CA3AF !important;
}

[data-bs-theme="dark"] .template-features-list li {
    color: #E5E7EB !important;
}

[data-bs-theme="dark"] .template-features-title {
    color: #6B7280 !important;
}

[data-bs-theme="dark"] .template-img-wrapper {
    background-color: #1F2937 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Accordion Dark Mode fixes */
[data-bs-theme="dark"] .custom-accordion .accordion-button {
    background-color: #111827 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .custom-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(184, 134, 11, 0.18) !important;
    color: #e5c158 !important;
}

[data-bs-theme="dark"] .custom-accordion .accordion-body {
    background-color: #111827 !important;
    color: #D1D5DB !important;
}

/* Dark Mode Hero overrides */
[data-bs-theme="dark"] .hero-wrapper {
    background: radial-gradient(circle at top right, rgba(184, 134, 11, 0.15) 0%, transparent 65%),
                radial-gradient(circle at bottom left, rgba(17, 24, 39, 0.9) 0%, transparent 60%) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

[data-bs-theme="dark"] .hero-description {
    color: #9CA3AF !important;
}

[data-bs-theme="dark"] .feature-icon-box {
    background: rgba(184, 134, 11, 0.15) !important;
    color: #e5c158 !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
}

[data-bs-theme="dark"] .template-price-box {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   MOBILE & RESPONSIVE LAYOUT OPTIMIZATIONS (0.85-0.9 SCALE OVERHAUL)
   ========================================================================== */

/* Medium Devices (Tablets & Landscape Mobile) */
@media (max-width: 991.98px) {
    html {
        font-size: 15px; /* ~94% scale */
    }
    
    .hero-wrapper {
        padding: 4rem 2.5rem;
        margin-bottom: 3.5rem;
    }
    
    .hero-title {
        font-size: 2.85rem;
    }
    
    .section-spacing {
        padding: 4.5rem 0;
    }
}

/* Small Devices (Portrait Phones) */
@media (max-width: 767.98px) {
    html {
        font-size: 14.4px; /* 90% scale */
    }
    
    .hero-wrapper {
        padding: 3rem 1.75rem;
        margin-bottom: 3rem;
        border-radius: 20px;
    }
    
    .hero-wrapper::after {
        inset: 8px;
        border-radius: 14px;
    }
    
    .hero-title {
        font-size: 2.35rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem !important;
    }
    
    .section-spacing {
        padding: 3.5rem 0;
    }
    
    .contact-wrapper {
        padding: 3.5rem 1.75rem;
        border-radius: 20px;
    }
    
    .contact-wrapper::after {
        inset: 8px;
        border-radius: 14px;
    }
    
    .contact-card {
        padding: 1.75rem;
    }
    
    .contact-value {
        font-size: 1.25rem;
    }
    
    .premium-info-card, 
    .premium-feature-card, 
    .template-card {
        padding: 2rem 1.5rem !important;
    }
    
    .template-body {
        padding: 1.5rem !important;
    }
}

/* Extra Small Devices (Tiny Phones) */
@media (max-width: 575.98px) {
    html {
        font-size: 13.6px; /* 85% scale */
    }
    
    .hero-wrapper {
        padding: 2.5rem 1.25rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .contact-wrapper {
        padding: 3rem 1.25rem;
    }
    
    .btn-premium-primary, 
    .btn-premium-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   TEMPLATE DETAIL VIEW PAGE SPECIFIC STYLES
   ========================================================================== */
.luxury-preview-wrapper {
    transition: all 0.4s ease;
}

.luxury-preview-wrapper:hover {
    box-shadow: 0 25px 60px rgba(162, 142, 110, 0.15) !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
}

.luxury-showcase-shadow {
    box-shadow: 0 15px 40px rgba(162, 142, 110, 0.12);
}

.luxury-portrait-showcase {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    box-shadow: 0 15px 45px rgba(162, 142, 110, 0.15) !important;
}

.luxury-portrait-showcase:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 30px 65px rgba(212, 175, 55, 0.28) !important;
    border-color: #d4af37 !important;
}

.btn-prestige-preview {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: #fde68a !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-prestige-preview:hover {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #d4af37 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.25) !important;
}

.luxury-spec-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.7);
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-spec-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 12px 28px rgba(162, 142, 110, 0.06);
}

.bg-luxury-tint {
    background: linear-gradient(135deg, #ffffff 0%, #FAF7F0 100%) !important;
    border-color: rgba(212, 175, 55, 0.22) !important;
}

.boutique-pricing-panel {
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.2);
}

.boutique-pricing-panel::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px dashed rgba(212, 175, 55, 0.18);
    border-radius: 20px;
    pointer-events: none;
}

.text-slate-light {
    color: #cbd5e1 !important;
}

.small-text {
    font-size: 0.75rem;
}

.fs-7 {
    font-size: 0.85rem;
}

.leading-relaxed {
    line-height: 1.75;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.max-width-700 {
    max-width: 700px;
}

.max-width-300 {
    max-width: 300px;
}

/* Dark Theme Specific Overrides for Detail View */
[data-bs-theme="dark"] .luxury-preview-wrapper {
    background: radial-gradient(circle at center, #111827 0%, #0b0f17 100%) !important;
    border-color: rgba(212, 175, 55, 0.22) !important;
}

[data-bs-theme="dark"] .luxury-spec-card {
    background-color: #111827 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] .bg-luxury-tint {
    background: linear-gradient(135deg, #111827 0%, #171e2e 100%) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
}

[data-bs-theme="dark"] .boutique-pricing-panel {
    border-color: rgba(212, 175, 55, 0.45) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35) !important;
}

[data-bs-theme="dark"] .list-group-item {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   IPHONE 15 PRO GOLD MOCKUP COMPONENT
   ========================================================================== */
.iphone-mockup-frame {
    position: relative;
    width: 275px;
    height: 550px;
    background: #0f172a;
    border: 11px solid #1e293b;
    border-radius: 42px;
    box-shadow: 0 25px 50px -12px rgba(162, 142, 110, 0.25), 0 0 0 3px #d4af37;
    margin: 0 auto;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.iphone-mockup-frame:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 35px 65px -10px rgba(212, 175, 55, 0.3), 0 0 0 4px #d4af37;
}

/* Dynamic Island Notch */
.iphone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 22px;
    background: #000000;
    border-radius: 20px;
    z-index: 10;
}

.iphone-notch::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1e293b;
}

/* iPhone Screen Area */
.iphone-screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    overflow-y: auto;
    border-radius: 32px;
    scrollbar-width: none;
}
.iphone-screen::-webkit-scrollbar {
    display: none;
}

/* Status Bar */
.iphone-status-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 38px;
    font-size: 0.68rem;
    color: #0f172a;
    z-index: 9;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, transparent 100%);
    pointer-events: none;
}

/* Dark mode adjustment for status bar text & mockup frames */
[data-bs-theme="dark"] .iphone-status-bar {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, transparent 100%);
}

[data-bs-theme="dark"] .iphone-mockup-frame {
    border-color: #0b0f19 !important;
    background-color: #000000 !important;
}

/* ==========================================================================
   PREMIUM CUSTOM PAGINATION OVERHAUL
   ========================================================================== */
.pagination {
    gap: 0.5rem; /* space out items slightly */
    margin: 3rem 0;
}

.pagination .page-item {
    border: none;
}

.pagination .page-item .page-link {
    font-family: 'Inter', 'Century Gothic', 'Segoe UI', sans-serif !important;
    font-weight: 700;
    color: #4B5563 !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(212, 175, 55, 0.22) !important;
    padding: 0.75rem 1.15rem !important;
    border-radius: 12px !important; /* Premium rounded corner matching btn-premium */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(162, 142, 110, 0.04);
}

/* Hover State */
.pagination .page-item .page-link:hover {
    color: #b8860b !important;
    background-color: #fdfcf9 !important;
    border-color: rgba(212, 175, 55, 0.6) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(162, 142, 110, 0.08);
}

/* Active State */
.pagination .page-item.active .page-link {
    color: #ffffff !important;
    background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 18px rgba(184, 134, 11, 0.3) !important;
    transform: translateY(-1px);
}

/* Disabled State */
.pagination .page-item.disabled .page-link {
    color: #9CA3AF !important;
    background-color: #F3F4F6 !important;
    border-color: rgba(229, 231, 235, 0.7) !important;
    box-shadow: none;
    opacity: 0.6;
    pointer-events: none;
    transform: none;
}

/* Dark Mode Support for Pagination */
[data-bs-theme="dark"] .pagination .page-item .page-link {
    color: #D1D5DB !important;
    background-color: #111827 !important;
    border-color: rgba(212, 175, 55, 0.18) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .pagination .page-item .page-link:hover {
    color: #fde68a !important;
    background-color: #1f2937 !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="dark"] .pagination .page-item.active .page-link {
    color: #ffffff !important;
    background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3) !important;
}

[data-bs-theme="dark"] .pagination .page-item.disabled .page-link {
    color: #4B5563 !important;
    background-color: #1f2937 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================================================
   PREMIUM DUST SEARCH & EDITORIAL HERO MOCKUP CARD OVERHAUL
   ========================================================================== */
.premium-search-group {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.22) !important;
    box-shadow: 0 4px 12px rgba(162, 142, 110, 0.03) !important;
    transition: all 0.3s ease;
}

.premium-search-group:focus-within {
    border-color: rgba(212, 175, 55, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15) !important;
}

.premium-search-group .input-group-text {
    background-color: #ffffff !important;
    border: none !important;
    padding-left: 1.1rem !important;
    padding-right: 0.6rem !important;
    color: #b8860b !important;
}

.premium-search-group .form-control {
    border: none !important;
    background-color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    color: #1F2937 !important;
}

.premium-search-group .form-control::placeholder {
    color: #9CA3AF !important;
}

/* Hero Editorial Mockup Card */
.hero-mockup-card {
    background-color: #ffffff !important;
    border-color: rgba(212, 175, 55, 0.25) !important;
    box-shadow: 0 20px 40px rgba(162, 142, 110, 0.06) !important;
}

.mockup-card-title {
    color: #1F2937 !important;
}

.mockup-card-text {
    color: #6B7280 !important;
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] .premium-search-group {
    border-color: rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

[data-bs-theme="dark"] .premium-search-group .input-group-text {
    background-color: #111827 !important;
    color: #fde68a !important;
}

[data-bs-theme="dark"] .premium-search-group .form-control {
    background-color: #111827 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .premium-search-group .form-control::placeholder {
    color: #4B5563 !important;
}

[data-bs-theme="dark"] .hero-mockup-card {
    background-color: #111827 !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .mockup-card-title {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .mockup-card-text {
    color: #9CA3AF !important;
}

/* Luxury Outline Button Overhaul */
.btn-luxury-outline {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-luxury-outline:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(184, 134, 11, 0.25) 100%) !important;
    border-color: #d4af37 !important;
    color: #fde68a !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2) !important;
    transform: translateY(-1px) !important;
}

