/* ==========================================
   RUMBLEWEBSITES - MAIN STYLESHEET
   Modern, Professional Web Design
   ========================================== */

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Blues */
    --primary-blue: #0077ff;
    --primary-light-blue: #4cc9ff;
    --secondary-blue: #667eea;

    /* Pastel Colors */
    --pastel-purple: #764ba2;
    --pastel-pink: #f093fb;
    --pastel-mint: #4facfe;
    --pastel-yellow: #ffc107;
    --pastel-green: #38b000;

    /* Frosted White & Neutrals */
    --frosted-white: rgba(255, 255, 255, 0.85);
    --frosted-white-solid: #ffffff;
    --frosted-white-light: rgba(255, 255, 255, 0.95);
    --background-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);

    /* Text Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 80px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;

    /* Shadows */
    --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 32px 64px rgba(0, 0, 0, 0.16);

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-gradient);
    overflow-x: hidden;
    padding-top: 84px; /* Account for fixed navbar */
}

body.menu-open {
    overflow: hidden;
}

/* Theme switch transition window (enabled briefly by JS during toggle) */
html[data-theme-switching="true"] *,
html[data-theme-switching="true"] *::before,
html[data-theme-switching="true"] *::after {
    transition:
        background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        fill 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        stroke 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme-switching="true"] *,
    html[data-theme-switching="true"] *::before,
    html[data-theme-switching="true"] *::after {
        transition: none !important;
    }
}


/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
h4 { font-size: clamp(20px, 2.5vw, 24px); font-weight: 600; }
h5 { font-size: clamp(18px, 2vw, 20px); font-weight: 600; }
h6 { font-size: clamp(16px, 1.5vw, 18px); font-weight: 600; }

.subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 500;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light-blue) 50%, var(--secondary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   LAYOUT & CONTAINERS
   ========================================== */
.trg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.trg-section {
    padding: 120px 0;
}

.trg-section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.trg-section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.trg-section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   BUTTONS
   ========================================== */
.trg-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.trg-btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light-blue) 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 119, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

/* Shimmer sweep on hover */
.trg-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
    border-radius: inherit;
}

.trg-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 119, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    filter: brightness(1.08);
}

.trg-btn-primary:hover::after {
    transform: translateX(120%);
}

.trg-btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(0, 119, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    filter: brightness(0.96);
    transition: all 0.1s ease;
}

.trg-btn-primary:focus-visible {
    outline: 2px solid rgba(76, 201, 255, 0.85);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .trg-btn-primary::after {
        display: none;
    }
}

.trg-btn-secondary {
    background: var(--frosted-white);
    color: var(--text-secondary);
    border: 2px solid rgba(0, 119, 255, 0.2);
    backdrop-filter: blur(10px);
}

.trg-btn-secondary:hover {
    background: var(--frosted-white-solid);
    border-color: rgba(0, 119, 255, 0.4);
    transform: translateY(-2px);
}

.trg-btn-ghost {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.trg-btn-ghost:hover {
    background: var(--primary-blue);
    color: white;
}

/* ==========================================
   CARDS
   ========================================== */
.trg-card {
    background: linear-gradient(145deg, var(--frosted-white-solid) 0%, #f8fafc 100%);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    border: 1px solid rgba(0, 119, 255, 0.1);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.trg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light-blue) 100%);
}

.trg-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.trg-card-header {
    margin-bottom: var(--spacing-md);
}

.trg-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.trg-card-description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* ==========================================
   NAVBAR STYLES
   ========================================== */
.trg-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--frosted-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 119, 255, 0.1);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: var(--transition-smooth);
}

.trg-navbar.scrolled {
    background: var(--frosted-white-light);
    box-shadow: var(--shadow-lg);
}

.trg-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trg-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 24px;
}

.trg-logo img {
    width: 40px;
    height: 40px;
    margin-right: var(--spacing-md);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 119, 255, 0.2);
}

.trg-nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
}

.trg-nav-link {
    display: flex;
    align-items: center;
    padding: var(--spacing-md) 20px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.trg-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.1) 0%, rgba(76, 195, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trg-nav-link:hover::before {
    opacity: 1;
}

.trg-nav-link:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.15);
}

.trg-nav-link.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light-blue) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.3);
}

.trg-nav-link.active::before {
    display: none;
}

.trg-rumble-god-btn {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--pastel-purple) 100%);
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: var(--transition-smooth);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.trg-rumble-god-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

/* ==========================================
   CHATBOT STYLES
   ========================================== */
#trg-chatbot-toggle {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light-blue) 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 119, 255, 0.3);
    z-index: 1000;
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

#trg-chatbot-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 119, 255, 0.4);
}

/* Mobile chatbot button - fixed positioning */
#trg-mobile-chatbot-btn {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important; /* Match desktop chatbot positioning */
    left: auto !important; /* Override any conflicting left positioning */
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light-blue) 100%);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 119, 255, 0.3);
    z-index: 1000;
    text-decoration: none;
    color: white;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

#trg-mobile-chatbot-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 119, 255, 0.4);
}

.trg-chatbot-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border: 2px solid rgba(0, 119, 255, 0.6);
    border-radius: 50%;
    animation: trgPulse 2s infinite;
    z-index: 1;
}

@keyframes trgPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* ==========================================
   FOOTER STYLES
   ========================================== */
.trg-footer {
    background: linear-gradient(145deg, var(--frosted-white-solid) 0%, #f8fafc 100%);
    border-top: 1px solid rgba(0, 119, 255, 0.1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
    margin-top: var(--spacing-3xl);
    position: relative;
    overflow: hidden;
}

.trg-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-light-blue) 50%, var(--primary-blue) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

/* ==========================================
   PRICING STYLES
   ========================================== */
.trg-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-2xl) 0;
}

.trg-pricing-card {
    background: linear-gradient(145deg, var(--frosted-white-solid) 0%, #f8fafc 100%);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    border: 1px solid rgba(0, 119, 255, 0.1);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.trg-pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.trg-pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light-blue) 100%);
}

.trg-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.trg-price-amount {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-blue);
    margin: var(--spacing-sm) 0;
}

.trg-price-period {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
}

/* ==========================================
   HERO STYLES
   ========================================== */
.trg-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--background-gradient);
    overflow: hidden;
}

.trg-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 119, 255, 0.1) 0%, transparent 70%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.trg-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ==========================================
   REVIEWS SYSTEM
   ========================================== */
.trg-reviews-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 120px 0;
}

.trg-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.trg-review-card {
    background: var(--frosted-white-light);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.trg-review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.trg-stars {
    color: var(--pastel-yellow);
    font-size: 18px;
    margin-bottom: var(--spacing-sm);
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    body {
        padding-top: 84px;
    }

    .trg-hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .trg-nav-menu {
        position: fixed;
        top: 84px;
        left: 0;
        right: 0;
        background: var(--frosted-white-light);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 119, 255, 0.1);
        flex-direction: column;
        padding: 20px var(--spacing-md);
        gap: var(--spacing-sm);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-lg);
    }

    .trg-nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .trg-nav-link {
        justify-content: center;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 16px;
    }

    .trg-mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: var(--spacing-xs);
        border-radius: var(--radius-sm);
        transition: var(--transition-fast);
    }

    .trg-mobile-menu-toggle:hover {
        background: rgba(0, 119, 255, 0.1);
    }

    .trg-hamburger {
        width: 24px;
        height: 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }

    .trg-hamburger span {
        width: 100%;
        height: 2px;
        background: var(--text-secondary);
        border-radius: 2px;
        transition: var(--transition-fast);
    }

    .trg-mobile-menu-toggle.active .trg-hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .trg-mobile-menu-toggle.active .trg-hamburger span:nth-child(2) {
        opacity: 0;
    }

    .trg-mobile-menu-toggle.active .trg-hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Show mobile chatbot button, hide desktop */
    #trg-mobile-chatbot-btn {
        display: flex;
    }

    #trg-chatbot-toggle,
    .trg-chatbot-toggle-btn {
        display: none !important;
    }

    .trg-pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .trg-pricing-card.featured {
        transform: none;
    }

    .trg-pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .trg-section {
        padding: 80px 0;
    }
}

@media (min-width: 769px) {
    .trg-mobile-menu-toggle {
        display: none;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.hidden { display: none; }
.visible { display: block; }

/* ==========================================
   ANIMATIONS & EFFECTS
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.floating {
    animation: cardFloat 6s ease-in-out infinite;
}

/* ==========================================
   FORM STYLES
   ========================================== */
.trg-form {
    background: var(--frosted-white-light);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 119, 255, 0.1);
    box-shadow: var(--shadow-md);
}

.trg-form-group {
    margin-bottom: var(--spacing-md);
}

.trg-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.trg-form-input {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 16px;
    background: var(--frosted-white-solid);
    transition: var(--transition-fast);
}

.trg-form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.1);
}

.trg-form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================
   LOADING STATES
   ========================================== */
.trg-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   PAYFAST INTEGRATION STYLES
   ========================================== */
.payfast-form {
    display: inline-block;
}

.payfast-button {
    background: linear-gradient(135deg, var(--pastel-green) 0%, #4caf50 100%);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    box-shadow: 0 8px 20px rgba(56, 176, 0, 0.3);
}

.payfast-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(56, 176, 0, 0.4);
}

/* ==========================================
   PAGE TRANSITION SYSTEM
   Cross-browser compatible (Safari, Chrome, Firefox, Edge, Mobile)
   ========================================== */

.trg-page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0077ff 0%, #4cc9ff 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    /* Cross-browser transitions - smooth fade in/out */
    -webkit-transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                        visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                     visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    /* Safari fix for backdrop blur */
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
}

.trg-page-transition-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.trg-transition-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 10;
}

.trg-transition-logo {
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    /* Cross-browser animations - smooth continuous spin */
    -webkit-animation: logoSpinFloat 2.5s linear infinite;
    -moz-animation: logoSpinFloat 2.5s linear infinite;
    animation: logoSpinFloat 2.5s linear infinite;
    /* Cross-browser filter */
    -webkit-filter: drop-shadow(0 30px 80px rgba(255, 255, 255, 0.5));
    filter: drop-shadow(0 30px 80px rgba(255, 255, 255, 0.5));
    position: relative;
    z-index: 10;
}

