/* ==========================================================================
   PRism Custom Coatings — Main Stylesheet
   Glassmorphism one-page theme
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    --bg-dark: #1a1a2e;
    --bg-mid: #16213e;
    --bg-accent: #0f3460;
    --accent-cyan: #00d4ff;
    --accent-gold: #e8a838;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-bg-hover: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-border-hover: rgba(255, 255, 255, 0.25);
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #7a8ba0;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-logo: 'Montserrat', sans-serif;
    --nav-height: 80px;
    --container-width: 1200px;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-primary);
    background: var(--bg-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gradient background that covers entire site */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(15, 52, 96, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(232, 168, 56, 0.06) 0%, transparent 40%),
        linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-accent) 100%);
    z-index: -1;
    pointer-events: none;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1em;
    color: var(--text-secondary);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Glassmorphism Utilities ---------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all var(--transition);
}

@supports not (backdrop-filter: blur(1px)) {
    .glass-card {
        background: rgba(22, 33, 62, 0.92);
    }
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.05);
    transform: translateY(-4px);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), #0099cc);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.5);
    color: var(--bg-dark);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* ---------- Navigation ---------- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition);
}

.site-nav.scrolled {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo svg {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-logo);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-text .pr {
    color: var(--accent-cyan);
}

.logo-text .ism {
    color: var(--text-primary);
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-menu li {
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition);
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.08);
}

/* CTA in nav */
.nav-cta {
    margin-left: 8px;
}

.nav-cta .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero background video */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Dark overlay for photo/video backgrounds */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 0;
    pointer-events: none;
}

/* When hero has media, adjust the pseudo-elements */
.hero-has-media::before {
    z-index: 1;
}

.hero-has-media::after {
    z-index: 1;
}

.hero-has-media .hero-overlay {
    z-index: 1;
}

.hero-has-media .hero-content {
    z-index: 2;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 40%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(232, 168, 56, 0.08) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* Animated prism light effect */
.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(0, 212, 255, 0.03) 60deg,
        transparent 120deg,
        rgba(232, 168, 56, 0.02) 180deg,
        transparent 240deg,
        rgba(0, 212, 255, 0.03) 300deg,
        transparent 360deg
    );
    animation: prismRotate 30s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes prismRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Section Base ---------- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

/* ---------- About Section ---------- */
.about-section .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    padding: 30px 20px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1;
    margin-bottom: 6px;
}

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

/* ---------- Services Section ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-cyan);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ---------- Why Us Section ---------- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    padding: 36px 28px;
    text-align: center;
}

.why-card .why-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.why-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---------- Contact Section ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-card {
    padding: 48px 40px;
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-cyan);
    fill: none;
    stroke-width: 1.5;
}

.contact-item-text h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-item-text p {
    color: var(--text-primary);
    margin-bottom: 0;
    font-size: 1rem;
}

.contact-item-text a {
    color: var(--text-primary);
}

.contact-item-text a:hover {
    color: var(--accent-cyan);
}

/* Contact Form Styling */
.contact-form-wrap {
    padding: 48px 40px;
}

.contact-form-wrap h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

/* Contact Form */
.simple-contact-form input,
.simple-contact-form textarea,
.simple-contact-form select {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition);
    margin-bottom: 16px;
}

.simple-contact-form input:focus,
.simple-contact-form textarea:focus,
.simple-contact-form select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.simple-contact-form input::placeholder,
.simple-contact-form textarea::placeholder {
    color: var(--text-muted);
}

.simple-contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a8ba0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.simple-contact-form select option {
    background: var(--bg-mid);
    color: var(--text-primary);
}

.simple-contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---------- Form Messages ---------- */
.form-message {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.form-message p {
    margin: 0;
    color: inherit;
}

.form-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.form-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-back-top a {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}

.footer-back-top a:hover {
    color: var(--accent-cyan);
}

/* ---------- Entrance Animations ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ---------- 404 Page ---------- */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--nav-height) 24px 80px;
}

