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

/* --- CSS Core Tokens & Design System --- */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #00A3E0;      /* PEC Cyber Cyan */
    --accent-orange: #FF5A00;     /* Danger Orange */
    --accent-green: #00FF66;      /* Sonar Green */
    --border-color: #ededf2;
    --grid-color: rgba(0, 0, 0, 0.07);
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --transition-curve: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.5s var(--transition-curve), color 0.5s var(--transition-curve);
}

/* Scrollbar customization */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4d4d8; }
::-webkit-scrollbar-thumb:hover { background: #a1a1aa; }

/* --- Top Editorial Announcement Ticker --- */
.top-ticker {
    background: #000000;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    padding: 10px 0;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-bottom: 1px solid #1f1f23;
}
.ticker-wrap {
    display: inline-block;
    padding-left: 100%;
    animation: tickerLoop 25s linear infinite;
}
@keyframes tickerLoop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}
.ticker-item { display: inline-block; padding-right: 50px; }

/* --- Brand Header Navigation Bar --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s var(--transition-curve);
}
.nav-container {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo-text {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
    color: #000000;
    letter-spacing: 5px;
    text-transform: uppercase;
    transition: letter-spacing 0.3s var(--transition-curve);
}
.nav-logo-text:hover { letter-spacing: 7px; }

.nav-links { display: flex; align-items: center; }
.nav-links a {
    text-decoration: none;
    color: #52525b;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: color 0.3s var(--transition-curve);
}
.nav-links a:hover { color: #000000; }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000000;
    transition: width 0.3s var(--transition-curve);
}
.nav-links a:hover::after { width: 100%; }

/* Cart Toggle Badge Icon */
.cart-toggle-btn {
    background: none;
    border: none;
    color: #000000;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
}
.cart-badge-count {
    background: #000000;
    color: #ffffff;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: all 0.3s var(--transition-curve);
}

/* --- High-Velocity Splash Preloader --- */
#splash-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.85, 0, 0.15, 1), visibility 0.6s;
}
.logo-preloader-text {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 12px;
    color: #ffffff;
    text-transform: uppercase;
    animation: preloaderPulse 1.8s ease-in-out infinite;
}
@keyframes preloaderPulse {
    0%, 100% { opacity: 0.8; letter-spacing: 12px; }
    50% { opacity: 1; letter-spacing: 16px; }
}
.loader-bar {
    width: 180px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 25px auto 0 auto;
    position: relative;
    overflow: hidden;
}
.loader-bar::after {
    content: "";
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #ffffff;
    animation: loadingTrack 1.2s infinite ease-in-out;
}
@keyframes loadingTrack { 0% { left: -100%; } 100% { left: 100%; } }
body.loaded #splash-preloader { opacity: 0; visibility: hidden; }

/* --- Sliding Cart Drawer --- */
.cart-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    z-index: 9500;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(3px);
    transition: all 0.4s var(--transition-curve);
}
.cart-drawer-backdrop.active { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9600;
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.active { transform: translateX(0); }

.cart-drawer-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-drawer-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.cart-drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    color: #71717a;
    transition: color 0.2s;
}
.cart-drawer-close:hover { color: #000000; }

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}
.cart-drawer-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}
.cart-item-image {
    width: 80px;
    height: 100px;
    background: #f4f4f5;
    overflow: hidden;
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.cart-item-info .cart-item-meta {
    font-size: 0.75rem;
    color: #71717a;
    margin-bottom: 10px;
}
.cart-item-stencil-val {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: #f4f4f5;
    padding: 3px 6px;
    display: inline-block;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.quantity-selector {
    display: flex;
    border: 1px solid #d4d4d8;
    align-items: center;
}
.qty-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}
.qty-btn:hover { background: #f4f4f5; }
.qty-val {
    width: 32px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
}
.cart-item-remove {
    background: none;
    border: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ef4444;
    cursor: pointer;
}
.cart-item-remove:hover { text-decoration: underline; }

.cart-drawer-footer {
    padding: 30px;
    border-top: 1px solid var(--border-color);
    background: #fafafa;
}
.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}
.checkout-btn {
    width: 100%;
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s var(--transition-curve);
}
.checkout-btn:hover { background: #27272a; }

/* --- Editorial Landing Page --- */
.editorial-container {
    width: 90%;
    max-width: 1600px;
    margin: 60px auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
}
@media (max-width: 968px) {
    .editorial-container { grid-template-columns: 1fr; gap: 40px; margin: 30px auto; }
}
.editorial-text h2 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 25px;
    text-transform: uppercase;
}
.editorial-text p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #4b5563;
    margin-bottom: 35px;
    max-width: 580px;
}
.editorial-cta-group { display: flex; gap: 20px; }
.editorial-btn {
    text-decoration: none;
    color: #000000;
    border: 1px solid #000000;
    padding: 15px 35px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    transition: all 0.3s var(--transition-curve);
}
.editorial-btn.primary {
    background: #000000;
    color: #ffffff;
}
.editorial-btn:hover {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.editorial-btn.primary:hover {
    background: #ffffff;
    color: #000000;
}

.image-showcase-frame {
    width: 100%;
    height: 700px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}
.image-showcase-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--transition-curve);
}
.image-showcase-frame:hover img { transform: scale(1.04); }
.image-caption-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #ffffff;
    padding: 8px 18px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid #000000;
}