/* Safari/Chrome keyframes */
@-webkit-keyframes logoFloat {
    0%, 100% {
        -webkit-transform: translateY(0px) scale(1);
        transform: translateY(0px) scale(1);
    }
    50% {
        -webkit-transform: translateY(-15px) scale(1.05);
        transform: translateY(-15px) scale(1.05);
    }
}

/* Standard keyframes */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

/* Logo float and spin animation - Safari/Chrome */
@-webkit-keyframes logoFloatSpin {
    0% {
        -webkit-transform: translateY(0px) scale(1) rotate(0deg);
        transform: translateY(0px) scale(1) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(-20px) scale(1.05) rotate(180deg);
        transform: translateY(-20px) scale(1.05) rotate(180deg);
    }
    100% {
        -webkit-transform: translateY(0px) scale(1) rotate(360deg);
        transform: translateY(0px) scale(1) rotate(360deg);
    }
}

/* Logo float and spin animation - Standard */
@keyframes logoFloatSpin {
    0% {
        transform: translateY(0px) scale(1) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) scale(1.05) rotate(180deg);
    }
    100% {
        transform: translateY(0px) scale(1) rotate(360deg);
    }
}

/* Smooth continuous spin - Safari/Chrome */
@-webkit-keyframes logoSmoothSpin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* Smooth continuous spin - Standard */
@keyframes logoSmoothSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Combined spin and float animation - Safari/Chrome */
@-webkit-keyframes logoSpinFloat {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        -webkit-transform: translateY(-15px) rotate(90deg);
        transform: translateY(-15px) rotate(90deg);
    }
    50% {
        -webkit-transform: translateY(-20px) rotate(180deg);
        transform: translateY(-20px) rotate(180deg);
    }
    75% {
        -webkit-transform: translateY(-15px) rotate(270deg);
        transform: translateY(-15px) rotate(270deg);
    }
    100% {
        -webkit-transform: translateY(0px) rotate(360deg);
        transform: translateY(0px) rotate(360deg);
    }
}

/* Combined spin and float animation - Standard */
@keyframes logoSpinFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(90deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    75% {
        transform: translateY(-15px) rotate(270deg);
    }
    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

.trg-transition-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    opacity: 0.9;
    -webkit-animation: textPulse 1.5s ease-in-out infinite;
    animation: textPulse 1.5s ease-in-out infinite;
}

@-webkit-keyframes textPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes textPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Slide animations with vendor prefixes */
.trg-page-slide-out-left {
    -webkit-animation: slideOutLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation: slideOutLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.trg-page-slide-out-right {
    -webkit-animation: slideOutRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation: slideOutRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.trg-page-slide-in-left {
    -webkit-animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.trg-page-slide-in-right {
    -webkit-animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Webkit/Safari keyframes */
@-webkit-keyframes slideOutLeft {
    from {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
    to {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

@-webkit-keyframes slideOutRight {
    from {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
    to {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@-webkit-keyframes slideInLeft {
    from {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@-webkit-keyframes slideInRight {
    from {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Animated colorful circles */
.trg-transition-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.trg-circle-1 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.8), rgba(255, 107, 107, 0));
    top: 10%;
    left: 15%;
    -webkit-animation: circleFloat1 4s ease-in-out infinite;
    animation: circleFloat1 4s ease-in-out infinite;
}

.trg-circle-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.8), rgba(78, 205, 196, 0));
    top: 60%;
    right: 10%;
    -webkit-animation: circleFloat2 5s ease-in-out infinite;
    animation: circleFloat2 5s ease-in-out infinite;
}

.trg-circle-3 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 195, 113, 0.8), rgba(255, 195, 113, 0));
    bottom: 15%;
    left: 20%;
    -webkit-animation: circleFloat3 3.5s ease-in-out infinite;
    animation: circleFloat3 3.5s ease-in-out infinite;
}

.trg-circle-4 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(162, 155, 254, 0.8), rgba(162, 155, 254, 0));
    top: 20%;
    right: 25%;
    -webkit-animation: circleFloat4 4.5s ease-in-out infinite;
    animation: circleFloat4 4.5s ease-in-out infinite;
}

.trg-circle-5 {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(255, 107, 237, 0.8), rgba(255, 107, 237, 0));
    bottom: 25%;
    right: 15%;
    -webkit-animation: circleFloat5 3.8s ease-in-out infinite;
    animation: circleFloat5 3.8s ease-in-out infinite;
}

/* White animated particles */
.trg-transition-particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.9;
    z-index: 2;
    pointer-events: none;
}

.trg-particle-1 {
    width: 8px;
    height: 8px;
    top: 30%;
    left: 10%;
    -webkit-animation: particleFloat1 2s ease-in-out infinite;
    animation: particleFloat1 2s ease-in-out infinite;
}

.trg-particle-2 {
    width: 6px;
    height: 6px;
    top: 70%;
    left: 30%;
    -webkit-animation: particleFloat2 2.5s ease-in-out infinite;
    animation: particleFloat2 2.5s ease-in-out infinite;
}

.trg-particle-3 {
    width: 10px;
    height: 10px;
    top: 40%;
    right: 20%;
    -webkit-animation: particleFloat3 3s ease-in-out infinite;
    animation: particleFloat3 3s ease-in-out infinite;
}

.trg-particle-4 {
    width: 7px;
    height: 7px;
    top: 80%;
    right: 35%;
    -webkit-animation: particleFloat4 2.2s ease-in-out infinite;
    animation: particleFloat4 2.2s ease-in-out infinite;
}

.trg-particle-5 {
    width: 9px;
    height: 9px;
    bottom: 30%;
    left: 40%;
    -webkit-animation: particleFloat5 2.8s ease-in-out infinite;
    animation: particleFloat5 2.8s ease-in-out infinite;
}

.trg-particle-6 {
    width: 5px;
    height: 5px;
    top: 15%;
    left: 50%;
    -webkit-animation: particleFloat6 3.2s ease-in-out infinite;
    animation: particleFloat6 3.2s ease-in-out infinite;
}

.trg-particle-7 {
    width: 8px;
    height: 8px;
    bottom: 20%;
    right: 45%;
    -webkit-animation: particleFloat7 2.6s ease-in-out infinite;
    animation: particleFloat7 2.6s ease-in-out infinite;
}

.trg-particle-8 {
    width: 6px;
    height: 6px;
    top: 55%;
    left: 25%;
    -webkit-animation: particleFloat8 3.4s ease-in-out infinite;
    animation: particleFloat8 3.4s ease-in-out infinite;
}

/* Circle float animations */
@-webkit-keyframes circleFloat1 {
    0%, 100% { -webkit-transform: translate(0, 0) scale(1); transform: translate(0, 0) scale(1); }
    50% { -webkit-transform: translate(-30px, -40px) scale(1.2); transform: translate(-30px, -40px) scale(1.2); }
}
@keyframes circleFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -40px) scale(1.2); }
}

@-webkit-keyframes circleFloat2 {
    0%, 100% { -webkit-transform: translate(0, 0) scale(1); transform: translate(0, 0) scale(1); }
    50% { -webkit-transform: translate(40px, 30px) scale(1.3); transform: translate(40px, 30px) scale(1.3); }
}
@keyframes circleFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.3); }
}

@-webkit-keyframes circleFloat3 {
    0%, 100% { -webkit-transform: translate(0, 0) scale(1); transform: translate(0, 0) scale(1); }
    50% { -webkit-transform: translate(-20px, 35px) scale(1.15); transform: translate(-20px, 35px) scale(1.15); }
}
@keyframes circleFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 35px) scale(1.15); }
}

@-webkit-keyframes circleFloat4 {
    0%, 100% { -webkit-transform: translate(0, 0) scale(1); transform: translate(0, 0) scale(1); }
    50% { -webkit-transform: translate(35px, -25px) scale(1.25); transform: translate(35px, -25px) scale(1.25); }
}
@keyframes circleFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(35px, -25px) scale(1.25); }
}

@-webkit-keyframes circleFloat5 {
    0%, 100% { -webkit-transform: translate(0, 0) scale(1); transform: translate(0, 0) scale(1); }
    50% { -webkit-transform: translate(-35px, -30px) scale(1.2); transform: translate(-35px, -30px) scale(1.2); }
}
@keyframes circleFloat5 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-35px, -30px) scale(1.2); }
}

/* Particle float animations */
@-webkit-keyframes particleFloat1 {
    0%, 100% { -webkit-transform: translateY(0) translateX(0); transform: translateY(0) translateX(0); opacity: 0.9; }
    50% { -webkit-transform: translateY(-30px) translateX(20px); transform: translateY(-30px) translateX(20px); opacity: 0.4; }
}
@keyframes particleFloat1 {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.9; }
    50% { transform: translateY(-30px) translateX(20px); opacity: 0.4; }
}

@-webkit-keyframes particleFloat2 {
    0%, 100% { -webkit-transform: translateY(0) translateX(0); transform: translateY(0) translateX(0); opacity: 0.9; }
    50% { -webkit-transform: translateY(35px) translateX(-25px); transform: translateY(35px) translateX(-25px); opacity: 0.5; }
}
@keyframes particleFloat2 {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.9; }
    50% { transform: translateY(35px) translateX(-25px); opacity: 0.5; }
}

@-webkit-keyframes particleFloat3 {
    0%, 100% { -webkit-transform: translateY(0) translateX(0); transform: translateY(0) translateX(0); opacity: 0.9; }
    50% { -webkit-transform: translateY(-40px) translateX(-20px); transform: translateY(-40px) translateX(-20px); opacity: 0.3; }
}
@keyframes particleFloat3 {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.9; }
    50% { transform: translateY(-40px) translateX(-20px); opacity: 0.3; }
}

@-webkit-keyframes particleFloat4 {
    0%, 100% { -webkit-transform: translateY(0) translateX(0); transform: translateY(0) translateX(0); opacity: 0.9; }
    50% { -webkit-transform: translateY(25px) translateX(30px); transform: translateY(25px) translateX(30px); opacity: 0.6; }
}
@keyframes particleFloat4 {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.9; }
    50% { transform: translateY(25px) translateX(30px); opacity: 0.6; }
}

