/* VANTIX PHOTO SHIELD CSS */
/* Strict adherence to VANTIX Black & Gold Aesthetic */

.ps-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0; /* Align perfectly with the top of the sidebar */
}

/* SIDEBAR */
.ps-sidebar {
    flex: 0 0 300px;
    position: sticky;
    top: 6rem;
    height: max-content;
}
.product-card {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.badge-live {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #10B981;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 1px;
}
.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.btn-back {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.btn-back:hover {
    color: #FFC107;
}

/* MAIN CONTENT */
.ps-main {
    width: 100%;
    max-width: 800px;
}
.device-frame {
    background: #000;
    border: 8px solid #222;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    min-height: 800px;
}
.app-interface {
    background: #0a0a0a;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.app-header {
    background: #111;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.app-header h2 {
    color: #FFC107;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin: 0;
}
.app-state {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* UPLOAD ZONE */
.upload-zone {
    border: 2px dashed rgba(255, 193, 7, 0.3);
    border-radius: 20px;
    padding: 3rem 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.upload-zone.dragover {
    background: rgba(255, 193, 7, 0.05);
    border-color: #FFC107;
}
.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.hidden-input {
    display: none;
}

/* SCANNING STATE */
#stateScanning {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.scanning-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}
.pulse-ring {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 3px solid #FFC107;
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-out;
}
.pulse-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
}
@keyframes pulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* DASHBOARD & PREVIEW */
.preview-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #111;
}
.preview-container img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 40vh;
    object-fit: contain;
}
.success-toast {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #10B981;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

/* CHIPS / TABS */
.chip-group {
    display: flex;
    gap: 0.5rem;
    background: #111;
    padding: 0.25rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}
.chip {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    padding: 0.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}
.chip.active {
    background: #222;
    color: #FFC107;
}
.panel.hidden {
    display: none;
}

/* STATUS CARDS */
.status-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    gap: 1rem;
}
.status-card.safe {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}
.status-card.danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}
.status-icon {
    font-size: 1.5rem;
}
.status-text {
    font-weight: 600;
}

/* DATA GRID */
.data-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.data-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.iphone-info-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}
.iphone-info-value {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
    transition: all 0.3s ease;
}
.iphone-info-value.stripped-data {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.3);
}
.data-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}
.data-value {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
    max-width: 60%;
}