/* --- Shop Grid Pages --- */
.shop-header {
    text-align: center;
    padding: 60px 20px;
    border-bottom: 1px solid var(--border-color);
}
.shop-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
    width: 92%;
    max-width: 1600px;
    margin: 50px auto;
}
.branch-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    position: relative;
    transition: all 0.4s var(--transition-curve);
}
.branch-card:hover {
    border-color: #000000;
    box-shadow: 0 15px 30px rgba(0,0,0,0.03);
}
.card-stamp {
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: 700;
    opacity: 0.04;
    position: absolute;
    top: 25px;
    right: 25px;
    pointer-events: none;
    transition: opacity 0.3s;
}
.branch-card:hover .card-stamp { opacity: 0.08; }

.branch-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.branch-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #71717a;
    margin-bottom: 35px;
}

/* Custom button styles */
.action-btn {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    padding: 16px 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--transition-curve);
    width: 100%;
}
.action-btn:hover {
    background: #ffffff;
    color: #000000;
}

/* --- Product Detail split layout (Zara concept) --- */
.store-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    width: 92%;
    max-width: 1600px;
    margin: 40px auto;
    gap: 60px;
}
@media (max-width: 968px) {
    .store-container { grid-template-columns: 1fr; gap: 40px; }
}

/* Vertical stack gallery */
.media-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.gallery-image-frame {
    width: 100%;
    position: relative;
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.product-main-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}
.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.thumbnail-box {
    aspect-ratio: 3/4;
    background: #f4f4f5;
    cursor: pointer;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: border-color 0.2s;
}
.thumbnail-box:hover { border-color: #000000; }
.thumbnail-box img { width: 100%; height: 100%; object-fit: cover; }

.stencil-preview-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: #000000;
    color: #ffffff;
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Sticky Details Panel */
.details-panel {
    position: sticky;
    top: 130px;
    height: max-content;
}
.product-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.product-sub {
    color: #71717a;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.product-price-label {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.details-panel-divider {
    height: 1px;
    background: var(--border-color);
    margin: 30px 0;
}

/* Sizings selector */
.size-selector-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.size-buttons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}
.size-btn-option {
    border: 1px solid #d4d4d8;
    background: none;
    padding: 12px 0;
    text-align: center;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.size-btn-option:hover { border-color: #000000; }
.size-btn-option.selected {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* Inputs & Form Groups */
.form-input-group {
    margin-bottom: 20px;
}
.form-input-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}
.custom-stencil-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #d4d4d8;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s;
}
.custom-stencil-input:focus { border-color: #000000; }

.button-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

/* Dedicated Direct Campus Portal CTA Anchor */
.campus-gate-link {
    background: #ffffff;
    color: var(--accent-color);
    border: 1px dashed var(--accent-color);
    padding: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    width: 100%;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    display: block;
    transition: all 0.3s;
}
.campus-gate-link:hover {
    background: rgba(0, 163, 224, 0.05);
    box-shadow: 0 0 15px rgba(0, 163, 224, 0.15);
}

/* --- Delhivery Pincode Widget --- */
.delhivery-estimator-box {
    margin-top: 35px;
    border: 1px solid var(--border-color);
    padding: 20px;
    background: #fafafa;
}
.delhivery-estimator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.delhivery-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
}
.delhivery-logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-orange);
    border-radius: 50% !important;
    margin-right: 8px;
}
.pincode-input-row {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 10px;
}
.pincode-field {
    padding: 10px 14px;
    border: 1px solid #d4d4d8;
    font-size: 0.85rem;
    outline: none;
    font-family: inherit;
}
.pincode-field:focus { border-color: #000000; }
.pincode-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}
.pincode-btn:hover { background: #27272a; }

/* Delivery Estimate Results Timeline */
.estimator-results { margin-top: 20px; display: none; }
.estimate-date-header {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #18181b;
}
.estimate-date-header span { color: var(--accent-orange); }

.delivery-timeline {
    position: relative;
    padding-left: 20px;
    border-left: 1px solid #e4e4e7;
    margin-left: 10px;
}
.timeline-step {
    position: relative;
    padding-bottom: 15px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -24px;
    top: 3px;
    width: 7px;
    height: 7px;
    background: #d4d4d8;
    border-radius: 50% !important;
}
.timeline-step.completed .timeline-dot { background: var(--accent-orange); }
.timeline-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #3f3f46;
    text-transform: uppercase;
}
.timeline-desc {
    font-size: 0.7rem;
    color: #71717a;
    margin-top: 2px;
}