@-webkit-keyframes particleFloat5 {
    0%, 100% { -webkit-transform: translateY(0) translateX(0); transform: translateY(0) translateX(0); opacity: 0.9; }
    50% { -webkit-transform: translateY(-28px) translateX(22px); transform: translateY(-28px) translateX(22px); opacity: 0.4; }
}
@keyframes particleFloat5 {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.9; }
    50% { transform: translateY(-28px) translateX(22px); opacity: 0.4; }
}

@-webkit-keyframes particleFloat6 {
    0%, 100% { -webkit-transform: translateY(0) translateX(0); transform: translateY(0) translateX(0); opacity: 0.9; }
    50% { -webkit-transform: translateY(32px) translateX(-18px); transform: translateY(32px) translateX(-18px); opacity: 0.5; }
}
@keyframes particleFloat6 {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.9; }
    50% { transform: translateY(32px) translateX(-18px); opacity: 0.5; }
}

@-webkit-keyframes particleFloat7 {
    0%, 100% { -webkit-transform: translateY(0) translateX(0); transform: translateY(0) translateX(0); opacity: 0.9; }
    50% { -webkit-transform: translateY(-35px) translateX(-28px); transform: translateY(-35px) translateX(-28px); opacity: 0.4; }
}
@keyframes particleFloat7 {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.9; }
    50% { transform: translateY(-35px) translateX(-28px); opacity: 0.4; }
}

@-webkit-keyframes particleFloat8 {
    0%, 100% { -webkit-transform: translateY(0) translateX(0); transform: translateY(0) translateX(0); opacity: 0.9; }
    50% { -webkit-transform: translateY(38px) translateX(25px); transform: translateY(38px) translateX(25px); opacity: 0.6; }
}
@keyframes particleFloat8 {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.9; }
    50% { transform: translateY(38px) translateX(25px); opacity: 0.6; }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .trg-transition-logo {
        width: 70vw;
        height: 70vw;
        max-width: 400px;
        max-height: 400px;
    }

    .trg-transition-text {
        font-size: 16px;
    }

    /* Scale down circles and particles for mobile */
    .trg-transition-circle {
        transform: scale(0.7);
    }

    .trg-transition-particle {
        transform: scale(0.8);
    }
}

/* ==========================================
   ADAPTIVE PERFORMANCE TIERS
   Set via performance-monitor.js on <html data-perf="...">
   ========================================== */

/* Reduced tier: hide decorative circles & particles, keep logo spin */
[data-perf="reduced"] .trg-transition-circle,
[data-perf="reduced"] .trg-transition-particle {
    display: none;
}

/* Minimal tier: hide everything except the gradient fade overlay itself */
[data-perf="minimal"] .trg-transition-circle,
[data-perf="minimal"] .trg-transition-particle,
[data-perf="minimal"] .trg-transition-logo-container {
    display: none;
}
[data-perf="minimal"] .trg-page-transition-overlay {
    -webkit-transition: opacity 0.25s ease, visibility 0.25s ease;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* None tier: instant, no animation */
[data-perf="none"] .trg-page-transition-overlay {
    -webkit-transition: none !important;
    transition: none !important;
}
[data-perf="none"] .trg-transition-circle,
[data-perf="none"] .trg-transition-particle,
[data-perf="none"] .trg-transition-logo-container {
    display: none;
}

/* ==========================================
   ACCESSIBILITY: prefers-reduced-motion
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    .trg-page-transition-overlay {
        -webkit-transition: opacity 0.15s ease, visibility 0.15s ease !important;
        transition: opacity 0.15s ease, visibility 0.15s ease !important;
    }
    .trg-transition-logo {
        -webkit-animation: none !important;
        animation: none !important;
    }
    .trg-transition-circle,
    .trg-transition-particle {
        -webkit-animation: none !important;
        animation: none !important;
        display: none !important;
    }
    /* Disable hover/card transforms so content stays still */
    .trg-card,
    .trg-review-card,
    .trg-btn,
    .trg-btn-primary,
    .trg-btn-secondary,
    .trg-nav-link {
        transition: none !important;
        -webkit-transition: none !important;
    }
}

/* ==========================================
   SCROLL ENTRANCE ANIMATIONS
   Added to sections via shared-components.js IntersectionObserver
   Only active on full/reduced tiers
   ========================================== */