/* LEAFLET MAP */
.map-container {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.leaflet-map {
    height: 100%;
    width: 100%;
}

/* TOGGLES */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider {
    background-color: #FFC107;
}
input:checked + .slider:before {
    transform: translateX(20px);
    background-color: #000;
}
.slider.round {
    border-radius: 24px;
}
.slider.round:before {
    border-radius: 50%;
}

/* BUTTONS & INPUTS */
.btn-primary {
    background: linear-gradient(135deg, #FFD54F, #FFC107);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    text-align: center;
}
.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.75rem 2rem;
    cursor: pointer;
    text-align: center;
}
.form-control-sm {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
}
.form-control-sm:focus {
    outline: none;
    border-color: #FFC107;
}

/* TYPOGRAPHY UTILS */
.text-h3 { color: #fff; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.text-muted { color: rgba(255,255,255,0.6); }
.text-gold { color: #FFC107; }

/* UTILITIES */
.hidden { display: none !important; }
.w-full { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.pt-4 { padding-top: 1rem; }

/* RESPONSIVE: VANISH SIDEBAR ON MOBILE */
@media (max-width: 991px) {
    .ps-sidebar {
        display: none;
    }
    .ps-layout {
        padding: 0;
    }
    .device-frame {
        border: none;
        border-radius: 0;
        min-height: 100vh;
    }
}

/* =========================================
   IPHONE 17 PRO CHASSIS UI OVERHAUL
   ========================================= */
.iphone-17-chassis {
    width: 100%;
    max-width: 430px;
    height: calc(100vh - 10rem);
    max-height: 932px;
    min-height: 650px;
    margin-bottom: 6rem; /* Huge gap between chassis and the text below it */
    background-color: #000;
    border-radius: 56px;
    border: 8px solid #1a1a1a;
    box-shadow: 0 0 50px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(255,255,255,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    position: relative;
    --color-primary: #d4af37;
    --color-surface: #0c1324;
    --color-on-surface: #dce1fb;
    --color-on-surface-variant: #d0c5af;
    --color-success: #10B981;
    --color-absolute-black: #000000;
    --font-display: 'Inter', sans-serif;
    color: var(--color-on-surface);
    font-family: var(--font-display);
}

.iphone-17-chassis * {
    box-sizing: border-box;
}

.iphone-dynamic-island {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 35px;
    background: #000;
    border-radius: 999px;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 0 1px 1px rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
    pointer-events: none;
}
.iphone-dynamic-island-cam {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0c0c0c;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}
.iphone-dynamic-island-cam::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #080808;
    opacity: 0.5;
}

.iphone-top-bar {
    position: absolute;
    top: 12px; /* Perfectly match dynamic island top */
    left: 0;
    width: 100%;
    height: 35px; /* Perfectly match dynamic island height */
    z-index: 50;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.iphone-top-bar::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}
.iphone-top-bar h1 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin: 0;
    text-transform: uppercase;
}
.iphone-top-bar button {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    transition: opacity 0.3s, transform 0.1s;
    padding: 8px;
}
.iphone-top-bar button:active {
    transform: scale(0.95);
}

.iphone-main-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 0; /* Push to absolute top to use full screen space */
    background-color: var(--color-surface);
    min-height: 0; /* CRITICAL: Enables internal flex scrolling */
}

.iphone-ambient-bg {
    position: absolute;
    top: -10%; left: -10%; right: -10%; bottom: -10%;
    background-size: cover;
    background-position: center;
    filter: blur(60px) saturate(180%);
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
    pointer-events: none;
}
.iphone-ambient-bg.active {
    opacity: 0.5;
}

.iphone-canvas-area {
    height: 50%;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    z-index: 1;
}
.iphone-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0; /* Span perfectly to the phone frame */
    overflow: hidden;
    border: none; /* Seamless integration */
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050505; /* Deep black to blend with notch */
    transition: all 0.5s;
    cursor: pointer;
}
.iphone-image-container:hover {
    box-shadow: 0 0 30px rgba(212,175,55,0.1);
}
.iphone-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Maintain strict aspect ratio */
    object-position: center;
    display: none;
}
.iphone-image-container img.active {
    display: block;
}
.iphone-upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(212,175,55,0.8); /* Brighter gold */
    position: absolute;
    top: 25%;
    transform: translateY(-50%);
}
.iphone-upload-prompt.hidden {
    display: none;
}
.iphone-upload-prompt span.material-symbols-outlined {
    font-size: 30px;
}
.iphone-upload-prompt span.text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.iphone-protected-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    display: none;
}
.iphone-protected-badge.active {
    display: flex;
}
.iphone-protected-badge span.material-symbols-outlined {
    font-size: 14px;
    color: var(--color-success);
}
.iphone-protected-badge span.text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-success);
}
.iphone-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
    display: none;
}
.iphone-close-btn:hover {
    background: rgba(0,0,0,0.6);
}
.iphone-close-btn.active {
    display: flex;
}

.iphone-control-area {
    position: relative;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(12, 19, 36, 0.45); /* True glass transparency */
    backdrop-filter: blur(40px); /* Heavy blur for premium depth */
    -webkit-backdrop-filter: blur(40px);
    border-top: 1px solid rgba(255,255,255,0.15);
    border-radius: 32px 32px 0 0;
    z-index: 10;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    min-height: 0; /* CRITICAL: Enables internal flex scrolling */
}