.page-404 h1 {
    font-size: 8rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

/* ---------- Generic Page ---------- */
.page-content {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 80px;
    min-height: 60vh;
}

.page-content .glass-card {
    padding: 48px 40px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-section .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu-wrap {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 100px 32px 32px;
        transition: right var(--transition);
        z-index: 999;
        border-left: 1px solid var(--glass-border);
    }

    .nav-menu-wrap.open {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 4px;
    }

    .nav-link {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
    }

    .nav-cta .btn {
        display: block;
        text-align: center;
    }

    /* Mobile overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .nav-overlay.active {
        display: block;
    }

    .hero-section {
        padding: 100px 20px 60px;
        min-height: 90vh;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 28px 24px;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .contact-card,
    .contact-form-wrap {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 20px 16px;
    }
}

/* ---------- WordPress Admin Bar Offset ---------- */
.admin-bar .site-nav {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-nav {
        top: 46px;
    }
}

/* ===== FAQ (AEO) & Trade section ===== */
.faq-section .faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item .faq-question {
    list-style: none; cursor: pointer; padding: 1.25rem 1.5rem;
    font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.05rem;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item .faq-question::-webkit-details-marker { display: none; }
.faq-item .faq-question::after { content: '+'; font-size: 1.5rem; line-height: 1; opacity: .7; transition: transform .2s ease; }
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 1.5rem 1.35rem; opacity: .9; line-height: 1.7; }
.trade-section .trade-areas { font-size: .95rem; }
@media (max-width: 640px) {
    .faq-item .faq-question { font-size: .98rem; padding: 1rem 1.15rem; }
    .faq-item .faq-answer { padding: 0 1.15rem 1.1rem; }
}

/* ===== Backend-system upsell pop-up ===== */
.prism-backend-launcher {
    position: fixed; right: 20px; bottom: 20px; z-index: 9998;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.15rem; border: none; border-radius: 50px; cursor: pointer;
    font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .9rem; color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 10px 30px rgba(37,99,235,.45); transition: transform .2s ease, box-shadow .2s ease;
}
.prism-backend-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(124,58,237,.55); }
.prism-backend-launcher .pbl-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: pblPulse 2s infinite; }
@keyframes pblPulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.7); } 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

.prism-backend-overlay {
    position: fixed; inset: 0; z-index: 9999; display: none;
    align-items: center; justify-content: center; padding: 1.25rem;
    background: rgba(6,12,26,.72); backdrop-filter: blur(6px);
}
.prism-backend-overlay.is-open { display: flex; animation: pbFade .25s ease; }
@keyframes pbFade { from { opacity: 0; } to { opacity: 1; } }

.prism-backend-dialog {
    position: relative; width: 100%; max-width: 1040px; max-height: 92vh; overflow-y: auto;
    padding: 2.25rem 2rem 1.75rem; border-radius: 22px; animation: pbPop .28s ease;
}
@keyframes pbPop { from { transform: translateY(18px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.prism-backend-close {
    position: absolute; top: 12px; right: 16px; border: none; background: transparent;
    color: inherit; font-size: 2rem; line-height: 1; cursor: pointer; opacity: .65;
}
.prism-backend-close:hover { opacity: 1; }
.prism-backend-head { text-align: center; max-width: 720px; margin: 0 auto 1.75rem; }
.prism-backend-head h2 { margin: .4rem 0 .6rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.prism-backend-head p { opacity: .88; line-height: 1.65; }

.prism-backend-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.pb-tier {
    position: relative; display: flex; flex-direction: column;
    padding: 1.5rem 1.25rem; border-radius: 16px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
}
.pb-tier--popular { border-color: rgba(124,58,237,.75); box-shadow: 0 12px 40px rgba(124,58,237,.28); transform: translateY(-6px); }
.pb-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    padding: .28rem .8rem; border-radius: 50px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed); white-space: nowrap;
}
.pb-tier-name { font-family: 'Poppins', sans-serif; font-size: 1.35rem; margin: .2rem 0 0; }
.pb-tier-tagline { opacity: .7; font-size: .9rem; margin: .1rem 0 .6rem; }
.pb-tier-price { font-weight: 700; font-size: 1.05rem; margin: 0 0 1rem; color: #93c5fd; }
.pb-tier-features { list-style: none; margin: 0 0 1.25rem; padding: 0; flex: 1; }
.pb-tier-features li { position: relative; padding: .38rem 0 .38rem 1.5rem; font-size: .92rem; line-height: 1.45; opacity: .92; }
.pb-feat::before { content: '✓'; position: absolute; left: 0; color: #4ade80; font-weight: 700; }
.pb-feat-head { padding-left: 0 !important; margin-top: .2rem; font-weight: 700; opacity: .75; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.pb-tier-cta { text-align: center; width: 100%; }
.prism-backend-foot { text-align: center; opacity: .6; font-size: .82rem; margin: 1.5rem 0 0; }

@media (max-width: 860px) {
    .prism-backend-tiers { grid-template-columns: 1fr; }
    .pb-tier--popular { transform: none; }
    .prism-backend-dialog { padding: 2rem 1.15rem 1.25rem; }
    .prism-backend-launcher { right: 14px; bottom: 14px; font-size: .82rem; padding: .6rem .95rem; }
}