.trg-animate-in {
    opacity: 0;
    -webkit-transform: translateY(24px);
    transform: translateY(24px);
    -webkit-transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                        -webkit-transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.trg-animate-in.trg-visible {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

/* Stagger siblings */
.trg-animate-in:nth-child(2) { transition-delay: 0.08s; }
.trg-animate-in:nth-child(3) { transition-delay: 0.16s; }
.trg-animate-in:nth-child(4) { transition-delay: 0.24s; }
.trg-animate-in:nth-child(5) { transition-delay: 0.32s; }

/* Disable entrance animations on minimal/none tiers */
[data-perf="minimal"] .trg-animate-in,
[data-perf="none"] .trg-animate-in {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
    -webkit-transition: none;
    transition: none;
}

/* ==========================================
   DARK / LIGHT MODE THEME SYSTEM
   Professional layered dark palette
   ========================================== */

/*
  Dark mode colour layers:
  --dm-bg-0  #090d14  deepest background (behind everything)
  --dm-bg-1  #0f1623  body base
  --dm-bg-2  #161d2e  section alternates / sidebars
  --dm-bg-3  #1c2438  cards, panels
  --dm-bg-4  #22293e  elevated / hover states
  --dm-bg-5  #2a3148  tooltips, popovers

  Text:
  --dm-text-1  #f0f4fc  headings / primary
  --dm-text-2  #cdd5e0  body text
  --dm-text-3  #8a9ab5  secondary / muted
  --dm-text-4  #5a6a85  very muted / labels

  Borders:
  --dm-border-1  rgba(255,255,255,0.06)  subtle dividers
  --dm-border-2  rgba(255,255,255,0.11)  cards, panels
  --dm-border-3  rgba(255,255,255,0.18)  focus / active
*/

html[data-theme="dark"] {
    color-scheme: dark;

    /* Override CSS variables — beats per-page :root (higher specificity 0,1,1 vs 0,1,0) */
    --background-gradient:  linear-gradient(160deg, #090d14 0%, #0f1623 40%, #141b2a 100%);
    --text-primary:         #f0f4fc;
    --text-secondary:       #cdd5e0;
    --text-muted:           #8a9ab5;
    --text-light:           #5a6a85;
    --frosted-white:        rgba(28, 36, 56, 0.88);
    --frosted-white-solid:  #1c2438;
    --frosted-white-light:  rgba(34, 41, 62, 0.96);

    /* Portfolio / per-page vars */
    --card-bg:        rgba(28, 36, 56, 0.96);
    --secondary-bg:   #161d2e;
    --bg-primary:     #0f1623;
}

/* ---- BODY ---- */
html[data-theme="dark"] body {
    background: linear-gradient(160deg, #090d14 0%, #0f1623 40%, #141b2a 100%) !important;
    color: #cdd5e0;
}

/* ---- HEADINGS & TEXT ---- */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: #f0f4fc;
}

/* ---- DESKTOP NAVBAR ---- */
html[data-theme="dark"] .trg-navbar,
html[data-theme="dark"] .trg-navbar.scrolled {
    background: rgba(9, 13, 20, 0.98) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55) !important;
}
html[data-theme="dark"] .trg-nav-link {
    color: #8a9ab5 !important;
}
html[data-theme="dark"] .trg-nav-link:hover {
    color: #60a5fa !important;
    background: rgba(96, 165, 250, 0.08) !important;
    box-shadow: 0 4px 16px rgba(96, 165, 250, 0.12) !important;
}
html[data-theme="dark"] .trg-nav-link.active {
    color: #fff !important;
}
html[data-theme="dark"] .trg-logo {
    color: #f0f4fc !important;
}
html[data-theme="dark"] .trg-hamburger span {
    background: #8a9ab5 !important;
}
html[data-theme="dark"] .trg-nav-menu {
    background: rgba(9, 13, 20, 0.97) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
html[data-theme="dark"] .music-mute-btn {
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #8a9ab5 !important;
}
html[data-theme="dark"] .music-mute-btn:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

/* ---- MOBILE BOTTOM NAV ---- */
html[data-theme="dark"] .trg-mobile-bottom-nav {
    background: rgba(9, 13, 20, 0.97) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.55) !important;
}
html[data-theme="dark"] .trg-mobile-nav-label {
    color: #5a6a85 !important;
}
html[data-theme="dark"] .trg-mobile-nav-item[data-active="true"] .trg-mobile-nav-label,
html[data-theme="dark"] .trg-mobile-nav-item.active .trg-mobile-nav-label {
    color: #60a5fa !important;
}
html[data-theme="dark"] .trg-mobile-nav-item[data-active="true"] svg,
html[data-theme="dark"] .trg-mobile-nav-item.active svg {
    color: #60a5fa !important;
    fill: #60a5fa !important;
}
html[data-theme="dark"] .trg-active-dot {
    background: #60a5fa !important;
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.5) !important;
}

/* ---- MORE DRAWER (mobile) ---- */
html[data-theme="dark"] .trg-more-drawer {
    background: rgba(22, 29, 46, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6) !important;
}
html[data-theme="dark"] .trg-more-drawer-backdrop {
    background: rgba(0, 0, 0, 0.65) !important;
}
html[data-theme="dark"] .trg-more-drawer-handle {
    background: rgba(255, 255, 255, 0.12) !important;
}
html[data-theme="dark"] .trg-more-drawer-item {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="dark"] .trg-more-drawer-item:hover {
    background: rgba(96, 165, 250, 0.07) !important;
}
html[data-theme="dark"] .trg-more-drawer-icon-wrap {
    background: rgba(96, 165, 250, 0.1) !important;
}
html[data-theme="dark"] .trg-more-drawer-title {
    color: #f0f4fc !important;
}
html[data-theme="dark"] .trg-more-drawer-subtitle {
    color: #8a9ab5 !important;
}
html[data-theme="dark"] .trg-more-drawer-arrow {
    color: #5a6a85 !important;
}
html[data-theme="dark"] .trg-mobile-music-btn {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}
html[data-theme="dark"] .trg-mobile-music-icon,
html[data-theme="dark"] .trg-mobile-music-label {
    color: #7cc4ff !important;
    -webkit-text-fill-color: #7cc4ff !important;
}
html[data-theme="dark"] .trg-mobile-music-btn.muted {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}
html[data-theme="dark"] .trg-mobile-music-btn.muted .trg-mobile-music-icon,
html[data-theme="dark"] .trg-mobile-music-btn.muted .trg-mobile-music-label {
    color: #fca5a5 !important;
    -webkit-text-fill-color: #fca5a5 !important;
}

/* ---- GLOBAL CARDS & CONTAINERS ---- */
html[data-theme="dark"] .trg-card {
    background: linear-gradient(145deg, #1c2438 0%, #161d2e 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] .trg-btn-secondary {
    background: rgba(28, 36, 56, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #cdd5e0 !important;
}
html[data-theme="dark"] .trg-btn-secondary:hover {
    background: #22293e !important;
}

/* ---- FORMS ---- */
html[data-theme="dark"] .trg-form-input,
html[data-theme="dark"] .trg-form-textarea,
html[data-theme="dark"] .trg-form-select,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not([type="color"]) {
    background: #161d2e !important;
    color: #f0f4fc !important;
    border-color: rgba(255, 255, 255, 0.11) !important;
}
html[data-theme="dark"] input[type="file"].trg-form-input,
html[data-theme="dark"] .trg-form-input[type="file"] {
    background: #161d2e !important;
    color: #cdd5e0 !important;
    border-color: rgba(255, 255, 255, 0.11) !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #5a6a85 !important;
}
html[data-theme="dark"] .trg-form-label,
html[data-theme="dark"] label:not([class*="cv-style"]):not([class*="cv-color"]) {
    color: #cdd5e0 !important;
}
html[data-theme="dark"] .required {
    color: #fca5a5 !important;
}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus {
    border-color: rgba(96, 165, 250, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12) !important;
}

/* ---- PORTFOLIO PAGE ---- */
html[data-theme="dark"] .portfolio-card {
    background: #1c2438 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="dark"] .portfolio-card:hover {
    background: #22293e !important;
    border-color: rgba(96, 165, 250, 0.2) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5) !important;
}
html[data-theme="dark"] .portfolio-category-title {
    color: #f0f4fc !important;
}
html[data-theme="dark"] .portfolio-category-description {
    color: #8a9ab5 !important;
}
html[data-theme="dark"] .portfolio-category-header {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="dark"] .client-feature {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="dark"] .client-feature-label {
    color: #5a6a85 !important;
}
html[data-theme="dark"] .client-feature-value {
    color: #f0f4fc !important;
}
/* Dropdown expanded area */
html[data-theme="dark"] .portfolio-content {
    background: linear-gradient(145deg, #161d2e 0%, #131928 100%) !important;
}
/* Latest project card (hardcoded white gradient) */
html[data-theme="dark"] .portfolio-card.latest-project {
    background: linear-gradient(145deg, #1c2438 0%, #161d2e 100%) !important;
}

html[data-theme="dark"] .website-preview-container {
    background: #0f1623 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="dark"] .preview-header {
    background: #161d2e !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="dark"] .visit-website-btn {
    background: rgba(96, 165, 250, 0.08) !important;
    border-color: rgba(96, 165, 250, 0.2) !important;
    color: #60a5fa !important;
}
html[data-theme="dark"] .visit-website-btn:hover {
    background: rgba(96, 165, 250, 0.14) !important;
    border-color: rgba(96, 165, 250, 0.35) !important;
}
html[data-theme="dark"] .expand-icon {
    color: #5a6a85 !important;
}

/* ---- HOME HERO ---- */
html[data-theme="dark"] .trg-hero {
    background: linear-gradient(160deg, #090d14 0%, #0f1623 55%, #141b2a 100%) !important;
}
html[data-theme="dark"] .trg-hero::before {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.16) 0%, transparent 70%) !important;
}
html[data-theme="dark"] .trg-hero-container .subtitle {
    color: #cdd5e0 !important;
}
html[data-theme="dark"] .trg-stat {
    background: rgba(28, 36, 56, 0.86) !important;
    border-color: rgba(96, 165, 250, 0.2) !important;
}
html[data-theme="dark"] .trg-stat:hover {
    background: rgba(34, 41, 62, 0.92) !important;
    border-color: rgba(96, 165, 250, 0.32) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}
html[data-theme="dark"] .trg-stat-label {
    color: #8a9ab5 !important;
}

/* ---- VIDEO + SERVICES SECTIONS (home + mobile-home) ---- */
html[data-theme="dark"] .trg-video-showcase,
html[data-theme="dark"] .trg-services {
    background: rgba(15, 22, 35, 0.92) !important;
}
html[data-theme="dark"] .trg-video-container {
    background: linear-gradient(160deg, #1c2438 0%, #161d2e 100%) !important;
    border-color: rgba(96, 165, 250, 0.2) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme="dark"] .trg-section-title,
html[data-theme="dark"] .trg-service-title {
    color: #f0f4fc !important;
}
html[data-theme="dark"] .trg-section-subtitle,
html[data-theme="dark"] .trg-service-description,
html[data-theme="dark"] .trg-service-features li {
    color: #cdd5e0 !important;
}
html[data-theme="dark"] .trg-service-card {
    background: linear-gradient(160deg, #1c2438 0%, #161d2e 100%) !important;
    border-color: rgba(96, 165, 250, 0.2) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="dark"] .trg-service-card:hover {
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.55) !important;
}
html[data-theme="dark"] .trg-service-icon {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.14) 0%, rgba(56, 189, 248, 0.14) 100%) !important;
    color: #93c5fd !important;
}

/* ---- HOME FEATURED DESIGN SECTION ---- */
html[data-theme="dark"] .homepage-featured-design {
    background: linear-gradient(180deg, rgba(9, 13, 20, 0) 0%, rgba(15, 22, 35, 0.88) 100%) !important;
}
html[data-theme="dark"] .homepage-featured-shell {
    background: linear-gradient(160deg, #1c2438 0%, #161d2e 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38) !important;
}
html[data-theme="dark"] .homepage-featured-shell::before {
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 32%),
        radial-gradient(circle at bottom left, rgba(124, 58, 237, 0.12), transparent 28%) !important;
}
html[data-theme="dark"] .homepage-featured-kicker {
    background: rgba(99, 102, 241, 0.18) !important;
    color: #c4b5fd !important;
}
html[data-theme="dark"] .homepage-featured-subtitle {
    color: #93c5fd !important;
}
html[data-theme="dark"] .homepage-featured-description {
    color: #cdd5e0 !important;
}
html[data-theme="dark"] .homepage-featured-chip {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f0f4fc !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .homepage-featured-browser {
    background: #0f1623 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.46) !important;
}
html[data-theme="dark"] .homepage-featured-browser-bar {
    background: linear-gradient(160deg, #161d2e 0%, #1c2438 100%) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="dark"] .homepage-featured-url {
    color: #8a9ab5 !important;
}
html[data-theme="dark"] .homepage-featured-frame {
    background: #0f1623 !important;
}

/* ---- CV PAGE ---- */
html[data-theme="dark"] .cv-hero {
    background: linear-gradient(135deg, #090d14 0%, #0f1623 50%, #0d1420 100%) !important;
}
html[data-theme="dark"] .cv-section,
html[data-theme="dark"] section.cv-section {
    background: #0f1623 !important;
}
html[data-theme="dark"] .cv-section-alt {
    background: #161d2e !important;
}
html[data-theme="dark"] .cv-feature-card {
    background: #1c2438 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] .cv-feature-card h3 { color: #f0f4fc !important; }
html[data-theme="dark"] .cv-feature-card p  { color: #8a9ab5 !important; }
html[data-theme="dark"] .cv-pricing-card {
    background: #1c2438 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .cv-pricing-card h3     { color: #f0f4fc !important; }
html[data-theme="dark"] .cv-pricing-label       { color: #8a9ab5 !important; }
html[data-theme="dark"] .cv-pricing-features li {
    color: #cdd5e0 !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="dark"] .cv-payment-card {
    background: #1c2438 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .cv-payment-card h3,
html[data-theme="dark"] .cv-payment-card p { color: #cdd5e0 !important; }
html[data-theme="dark"] .cv-skill-tag {
    background: #22293e !important;
    color: #cdd5e0 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .cv-form-card {
    background: linear-gradient(160deg, #1c2438 0%, #161d2e 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38) !important;
}
html[data-theme="dark"] .cv-form-intro {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(56, 189, 248, 0.08) 100%) !important;
    border-color: rgba(96, 165, 250, 0.18) !important;
    color: #cdd5e0 !important;
}
html[data-theme="dark"] .cv-form-section-heading {
    color: #f0f4fc !important;
    border-bottom-color: rgba(96, 165, 250, 0.2) !important;
}
html[data-theme="dark"] .cv-dynamic-entry {
    background: rgba(15, 22, 35, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .cv-dynamic-entry-title {
    color: #93c5fd !important;
}
html[data-theme="dark"] .cv-dynamic-entry-remove {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.22) !important;
    color: #fca5a5 !important;
}
html[data-theme="dark"] .cv-dynamic-entry-remove:hover {
    background: rgba(239, 68, 68, 0.18) !important;
}
html[data-theme="dark"] .cv-add-entry-btn {
    background: rgba(15, 22, 35, 0.92) !important;
    border-color: rgba(96, 165, 250, 0.24) !important;
    color: #93c5fd !important;
}
html[data-theme="dark"] .cv-add-entry-btn:hover {
    background: rgba(96, 165, 250, 0.08) !important;
    border-color: rgba(96, 165, 250, 0.34) !important;
}
html[data-theme="dark"] .cv-style-label {
    background: linear-gradient(160deg, #1c2438 0%, #161d2e 100%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cdd5e0 !important;
}
html[data-theme="dark"] .cv-style-option input:checked + .cv-style-label {
    background: rgba(96, 165, 250, 0.1) !important;
    border-color: rgba(96, 165, 250, 0.45) !important;
    color: #93c5fd !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.14) !important;
}
html[data-theme="dark"] .cv-palette-label {
    background: #1c2438 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cdd5e0 !important;
}
html[data-theme="dark"] .cv-palette-option input:checked + .cv-palette-label {
    border-color: rgba(96, 165, 250, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.14) !important;
}
html[data-theme="dark"] .cv-checkbox-label {
    color: #cdd5e0 !important;
}
html[data-theme="dark"] .cv-contact-wrap p {
    color: #8a9ab5 !important;
}
html[data-theme="dark"] .cv-qty-wrap {
    background: rgba(15, 22, 35, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .cv-qty-label,
html[data-theme="dark"] .cv-qty-sub {
    color: #8a9ab5 !important;
}
html[data-theme="dark"] .cv-qty-display {
    color: #f0f4fc !important;
}
html[data-theme="dark"] .cv-watermark-note {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(251, 191, 36, 0.08) 100%) !important;
    border-color: rgba(245, 158, 11, 0.24) !important;
    color: #fcd34d !important;
}
html[data-theme="dark"] .cv-contact-wrap {
    color: #cdd5e0 !important;
}
html[data-theme="dark"] .cv-divider {
    color: #8a9ab5 !important;
}
html[data-theme="dark"] .cv-divider::before,
html[data-theme="dark"] .cv-divider::after {
    background: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .cv-form-toggle-btn {
    background: linear-gradient(160deg, #1c2438 0%, #161d2e 100%) !important;
    border-color: rgba(96, 165, 250, 0.2) !important;
    color: #93c5fd !important;
}
html[data-theme="dark"] .cv-form-toggle-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28) !important;
}
html[data-theme="dark"] .cv-style-radio-label {
    background: #1c2438 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f0f4fc !important;
}
html[data-theme="dark"] .cv-color-option-label {
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #f0f4fc !important;
}
html[data-theme="dark"] .cv-work-entry,
html[data-theme="dark"] .cv-education-entry,
html[data-theme="dark"] .cv-cert-entry {
    background: #161d2e !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .cv-form-section-title { color: #f0f4fc !important; }
html[data-theme="dark"] .cv-contact-info-box {
    background: #161d2e !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .cv-policy-note {
    background: rgba(22, 29, 46, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #8a9ab5 !important;
}

/* ---- FOOTER ---- */
html[data-theme="dark"] #trg-footer-container,
html[data-theme="dark"] footer,
html[data-theme="dark"] .trg-footer {
    background: #090d14 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="dark"] .trg-footer-logo,
html[data-theme="dark"] .trg-footer-logo a,
html[data-theme="dark"] .trg-footer-brand,
html[data-theme="dark"] .trg-footer-section h4 {
    color: #f0f4fc !important;
}
html[data-theme="dark"] .trg-footer-description,
html[data-theme="dark"] .trg-footer-links a,
html[data-theme="dark"] .trg-copyright,
html[data-theme="dark"] .trg-footer-bottom-links a {
    color: #8a9ab5 !important;
}
html[data-theme="dark"] .trg-footer-links a:hover,
html[data-theme="dark"] .trg-footer-bottom-links a:hover,
html[data-theme="dark"] .trg-contact-value a:hover {
    color: #7cc4ff !important;
}
html[data-theme="dark"] .trg-social-link {
    background: rgba(96, 165, 250, 0.1) !important;
    color: #7cc4ff !important;
}
html[data-theme="dark"] .trg-social-link:hover {
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(96, 165, 250, 0.22) !important;
}
html[data-theme="dark"] .trg-contact-item {
    background: rgba(96, 165, 250, 0.08) !important;
    border-color: rgba(96, 165, 250, 0.16) !important;
}
html[data-theme="dark"] .trg-contact-item:hover {
    background: rgba(96, 165, 250, 0.12) !important;
    border-color: rgba(96, 165, 250, 0.24) !important;
}
html[data-theme="dark"] .trg-contact-label {
    color: #5a6a85 !important;
}
html[data-theme="dark"] .trg-contact-value {
    color: #cdd5e0 !important;
}
html[data-theme="dark"] .trg-footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
}

/* ---- MOBILE FOOTER ---- */
html[data-theme="dark"] .trg-mobile-footer {
    background: linear-gradient(160deg, #090d14 0%, #0f1623 100%) !important;
    border-top-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="dark"] .trg-mobile-footer-tagline,
html[data-theme="dark"] .trg-mobile-footer-copyright p {
    color: #8a9ab5 !important;
}
html[data-theme="dark"] .trg-mobile-social-link {
    background: rgba(96, 165, 250, 0.1) !important;
    color: #7cc4ff !important;
}
html[data-theme="dark"] .trg-mobile-footer-link,
html[data-theme="dark"] .trg-mobile-contact-item {
    background: rgba(96, 165, 250, 0.08) !important;
    border-color: rgba(96, 165, 250, 0.16) !important;
}
html[data-theme="dark"] .trg-mobile-footer-link,
html[data-theme="dark"] .trg-mobile-contact-value {
    color: #cdd5e0 !important;
}
html[data-theme="dark"] .trg-mobile-contact-label {
    color: #5a6a85 !important;
}
html[data-theme="dark"] .trg-mobile-contact-icon {
    color: #7cc4ff !important;
}
html[data-theme="dark"] .trg-mobile-footer-copyright {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
}

/* ---- SCROLL TO TOP ---- */
html[data-theme="dark"] #trg-scroll-top-btn {
    background: linear-gradient(135deg, #1c2438, #161d2e) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #8a9ab5 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

/* ---- CHATBOT ---- */
html[data-theme="dark"] #trg-mobile-chatbot-btn {
    background: linear-gradient(135deg, #1c2438, #22293e) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ---- INLINE STYLE OVERRIDES (attribute selectors) ---- */
/* These catch hardcoded hex values in inline styles */

/* Dark → light text */
html[data-theme="dark"] *[style*="color: #1a1a1a"]  { color: #f0f4fc !important; }
html[data-theme="dark"] *[style*="color: #4b5563"]  { color: #cdd5e0 !important; }
html[data-theme="dark"] *[style*="color: #374151"]  { color: #cdd5e0 !important; }
html[data-theme="dark"] *[style*="color: #4a5568"]  { color: #cdd5e0 !important; }
html[data-theme="dark"] *[style*="color: #6b7280"]  { color: #8a9ab5 !important; }
html[data-theme="dark"] *[style*="color: #9ca3af"]  { color: #5a6a85 !important; }
html[data-theme="dark"] *[style*="color: #64748b"]  { color: #8a9ab5 !important; }
html[data-theme="dark"] *[style*="color: #475569"]  { color: #8a9ab5 !important; }
html[data-theme="dark"] *[style*="color: #78716c"]  { color: #a8a29e !important; }
html[data-theme="dark"] *[style*="color: #1e293b"]  { color: #f0f4fc !important; }
html[data-theme="dark"] *[style*="color: #1f2937"]  { color: #f0f4fc !important; }
html[data-theme="dark"] *[style*="color: #1a2530"]  { color: #f0f4fc !important; }
html[data-theme="dark"] *[style*="color: #92400e"]  { color: #fbbf24 !important; }
html[data-theme="dark"] *[style*="color: #78350f"]  { color: #fbbf24 !important; }
html[data-theme="dark"] *[style*="color: var(--text-primary)"]    { color: #f0f4fc !important; }
html[data-theme="dark"] *[style*="color: var(--text-secondary)"]  { color: #cdd5e0 !important; }
html[data-theme="dark"] *[style*="color: var(--text-muted)"]      { color: #8a9ab5 !important; }

/* Light section/container backgrounds → dark layers */
html[data-theme="dark"] *[style*="background: linear-gradient(135deg, #f8fafc"] {
    background: linear-gradient(160deg, #090d14 0%, #0f1623 100%) !important;
}
html[data-theme="dark"] *[style*="background: linear-gradient(135deg, #f0fdf4"] {
    background: linear-gradient(160deg, #091409 0%, #0f1623 100%) !important;
}
html[data-theme="dark"] *[style*="background: linear-gradient(135deg, #f0f9ff"] {
    background: linear-gradient(160deg, #090d14 0%, #0e1520 100%) !important;
}
html[data-theme="dark"] *[style*="background: linear-gradient(135deg, #eef2ff"] {
    background: linear-gradient(160deg, #0d0f1e 0%, #0f1623 100%) !important;
}
html[data-theme="dark"] *[style*="background: linear-gradient(135deg, rgba(248, 250, 252"] {
    background: linear-gradient(160deg, #0f1623 0%, #141b2a 100%) !important;
}
html[data-theme="dark"] *[style*="background: linear-gradient(135deg, rgba(226, 232, 240"] {
    background: linear-gradient(160deg, #0f1623 0%, #141b2a 100%) !important;
}
html[data-theme="dark"] *[style*="background: linear-gradient(135deg, rgba(102, 126, 234"] {
    background: linear-gradient(160deg, #161d2e 0%, #1c2438 100%) !important;
}
html[data-theme="dark"] *[style*="background: linear-gradient(135deg, rgba(118, 75, 162"] {
    background: linear-gradient(160deg, #1a1e33 0%, #1c2438 100%) !important;
}
html[data-theme="dark"] *[style*="background: linear-gradient(135deg, rgba(76, 201, 255"] {
    background: linear-gradient(160deg, #0f1f33 0%, #161d2e 100%) !important;
}
html[data-theme="dark"] *[style*="background: linear-gradient(135deg, rgba(0,119,255"] {
    background: linear-gradient(160deg, #0f1f33 0%, #161d2e 100%) !important;
}
html[data-theme="dark"] *[style*="background: linear-gradient(145deg, #ffffff"] {
    background: linear-gradient(160deg, #1c2438 0%, #161d2e 100%) !important;
}
html[data-theme="dark"] *[style*="background: linear-gradient(145deg, #f8fafc"] {
    background: linear-gradient(160deg, #161d2e 0%, #0f1623 100%) !important;
}
html[data-theme="dark"] *[style*="background: linear-gradient(145deg, #fff8e1"] {
    background: linear-gradient(160deg, #2b210f 0%, #1c2438 100%) !important;
}
html[data-theme="dark"] *[style*="background: linear-gradient(145deg, #f8fafc 0%, #ffffff"] {
    background: linear-gradient(160deg, #161d2e 0%, #1c2438 100%) !important;
}

/* Frosted glass / white rgba cards */
html[data-theme="dark"] *[style*="background: rgba(255, 255, 255"] {
    background: rgba(28, 36, 56, 0.92) !important;
}
html[data-theme="dark"] *[style*="background-color: rgba(255, 255, 255"] {
    background-color: rgba(28, 36, 56, 0.92) !important;
}
html[data-theme="dark"] *[style*="background: rgba(255,255,255"] {
    background: rgba(28, 36, 56, 0.92) !important;
}
html[data-theme="dark"] *[style*="background-color: rgba(255,255,255"] {
    background-color: rgba(28, 36, 56, 0.92) !important;
}

/* Solid white / near-white backgrounds */
html[data-theme="dark"] *[style*="background: #ffffff"]       { background: #1c2438 !important; }
html[data-theme="dark"] *[style*="background: white"]         { background: #1c2438 !important; }
html[data-theme="dark"] *[style*="background-color: #ffffff"] { background-color: #1c2438 !important; }
html[data-theme="dark"] *[style*="background-color: white"]   { background-color: #1c2438 !important; }
html[data-theme="dark"] *[style*="background-color: rgb(255, 255, 255)"] { background-color: #1c2438 !important; }
html[data-theme="dark"] *[style*="background-color: rgb(243, 244, 246)"] { background-color: #1a2336 !important; }
html[data-theme="dark"] *[style*="background: #f8fafc"]       { background: #161d2e !important; }
html[data-theme="dark"] *[style*="background: #eff6ff"]       { background: #161d2e !important; }
html[data-theme="dark"] *[style*="background: #dbeafe"]       { background: #1a2336 !important; }
html[data-theme="dark"] *[style*="background: #f0f9ff"]       { background: #0f1623 !important; }
html[data-theme="dark"] *[style*="background: #f0fdf4"]       { background: #091409 !important; }
html[data-theme="dark"] *[style*="background: #f1f5f9"]       { background: #1a2336 !important; }
html[data-theme="dark"] *[style*="background: #f3f4f6"]       { background: #1a2336 !important; }
html[data-theme="dark"] *[style*="background: #f9fafb"]       { background: #1a2336 !important; }
html[data-theme="dark"] *[style*="background: #ecfdf5"]       { background: #102218 !important; }
html[data-theme="dark"] *[style*="background: #e0f2fe"]       { background: #0f1f33 !important; }
html[data-theme="dark"] *[style*="background: #fee2e2"]       { background: #3a1f26 !important; }
html[data-theme="dark"] *[style*="background: #fecaca"]       { background: #4a222d !important; }
html[data-theme="dark"] *[style*="background: #fde68a"]       { background: #3f3114 !important; }
html[data-theme="dark"] *[style*="background: #fef3c7"]       { background: #3f3114 !important; }
html[data-theme="dark"] *[style*="background-color: #f1f5f9"] { background-color: #1a2336 !important; }
html[data-theme="dark"] *[style*="background-color: #f3f4f6"] { background-color: #1a2336 !important; }
html[data-theme="dark"] *[style*="background-color: #fee2e2"] { background-color: #3a1f26 !important; }
html[data-theme="dark"] *[style*="background-color: #fecaca"] { background-color: #4a222d !important; }

/* Coloured tinted backgrounds (keep hue, darken) */
html[data-theme="dark"] *[style*="background: rgba(0, 119, 255, 0.05)"]  { background: rgba(96, 165, 250, 0.06) !important; }
html[data-theme="dark"] *[style*="background: rgba(0, 119, 255, 0.06)"]  { background: rgba(96, 165, 250, 0.07) !important; }
html[data-theme="dark"] *[style*="background: rgba(0, 119, 255, 0.08)"]  { background: rgba(96, 165, 250, 0.08) !important; }
html[data-theme="dark"] *[style*="background: rgba(0, 119, 255, 0.1)"]   { background: rgba(96, 165, 250, 0.08) !important; }
html[data-theme="dark"] *[style*="background: rgba(0,119,255,0.05)"]     { background: rgba(96, 165, 250, 0.06) !important; }
html[data-theme="dark"] *[style*="background: rgba(0,119,255,0.06)"]     { background: rgba(96, 165, 250, 0.07) !important; }
html[data-theme="dark"] *[style*="background: rgba(0,119,255,0.08)"]     { background: rgba(96, 165, 250, 0.08) !important; }
html[data-theme="dark"] *[style*="background: rgba(0,119,255,0.1)"]      { background: rgba(96, 165, 250, 0.08) !important; }
html[data-theme="dark"] *[style*="background: rgba(59, 130, 246, 0.05)"] { background: rgba(59, 130, 246, 0.12) !important; }
html[data-theme="dark"] *[style*="background: rgba(59, 130, 246, 0.1)"]  { background: rgba(59, 130, 246, 0.16) !important; }
html[data-theme="dark"] *[style*="background: rgba(22, 163, 74, 0.06)"]  { background: rgba(22, 163, 74, 0.1) !important; }
html[data-theme="dark"] *[style*="background: rgba(22, 163, 74, 0.08)"]  { background: rgba(22, 163, 74, 0.12) !important; }
html[data-theme="dark"] *[style*="background: rgba(22,163,74,0.06)"]     { background: rgba(22, 163, 74, 0.1) !important; }
html[data-theme="dark"] *[style*="background: rgba(22,163,74,0.08)"]     { background: rgba(22, 163, 74, 0.12) !important; }
html[data-theme="dark"] *[style*="background: rgba(245, 158, 11, 0.06)"] { background: rgba(245, 158, 11, 0.08) !important; }
html[data-theme="dark"] *[style*="background: rgba(255, 152, 0, 0.05)"]  { background: rgba(245, 158, 11, 0.1) !important; }
html[data-theme="dark"] *[style*="background: rgba(255, 152, 0, 0.08)"]  { background: rgba(245, 158, 11, 0.14) !important; }
html[data-theme="dark"] *[style*="background: rgba(255, 152, 0, 0.12)"]  { background: rgba(245, 158, 11, 0.18) !important; }
html[data-theme="dark"] *[style*="background: rgba(245,158,11,0.06)"]    { background: rgba(245, 158, 11, 0.08) !important; }
html[data-theme="dark"] *[style*="background: rgba(255,152,0,0.05)"]     { background: rgba(245, 158, 11, 0.1) !important; }
html[data-theme="dark"] *[style*="background: rgba(255,152,0,0.08)"]     { background: rgba(245, 158, 11, 0.14) !important; }
html[data-theme="dark"] *[style*="background: rgba(255,152,0,0.12)"]     { background: rgba(245, 158, 11, 0.18) !important; }
html[data-theme="dark"] *[style*="background: rgba(34,197,94,0.08)"]     { background: rgba(34, 197, 94, 0.12) !important; }
html[data-theme="dark"] *[style*="background: rgba(37,211,102,0.3)"]     { background: rgba(37, 211, 102, 0.22) !important; }
html[data-theme="dark"] *[style*="background: rgba(0,119,255,0.3)"]      { background: rgba(96, 165, 250, 0.2) !important; }
html[data-theme="dark"] *[style*="background: rgba(0,119,255,0.35)"]     { background: rgba(96, 165, 250, 0.24) !important; }
html[data-theme="dark"] *[style*="background: rgba(0,119,255,0.4)"]      { background: rgba(96, 165, 250, 0.28) !important; }
html[data-theme="dark"] *[style*="background: rgba(0,119,255,0.5)"]      { background: rgba(96, 165, 250, 0.32) !important; }
html[data-theme="dark"] *[style*="background: rgba(102, 126, 234, 0.05)"] { background: rgba(129, 140, 248, 0.12) !important; }
html[data-theme="dark"] *[style*="background: rgba(102,126,234,0.05)"]    { background: rgba(129, 140, 248, 0.12) !important; }
html[data-theme="dark"] *[style*="background: rgba(102, 126, 234, 0.1)"]  { background: rgba(129, 140, 248, 0.16) !important; }
html[data-theme="dark"] *[style*="background: rgba(102,126,234,0.1)"]     { background: rgba(129, 140, 248, 0.16) !important; }
html[data-theme="dark"] *[style*="background: rgba(102, 126, 234, 0.15)"] { background: rgba(129, 140, 248, 0.2) !important; }
html[data-theme="dark"] *[style*="background: rgba(102,126,234,0.15)"]    { background: rgba(129, 140, 248, 0.2) !important; }
html[data-theme="dark"] *[style*="background: rgba(118, 75, 162, 0.05)"]  { background: rgba(168, 85, 247, 0.1) !important; }
html[data-theme="dark"] *[style*="background: rgba(118,75,162,0.05)"]     { background: rgba(168, 85, 247, 0.1) !important; }
html[data-theme="dark"] *[style*="background: rgba(76, 201, 255, 0.04)"]  { background: rgba(56, 189, 248, 0.1) !important; }
html[data-theme="dark"] *[style*="background: rgba(76,201,255,0.04)"]     { background: rgba(56, 189, 248, 0.1) !important; }
html[data-theme="dark"] *[style*="background: rgba(76, 201, 255, 0.08)"]  { background: rgba(56, 189, 248, 0.14) !important; }
html[data-theme="dark"] *[style*="background: rgba(76,201,255,0.08)"]     { background: rgba(56, 189, 248, 0.14) !important; }

/* Border colours on inline-styled elements */
html[data-theme="dark"] *[style*="border: 1px solid rgba(0, 119, 255, 0.1)"] {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] *[style*="border-color: rgba(0, 119, 255, 0.1)"] {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] *[style*="border: 1px solid rgba(0,119,255,0.1)"] {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] *[style*="border: 1px solid rgba(0,119,255,0.15)"] {
    border-color: rgba(96, 165, 250, 0.28) !important;
}
html[data-theme="dark"] *[style*="border: 2px solid rgba(0, 119, 255"] {
    border-color: rgba(96, 165, 250, 0.28) !important;
}
html[data-theme="dark"] *[style*="border: 2px solid rgba(0,119,255"] {
    border-color: rgba(96, 165, 250, 0.28) !important;
}
html[data-theme="dark"] *[style*="border: 1px solid rgba(255, 152, 0"] {
    border-color: rgba(245, 158, 11, 0.3) !important;
}
html[data-theme="dark"] *[style*="border: 1px solid rgba(255,152,0"] {
    border-color: rgba(245, 158, 11, 0.3) !important;
}
html[data-theme="dark"] *[style*="border: 2px solid rgba(255, 152, 0"] {
    border-color: rgba(245, 158, 11, 0.34) !important;
}
html[data-theme="dark"] *[style*="border: 2px solid rgba(255,152,0"] {
    border-color: rgba(245, 158, 11, 0.34) !important;
}
html[data-theme="dark"] *[style*="border: 1px solid rgba(22,163,74,0.18)"] {
    border-color: rgba(34, 197, 94, 0.28) !important;
}
html[data-theme="dark"] *[style*="border: 1px solid rgba(102, 126, 234, 0.1)"] {
    border-color: rgba(129, 140, 248, 0.24) !important;
}
html[data-theme="dark"] *[style*="border: 1px solid rgba(102,126,234,0.1)"] {
    border-color: rgba(129, 140, 248, 0.24) !important;
}
html[data-theme="dark"] *[style*="border: 1px solid rgba(102, 126, 234, 0.2)"] {
    border-color: rgba(129, 140, 248, 0.3) !important;
}
html[data-theme="dark"] *[style*="border: 1px solid rgba(102,126,234,0.2)"] {
    border-color: rgba(129, 140, 248, 0.3) !important;
}
html[data-theme="dark"] *[style*="border: 1px solid rgba(34,197,94,0.2)"] {
    border-color: rgba(34, 197, 94, 0.3) !important;
}
html[data-theme="dark"] *[style*="border: 1px solid rgba(245,158,11,0.2)"] {
    border-color: rgba(245, 158, 11, 0.3) !important;
}
html[data-theme="dark"] *[style*="border: 1px solid #e5e7eb"] { border-color: rgba(255, 255, 255, 0.14) !important; }
html[data-theme="dark"] *[style*="border: 1px solid rgba(255, 255, 255, 0.2)"] { border-color: rgba(255, 255, 255, 0.12) !important; }
html[data-theme="dark"] *[style*="border: 2px solid #e5e7eb"] { border-color: rgba(255, 255, 255, 0.14) !important; }
html[data-theme="dark"] *[style*="border-color: #e5e7eb"]      { border-color: rgba(255, 255, 255, 0.14) !important; }
html[data-theme="dark"] *[style*="border-top: 1px solid #e5e7eb"] {
    border-top-color: rgba(255, 255, 255, 0.14) !important;
}
html[data-theme="dark"] *[style*="border-bottom: 1px solid #e5e7eb"] {
    border-bottom-color: rgba(255, 255, 255, 0.14) !important;
}
html[data-theme="dark"] *[style*="border-right: 2px solid #3b82f6"] {
    border-right-color: rgba(96, 165, 250, 0.55) !important;
}
html[data-theme="dark"] *[style*="border-bottom: 2px solid #3b82f6"] {
    border-bottom-color: rgba(96, 165, 250, 0.55) !important;
}
html[data-theme="dark"] *[style*="border-left: 4px solid #3b82f6"] {
    border-left-color: rgba(96, 165, 250, 0.55) !important;
}
html[data-theme="dark"] *[style*="border-left: 4px solid #ff9800"] {
    border-left-color: rgba(245, 158, 11, 0.6) !important;
}
html[data-theme="dark"] *[style*="color: #d1d5db"] {
    color: #5a6a85 !important;
}

/* ---- PRICING — DESIGN PACKAGE TAB PANELS ---- */
/* Panel main backgrounds — 180deg gradients (not covered by existing 135/145deg rules) */
html[data-theme="dark"] *[style*="linear-gradient(180deg, #f0f7ff"] {
    background: linear-gradient(180deg, #0c1628 0%, #0f1c35 100%) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}
html[data-theme="dark"] *[style*="linear-gradient(180deg, #fff8e1"] {
    background: linear-gradient(180deg, #1a1200 0%, #130d00 100%) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}
html[data-theme="dark"] *[style*="linear-gradient(180deg, #faf5ff"] {
    background: linear-gradient(180deg, #130a24 0%, #0f0718 100%) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

/* Premium features gradient block (#667eea → #764ba2) */
html[data-theme="dark"] *[style*="linear-gradient(135deg, #667eea"] {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%) !important;
    border-left-color: rgba(102, 126, 234, 0.6) !important;
}

/* "All Basic Features" green tint block */
html[data-theme="dark"] *[style*="background: rgba(76, 175, 80, 0.1)"] {
    background: rgba(76, 175, 80, 0.12) !important;
}

/* Purple tint blocks (E-commerce shared info + pricing display) */
html[data-theme="dark"] *[style*="background: rgba(124, 58, 237, 0.06)"] {
    background: rgba(139, 92, 246, 0.12) !important;
}
html[data-theme="dark"] *[style*="background: rgba(124, 58, 237, 0.08)"] {
    background: rgba(139, 92, 246, 0.15) !important;
}

/* Payment gradient boxes — override light rgba gradients */
html[data-theme="dark"] *[style*="linear-gradient(135deg, rgba(0, 119, 255, 0.08)"] {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(96, 165, 250, 0.04) 100%) !important;
}
html[data-theme="dark"] *[style*="linear-gradient(135deg, rgba(16, 185, 129, 0.08)"] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.05) 100%) !important;
}
html[data-theme="dark"] *[style*="linear-gradient(135deg, rgba(255, 152, 0, 0.08)"] {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(245, 158, 11, 0.05) 100%) !important;
}
html[data-theme="dark"] *[style*="linear-gradient(135deg, rgba(124, 58, 237, 0.08)"] {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.06) 100%) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

/* Panel + element border overrides */
html[data-theme="dark"] *[style*="border: 2px solid rgba(0, 119, 255, 0.15)"] {
    border-color: rgba(96, 165, 250, 0.22) !important;
}
html[data-theme="dark"] *[style*="border: 2px solid rgba(124, 58, 237, 0.2)"] {
    border-color: rgba(139, 92, 246, 0.28) !important;
}
html[data-theme="dark"] *[style*="border: 2px solid rgba(124, 58, 237, 0.3)"] {
    border-color: rgba(139, 92, 246, 0.35) !important;
}
html[data-theme="dark"] *[style*="border: 2px solid #7c3aed"] {
    border-color: rgba(139, 92, 246, 0.5) !important;
}
html[data-theme="dark"] *[style*="border: 2px solid #8b5cf6"] {
    border-color: rgba(139, 92, 246, 0.5) !important;
}
html[data-theme="dark"] *[style*="border-left: 4px solid #8b5cf6"] {
    border-left-color: rgba(139, 92, 246, 0.6) !important;
}
html[data-theme="dark"] *[style*="border-top: 2px solid rgba(0, 119, 255, 0.2)"] {
    border-top-color: rgba(96, 165, 250, 0.2) !important;
}
html[data-theme="dark"] *[style*="border-top: 2px solid rgba(124, 58, 237, 0.2)"] {
    border-top-color: rgba(139, 92, 246, 0.25) !important;
}
html[data-theme="dark"] *[style*="border-top: 2px solid rgba(255, 152, 0, 0.3)"] {
    border-top-color: rgba(245, 158, 11, 0.3) !important;
}

/* ---- CONTACT PAGE ---- */
html[data-theme="dark"] .trg-contact-hero {
    background: linear-gradient(135deg, #090d14 0%, #0f1623 100%) !important;
}
html[data-theme="dark"] .trg-contact-hero p {
    color: #cdd5e0 !important;
}
html[data-theme="dark"] .trg-contact-section {
    background: rgba(9, 13, 20, 0.95) !important;
}
html[data-theme="dark"] .trg-contact-method-card {
    background: linear-gradient(145deg, #1c2438 0%, #161d2e 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] .trg-contact-method-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}
html[data-theme="dark"] .trg-contact-method-title {
    color: #f0f4fc !important;
}
html[data-theme="dark"] .trg-contact-method-description {
    color: #8a9ab5 !important;
}
html[data-theme="dark"] .trg-contact-form-container {
    background: linear-gradient(145deg, #1c2438 0%, #161d2e 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="dark"] .trg-contact-form-container h2 {
    color: #f0f4fc !important;
}
html[data-theme="dark"] .trg-contact-form-container > p {
    color: #8a9ab5 !important;
}

/* ---- TERMS PAGE ---- */
html[data-theme="dark"] .tos-content {
    background: rgba(22, 29, 46, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .tos-category {
    background: linear-gradient(160deg, #1c2438 0%, #161d2e 100%) !important;
    border-color: rgba(96, 165, 250, 0.2) !important;
}
html[data-theme="dark"] .category-content,
html[data-theme="dark"] .tos-section,
html[data-theme="dark"] .tos-content p,
html[data-theme="dark"] .tos-content li,
html[data-theme="dark"] .date-item {
    color: #cdd5e0 !important;
}
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .tos-header h1 {
    color: #f0f4fc !important;
}

/* ---- MOBILE MENU EXTERNAL POPUP ---- */
html[data-theme="dark"] .trg-popup-content {
    background: #1c2438 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .trg-popup-title { color: #f0f4fc !important; }
html[data-theme="dark"] .trg-popup-message { color: #8a9ab5 !important; }
html[data-theme="dark"] .trg-popup-url {
    background: rgba(96, 165, 250, 0.12) !important;
    color: #93c5fd !important;
}
html[data-theme="dark"] .trg-popup-btn-cancel {
    background: #22293e !important;
    color: #cdd5e0 !important;
}
html[data-theme="dark"] .trg-popup-btn-cancel:hover {
    background: #2a3148 !important;
}

/* ---- DESKTOP CHATBOT ---- */
html[data-theme="dark"] .rumble-chat-window {
    background: #0f1623 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
html[data-theme="dark"] .rumble-chat-header,
html[data-theme="dark"] .rumble-input-area {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .rumble-messages-container,
html[data-theme="dark"] .rumble-input-area {
    background: #0f1623 !important;
}
html[data-theme="dark"] .rumble-message-bubble,
html[data-theme="dark"] .rumble-typing-bubble,
html[data-theme="dark"] .rumble-quick-btn,
html[data-theme="dark"] .rumble-input-wrapper {
    background: #1c2438 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cdd5e0 !important;
}
html[data-theme="dark"] .rumble-input,
html[data-theme="dark"] .rumble-header-title,
html[data-theme="dark"] .rumble-powered,
html[data-theme="dark"] .rumble-status,
html[data-theme="dark"] .rumble-message-time {
    color: #cdd5e0 !important;
}

/* Box shadows — soften the light-mode glow, deepen for dark */
html[data-theme="dark"] *[style*="box-shadow: 0 20px 60px rgba(0,0,0,0.06)"] {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

/* ---- THEME TOGGLE BUTTON ---- */
.theme-toggle-btn {
    background: none;
    border: 2px solid rgba(0, 119, 255, 0.2);
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.theme-toggle-btn:hover {
    background: rgba(0, 119, 255, 0.08);
    border-color: rgba(0, 119, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 119, 255, 0.14);
}
html[data-theme="dark"] .theme-toggle-btn {
    border-color: rgba(251, 191, 36, 0.25) !important;
    color: #fbbf24 !important;
}
html[data-theme="dark"] .theme-toggle-btn:hover {
    background: rgba(251, 191, 36, 0.08) !important;
    border-color: rgba(251, 191, 36, 0.45) !important;
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.16) !important;
}

/* Sun / moon icon swap inside button */
.theme-icon-sun,
.theme-icon-moon {
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    pointer-events: none;
}
.theme-icon-sun  { transform: rotate(0deg) scale(1);    opacity: 1; }
.theme-icon-moon { transform: rotate(-80deg) scale(0.4); opacity: 0; }

html[data-theme="dark"] .theme-icon-sun  { transform: rotate(80deg) scale(0.4) !important; opacity: 0 !important; }
html[data-theme="dark"] .theme-icon-moon { transform: rotate(0deg) scale(1)    !important; opacity: 1 !important; }

/* ---- MOBILE MORE DRAWER THEME ROW ---- */
.trg-theme-drawer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    margin: 4px 0 0;
    cursor: pointer;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.trg-theme-drawer-row:hover { background: rgba(0, 119, 255, 0.06); }
html[data-theme="dark"] .trg-theme-drawer-row:hover {
    background: rgba(96, 165, 250, 0.07) !important;
}
.trg-theme-drawer-label {
    display: flex;
    align-items: center;
    gap: 14px;
}
.trg-theme-drawer-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.1) 0%, rgba(76, 201, 255, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    transition: background 0.3s ease;
}
html[data-theme="dark"] .trg-theme-drawer-icon-wrap {
    background: rgba(251, 191, 36, 0.12) !important;
}
.trg-theme-drawer-text { display: flex; flex-direction: column; gap: 2px; }
.trg-theme-drawer-text-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
html[data-theme="dark"] .trg-theme-drawer-text-title { color: #f0f4fc !important; }
.trg-theme-drawer-text-sub {
    font-size: 12px;
    color: #6b7280;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
html[data-theme="dark"] .trg-theme-drawer-text-sub { color: #8a9ab5 !important; }

/* Toggle switch pill */
.trg-theme-pill {
    width: 52px;
    height: 28px;
    border-radius: 14px;
    background: #d1d5db;
    position: relative;
    flex-shrink: 0;
    transition: background 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}
html[data-theme="dark"] .trg-theme-pill {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3), 0 0 12px rgba(99,102,241,0.3) !important;
}
.trg-theme-pill-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
}
html[data-theme="dark"] .trg-theme-pill-thumb {
    transform: translateX(24px);
}

/* Divider below theme row in drawer */
.trg-theme-drawer-divider {
    height: 1px;
    background: rgba(0, 119, 255, 0.07);
    margin: 0;
}
html[data-theme="dark"] .trg-theme-drawer-divider {
    background: rgba(255, 255, 255, 0.06) !important;
}

/* ---- CART PANEL VARIABLES (pricing page) ---- */
:root {
    --cart-panel-border: rgba(0, 119, 255, 0.1);
    --cart-panel-bg: rgba(248, 250, 252, 0.95);
}

html[data-theme="dark"] {
    --cart-panel-border: rgba(255, 255, 255, 0.08);
    --cart-panel-bg: #161d2e;
}

/* ---- PRICING CARDS (all .trg-pricing-card) ---- */
html[data-theme="dark"] .trg-pricing-card {
    background: linear-gradient(145deg, #1c2438 0%, #161d2e 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="dark"] .trg-pricing-card:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55) !important;
}

/* ---- ENHANCE YOUR WEBSITE SECTION (pricing page) ---- */
html[data-theme="dark"] .addons-section {
    background: rgba(15, 22, 35, 0.92) !important;
}
html[data-theme="dark"] .addon-card {
    background: linear-gradient(145deg, #1c2438 0%, #161d2e 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="dark"] .addon-card:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55) !important;
}

/* ---- HOSTING SERVICES CARD — toggle tracks & tinted boxes ---- */

/* Inactive toggle track (#e0e0e0) */
html[data-theme="dark"] *[style*="background: #e0e0e0"] {
    background: rgba(255, 255, 255, 0.14) !important;
}

/* Green add-ons container (rgba 16,185,129 at 0.05) */
html[data-theme="dark"] *[style*="background: rgba(16, 185, 129, 0.05)"] {
    background: rgba(16, 185, 129, 0.08) !important;
}

/* "What You Pay Today" green box (rgba 16,185,129 at 0.1) */
html[data-theme="dark"] *[style*="background: rgba(16, 185, 129, 0.1)"] {
    background: rgba(16, 185, 129, 0.12) !important;
}

/* Solid green borders on "What You Pay Today" */
html[data-theme="dark"] *[style*="border: 2px solid #10b981"] {
    border-color: rgba(16, 185, 129, 0.45) !important;
}

/* ---- CART SIDEBAR ---- */
html[data-theme="dark"] .cart-sidebar {
    background: #1c2438 !important;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.55) !important;
}

/* Config-section white boxes inside hosting card */
html[data-theme="dark"] .config-section {
    background: #161d2e !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Pricing notice tooltip */
html[data-theme="dark"] .pricing-notice-content {
    background: #1c2438 !important;
    color: #93c5fd !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .pricing-notice-content span[style*="background: white"] {
    background: #1c2438 !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
}

/* ---- INDEX REVIEWS SECTION THEME TOKENS ---- */
:root {
    --review-card-bg: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --review-card-border: rgba(0, 119, 255, 0.08);
    --review-card-shadow: 0 8px 16px rgba(0, 0, 0, 0.04), 0 4px 8px rgba(0, 0, 0, 0.02);
    --review-card-title: #1f2937;
    --review-card-date: #9ca3af;
    --review-card-text: #4a5568;
}

html[data-theme="dark"] {
    --review-card-bg: linear-gradient(145deg, #1c2438 0%, #161d2e 100%);
    --review-card-border: rgba(255, 255, 255, 0.12);
    --review-card-shadow: 0 14px 32px rgba(0, 0, 0, 0.35), 0 6px 14px rgba(0, 0, 0, 0.22);
    --review-card-title: #f0f4fc;
    --review-card-date: #8a9ab5;
    --review-card-text: #cdd5e0;
}

/* ---- INDEX REVIEWS SECTION DARK OVERRIDES ---- */
html[data-theme="dark"] #reviews-section .reviews-header-card,
html[data-theme="dark"] #reviews-section .review-form-container {
    background: linear-gradient(145deg, #1c2438 0%, #161d2e 100%) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35), 0 8px 18px rgba(0, 0, 0, 0.22) !important;
}
html[data-theme="dark"] #reviews-section h3,
html[data-theme="dark"] #reviews-section h4 {
    color: #f0f4fc !important;
}
html[data-theme="dark"] #reviews-section p,
html[data-theme="dark"] #reviews-section label,
html[data-theme="dark"] #reviewsLoader,
html[data-theme="dark"] #ratingText {
    color: #cdd5e0 !important;
}
html[data-theme="dark"] #reviews-section input[type="text"],
html[data-theme="dark"] #reviews-section textarea {
    background: #1c2438 !important;
    color: #f0f4fc !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}
html[data-theme="dark"] #reviews-section input[type="text"]::placeholder,
html[data-theme="dark"] #reviews-section textarea::placeholder {
    color: #8a9ab5 !important;
}
html[data-theme="dark"] #reviews-section a {
    color: #7cc4ff !important;
}

/* ---- VIDEO SHOWCASE (all pages) ---- */
.trg-video-showcase {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}
.trg-video-showcase .trg-section-header {
    margin-bottom: 48px;
}
.trg-video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 8px 32px rgba(0, 119, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 119, 255, 0.1);
    position: relative;
    cursor: pointer;
}
.trg-video-thumbnail {
    display: block;
    width: 100%;
    height: auto;
}
.trg-video-container.is-playing .trg-video-thumbnail {
    display: none;
}
.trg-video-play-icon {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: rgba(0, 119, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: none;
}
.trg-video-play-icon svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    margin-left: 3px;
}
.trg-video-container:hover .trg-video-play-icon {
    background: rgba(0, 119, 255, 1);
    transform: scale(1.1);
}
.trg-video-container.is-playing .trg-video-play-icon {
    display: none;
}
.trg-video-container video {
    display: none;
    width: 100%;
    height: auto;
}
.trg-video-container.is-playing video {
    display: block;
}
html[data-theme="dark"] .trg-video-showcase {
    background: rgba(15, 22, 35, 0.92) !important;
}
html[data-theme="dark"] .trg-video-container {
    background: linear-gradient(160deg, #1c2438 0%, #161d2e 100%) !important;
    border-color: rgba(96, 165, 250, 0.2) !important;
}
@media (max-width: 768px) {
    .trg-video-showcase {
        padding: 60px 0;
    }
    .trg-video-container {
        border-radius: 16px;
        margin: 0 12px;
    }
    .trg-video-play-icon {
        bottom: 14px;
        left: 14px;
        width: 40px;
        height: 40px;
    }
    .trg-video-play-icon svg {
        width: 16px;
        height: 16px;
    }
}