.iphone-tab-bar {
    width: 100%;
    overflow-x: auto;
    padding: 24px 16px 16px 16px;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.iphone-tab-bar::-webkit-scrollbar {
    display: none;
}
.iphone-tab-button {
    padding: 6px 14px; /* Sleeker padding */
    border-radius: 999px;
    border: 1px solid var(--color-primary);
    background: var(--color-primary); /* Golden color for all */
    color: #000; /* Black text */
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    opacity: 0.5; /* Inactive ones are slightly faded */
}
.iphone-tab-button:hover {
    opacity: 0.8;
}
.iphone-tab-button:active {
    transform: scale(0.92); /* Subtle click animation */
}
.iphone-tab-button.active {
    opacity: 1; /* Fully opaque */
    box-shadow: 0 0 15px rgba(212,175,55,0.4);
}
.iphone-tab-button span.material-symbols-outlined {
    font-size: 16px;
}

.iphone-tab-contents {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 32px 16px;
    overflow-y: auto;
    width: 100%;
    min-height: 0; /* CRITICAL: Enables internal flex scrolling */
}

.iphone-tab-content {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 8px; /* Ultra-sleek gap */
    animation: fadeInTab 0.3s ease-in-out;
}
.iphone-tab-content.active {
    display: flex;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.iphone-glass-element {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 8px 12px; /* Ultra-sleek padding */
}
.iphone-input {
    width: 100%;
    padding: 10px 12px; /* Sleeker inputs */
    color: var(--color-on-surface);
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
}
.iphone-input::placeholder {
    color: rgba(208, 197, 175, 0.4);
}
.iphone-input:focus {
    border-color: rgba(212,175,55,0.5);
    box-shadow: 0 0 10px rgba(212,175,55,0.1);
}

.iphone-slider-container {
    width: 100%;
    padding: 0 4px;
}
.iphone-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}
.iphone-slider-title {
    font-size: 14px;
    color: var(--color-on-surface);
    opacity: 0.9;
    font-weight: 500;
}
.iphone-slider-value {
    font-family: monospace;
    font-size: 12px;
    color: var(--color-primary);
    opacity: 0.8;
}
.iphone-slider-wrap {
    position: relative;
    height: 16px;
    display: flex;
    align-items: center;
}
.iphone-slider {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 10;
}
.iphone-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.iphone-slider:hover::-webkit-slider-thumb {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    transform: scale(1.1);
}
.iphone-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
}
.slider-progress {
    background: linear-gradient(90deg, var(--color-primary) var(--value, 85%), rgba(255, 255, 255, 0.1) var(--value, 85%));
}

.iphone-btn-primary {
    width: 100%;
    background: var(--color-primary);
    color: #000;
    font-size: 14px;
    font-weight: 700;
    padding: 12px; /* Thinner, slicker primary button */
    border-radius: 999px;
    border: none;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(212,175,55,0.3);
    cursor: pointer;
}
.iphone-btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 0 20px rgba(212,175,55,0.5);
}
.iphone-btn-primary:active {
    transform: scale(0.92); /* Subtle click animation */
}

.iphone-info-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 12px;
}
.iphone-info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.iphone-info-label {
    color: var(--color-on-surface-variant);
    font-size: 12px;
}
.iphone-info-value {
    color: var(--color-on-surface);
    font-size: 14px;
}

.iphone-pro-teaser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(212,175,55,0.2);
    cursor: pointer;
    transition: background 0.3s;
}
.iphone-pro-teaser:hover {
    background: rgba(255,255,255,0.05);
}
.iphone-pro-teaser .left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.iphone-pro-teaser .icon-box {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(212,175,55,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.iphone-pro-teaser .icon-box span {
    font-size: 16px;
    color: var(--color-primary);
}
.iphone-pro-teaser .text {
    font-size: 12px;
    color: var(--color-on-surface-variant);
}
.iphone-pro-teaser .lock {
    font-size: 16px;
    color: rgba(212,175,55,0.6);
}

.iphone-map-placeholder {
    width: 100%;
    height: 128px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.iphone-map-placeholder span.material-symbols-outlined {
    font-size: 36px;
    color: rgba(208, 197, 175, 0.2);
}
.iphone-map-placeholder .data-present {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.iphone-map-placeholder .data-present .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: pulse 1.5s infinite;
}
.iphone-map-placeholder .data-present .text {
    font-size: 10px;
    color: rgba(220, 225, 251, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 1023px) {
    /* 1. Hide the master layout elements to simulate a native app */
    .product-hero-sticky,
    header,
    nav,
    footer,
    .site-footer {
        display: none !important;
    }

    /* 2. Strip all padding and margins from the master container */
    .product-page-shell {
        padding: 0 !important;
        min-height: 100dvh !important;
    }
    .product-page-shell .container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    .product-grid-layout {
        gap: 0 !important;
    }
    .product-app-container {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 3. Transform the chassis into a full-bleed viewport */
    .iphone-17-chassis {
        border-radius: 0 !important;
        border: none !important;
        height: 100dvh !important; /* Use dynamic viewport height for mobile browsers */
        max-height: none !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    /* 4. Pad the marketing content so it doesn't touch edges if scrolled */
    .marketing-content {
        padding: 24px !important;
        margin-top: 4rem !important;
    }
}