/* --- THE MIND-BLOWING GEOMETRIC HUD SHARD TRANSITION OVERLAY --- */
#portal-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    overflow: hidden;
}
#portal-transition-overlay.active {
    opacity: 1;
    visibility: visible;
}
.transition-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.transition-terminal-panel {
    position: absolute;
    bottom: 50px;
    left: 50px;
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 0.8rem;
    line-height: 1.8;
    text-shadow: 0 0 10px rgba(0, 163, 224, 0.4);
    max-width: 500px;
    z-index: 10;
}
.transition-grid-coords {
    position: absolute;
    top: 50px;
    right: 50px;
    font-family: var(--font-mono);
    color: var(--accent-orange);
    font-size: 0.9rem;
    text-align: right;
    letter-spacing: 2px;
    z-index: 10;
}

/* --- PEC Student Space (Dark Theme Override Mode) --- */
body.inverted {
    --bg-color: #0b0b0b;
    --text-color: #ffffff;
    --border-color: #1e1e24;
    --grid-color: rgba(0, 163, 224, 0.15);
}
body.inverted::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 163, 224, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 163, 224, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: -1;
}
body.inverted .navbar {
    background: rgba(11, 11, 11, 0.95);
    border-bottom: 1px solid var(--border-color);
}
body.inverted .nav-logo-text { color: #ffffff; }
body.inverted .nav-links a { color: #a1a1aa; }
body.inverted .nav-links a:hover { color: var(--accent-color); }
body.inverted .nav-links a::after { background: var(--accent-color); }
body.inverted .cart-toggle-btn { color: #ffffff; }
body.inverted .cart-badge-count { background: var(--accent-color); color: #0b0b0b; }

body.inverted .details-panel-divider { background-color: var(--border-color); }
body.inverted .size-btn-option { border-color: #3f3f46; color: #ffffff; }
body.inverted .size-btn-option:hover { border-color: var(--accent-color); }
body.inverted .size-btn-option.selected { background: var(--accent-color); color: #0b0b0b; border-color: var(--accent-color); }
body.inverted .custom-stencil-input { background: #121215; border-color: #3f3f46; color: #ffffff; }
body.inverted .custom-stencil-input:focus { border-color: var(--accent-color); }

body.inverted .cart-drawer { background: #0b0b0b; color: #ffffff; border-left: 1px solid var(--border-color); }
body.inverted .cart-drawer-header { border-bottom: 1px solid var(--border-color); }
body.inverted .cart-drawer-body { background: #0b0b0b; }
body.inverted .cart-drawer-item { border-bottom: 1px solid var(--border-color); }
body.inverted .cart-item-image { background: #18181b; }
body.inverted .cart-item-stencil-val { background: #18181b; color: var(--accent-color); }
body.inverted .quantity-selector { border-color: #3f3f46; }
body.inverted .qty-btn { color: #ffffff; }
body.inverted .qty-btn:hover { background: #1c1c22; }
body.inverted .cart-drawer-footer { background: #121215; border-top: 1px solid var(--border-color); }
body.inverted .checkout-btn { background: var(--accent-color); color: #0b0b0b; }
body.inverted .checkout-btn:hover { background: #008fcd; }

body.inverted footer {
    background: #0b0b0b;
    border-top: 1px solid var(--border-color);
    color: #71717a;
}

/* --- PEC Student Portal Layout --- */
.portal-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: calc(100vh - 120px);
    width: 94%;
    max-width: 1700px;
    margin: 30px auto;
    border: 1px solid var(--accent-color);
    background: #0d0d11;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 163, 224, 0.05);
}
@media (max-width: 1024px) {
    .portal-grid { grid-template-columns: 1fr; }
}

.system-pane {
    padding: 40px;
    border-right: 1px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.system-pane:last-child { border-right: none; background: #111116; }

.blueprint-canvas {
    width: 100%;
    height: 400px;
    border: 1px dashed rgba(0, 163, 224, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #08080b;
    overflow: hidden;
}
.blueprint-grid-mesh {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0,163,224,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,163,224,0.1) 1px, transparent 1px);
    background-size: 15px 15px;
}
.blueprint-text {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 15px 30px;
    background: rgba(11, 11, 11, 0.9);
    text-transform: uppercase;
    letter-spacing: 3px;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 163, 224, 0.3);
}

/* Digital Animated PEC Map Box */
.pec-blueprint-map-box {
    margin-top: 30px;
    border: 1px solid rgba(0, 163, 224, 0.2);
    background: #08080a;
    padding: 0;
    position: relative;
}
.pec-map-header {
    background: rgba(0, 163, 224, 0.08);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 163, 224, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pec-map-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
}
.pec-map-telemetry {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-green);
}
#pec-vector-canvas {
    width: 100%;
    height: 380px;
    display: block;
    background: #050507;
}

.system-pane input {
    background: #14141a !important;
    border: 1px solid #2e2e3a !important;
    color: #ffffff !important;
    padding: 14px;
    font-family: var(--font-mono);
    width: 100%;
    margin-bottom: 20px;
    outline: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.system-pane input:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 10px rgba(0, 163, 224, 0.15);
}
.system-pane label {
    color: var(--accent-color) !important;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    display: block;
}

.system-pane .action-btn {
    background: var(--accent-color) !important;
    color: #0b0b0b !important;
    border: 1px solid var(--accent-color) !important;
}
.system-pane .action-btn:hover {
    background: transparent !important;
    color: var(--accent-color) !important;
}

.disconnect-btn {
    background: transparent !important;
    color: var(--accent-orange) !important;
    border: 1px solid var(--accent-orange) !important;
    padding: 12px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 25px;
    width: 100%;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: all 0.2s;
}
.disconnect-btn:hover {
    background: rgba(255, 90, 0, 0.08) !important;
    box-shadow: 0 0 15px rgba(255, 90, 0, 0.1);
}

/* Map hover overlay tooltip */
.map-tooltip {
    position: absolute;
    background: rgba(5, 5, 8, 0.95);
    border: 1px solid var(--accent-color);
    padding: 12px 18px;
    font-family: var(--font-mono);
    color: #ffffff;
    font-size: 0.7rem;
    pointer-events: none;
    display: none;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 163, 224, 0.25);
    max-width: 260px;
    line-height: 1.5;
}
.map-tooltip h5 {
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Checkout Layout (Dedicated Fallback) --- */
.main-wrapper {
    width: 90%;
    max-width: 1400px;
    margin: 50px auto;
}
.grid-row-2col {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    border: 1px solid var(--border-color);
}
@media (max-width: 968px) {
    .grid-row-2col { grid-template-columns: 1fr; }
}
.grid-cell { padding: 40px; }
.grid-cell h2 {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}
.form-group { margin-bottom: 25px; }
.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}
.form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #d4d4d8;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
}
.form-group input:focus { border-color: #000000; }
.form-note {
    font-size: 0.7rem;
    color: #71717a;
    margin-top: 6px;
    font-family: var(--font-mono);
}

/* --- Global Layout Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 40px 20px;
    font-size: 0.75rem;
    color: #71717a;
    background: #ffffff;
    margin-top: 80px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}
footer div { margin-bottom: 5px; }
footer div:last-child { margin-bottom: 0; }

/* Seamless transition preloader bypass override */
body.seamless-active #splash-preloader {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}
