/* Force nav bar to always be horizontal, overriding mobile responsive rule */
.c-nav {
    flex-direction: row !important;
}
/* Site title alignment in nav */
.site-title {
    display: flex;
    align-items: center;
    font-size: 1.15em;
    color: #d6e2f2;
    text-decoration: none;
    margin-right: 1.5em;
    height: 100%;

/*
 * frontend.css — Main stylesheet for Lockb0x dapp UI (Shard Import Layer)
 *
 * This file now acts as an import hub for modular CSS shards:
 *   - css/base.css        (reset, variables, utility classes)
 *   - css/layout.css      (containers, panels, flex/grid helpers)
 *   - css/components.css  (buttons, forms, nav, tables, alerts)
 *   - css/theme.css       (color schemes, dark/light mode)
 *   - css/responsive.css  (media queries, responsive utilities)
 *
 * Usage: Only add project-specific overrides here. All new styles should go in the appropriate shard.
 *
 * To use: In your HTML, import this file, which will cascade all shards.
 *
 * Example (in <head>):
 *   <link rel="stylesheet" href="lockb0x/frontend.css">
 *
 * Shard imports:
 */

@import url('css/base.css');
@import url('css/layout.css');
@import url('css/components.css');
@import url('css/theme.css');
@import url('css/responsive.css');

/* Project-specific overrides below (if needed) */
}
.nav-links li {
    display: flex;
    align-items: center;
}
.nav-links a {
    color: #d6e2f2;
    text-decoration: none;
    padding: 0 0.2em;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.underline {
    color: #35eaff;
    text-decoration: underline;
}
/* Ensure site header is full-width and not column-wrapped */
#site-header {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
    left: 0;
    top: 0;
    z-index: 1000;
}
#site-header header {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    display: block;
}
#site-header nav {
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    display: flex;
}
#site-header .flex {
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
}
@media (max-width: 900px) {
    .device-panel {
        width: 98vw;
        min-width: 0;
        max-width: 100vw;
        margin: 16px auto;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    .device-frame {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    #connect-metamask-container {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100vw !important;
        max-width: 500px !important;
        box-sizing: border-box;
    }
    #connect-metamask-container > div {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        box-sizing: border-box;
    }
}
/* Global page styling and animated background */
body {
    margin: 0;
    padding: 0;
    background-color: #03060f;
    color: #00ffff;
    font-family: "Share Tech Mono", monospace;
    /* Hex-pattern layers */
    background-image:
        radial-gradient(circle at 0 0, #0e1d2b 2%, rgba(0, 0, 0, 0) 3%),
        radial-gradient(circle at 10px 10px, #0e1d2b 2%, rgba(0, 0, 0, 0) 3%);
    background-size: 20px 20px;
    /* Animate the pattern positions for a “thinking” shimmer */
    animation: moveBackground 20s linear infinite;
}

/* Keyframes for the drifting background */
@keyframes moveBackground {
    0% {
        background-position: 0 0, 0 0;
    }

    50% {
        background-position: 20px 20px, 10px 10px;
    }

    100% {
        background-position: 0 0, 0 0;
    }
}

/* Container (control panel) styling */
.container {
    position: relative;
    max-width: 600px;
    margin: 80px auto;
    padding: 20px;
    background-color: rgba(3, 6, 15, 0.7);
    border: 2px solid #00ffff;
    border-radius: 8px;
    box-shadow: 0 0 20px #00ffff;
    overflow: hidden;
}

/* Pulsating neon border for the panel */
.container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 10px;
    pointer-events: none;
    animation: pulseBorder 4s infinite;
}

@keyframes pulseBorder {
    0% {
        box-shadow: 0 0 10px 2px rgba(0, 255, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 25px 6px rgba(0, 255, 255, 1);
    }

    100% {
        box-shadow: 0 0 10px 2px rgba(0, 255, 255, 0.4);
    }
}

/* Header styling */
.header {
    text-align: center;
    font-family: "Orbitron", sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #00ffff;
}

/* NFT gallery styling */
.nft-gallery {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.nft-gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 2px solid #00ffff;
    border-radius: 6px;
    background-color: #01121e;
}

/* Button styling */
.button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #01121e;
    color: #00ffff;
    font-size: 1.1rem;
    border: 2px solid #00ffff;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button:hover:not(:disabled) {
    background-color: #002a40;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status text styling */
#status {
    margin-top: 15px;
    text-align: center;
    min-height: 20px;
    color: #00ffcc;
}


#secretCodeLabel {
    display: none;
}

/* Dark Gunmetal Base ------------------------------------------------------ */

:root {
    --gunmetal-dark: #0b0d0f;
    --gunmetal-mid: #1a1d21;
    --gunmetal-light: #2a2f35;

    --accent-cyan: #35eaff;
    --accent-blue: #1b9cff;
    --accent-purple: #a455ff;
    --accent-green: #5bffb5;

    --warning-yellow: #ffd43b;
    --danger-red: #ff4b62;

    --panel-radius: 14px;
    --panel-border: 2px solid #101216;
    --panel-glow: 0 0 24px rgba(53, 234, 255, 0.15);
}

/* Root background */

body {
    background: var(--gunmetal-dark);
    margin: 0;
    padding: 0;
    color: #d6e2f2;
    font-family: 'Share Tech Mono', monospace;
    overflow-x: hidden;
}


/* Hologram Base64 Grid Overlay ------------------------------------------- */

.holo-overlay {
    position: fixed;
    pointer-events: none;
    width: 300%;
    height: 300%;
    top: -50%;
    left: -50%;
    opacity: 0.12;
    background-image: url("./textures/gunmetal-01.png");
    animation: drift 42s linear infinite;
    z-index: 0;
}

@keyframes drift {
    0% {
        transform: rotate(0deg) translate(0, 0);
    }

    100% {
        transform: rotate(360deg) translate(-20%, -20%);
    }
}

/* Panel Container --------------------------------------------------------- */

.device-panel {
    position: relative;
    background: var(--gunmetal-mid);
    border-radius: var(--panel-radius);
    border: var(--panel-border);
    margin: 40px auto;
    width: 820px;
    padding: 30px;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6), var(--panel-glow);
    z-index: 1;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.device-frame {
    border: 1px solid #3b4047;
    border-radius: var(--panel-radius);
    padding: 20px;
    background: linear-gradient(160deg, var(--gunmetal-mid) 30%, var(--gunmetal-dark) 90%);
    position: relative;
}

.device-frame::before,
.device-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--panel-radius);
    pointer-events: none;
}

.device-frame::before {
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.device-frame::after {
    border: 1px solid rgba(53, 234, 255, 0.12);
    mix-blend-mode: screen;
}

/* Title Screen ------------------------------------------------------------ */

.device-title {
    font-size: 28px;
    margin-bottom: 18px;
    color: var(--accent-cyan);
    text-shadow: 0 0 6px rgba(53, 234, 255, 0.6);
    letter-spacing: 2px;
}

/* Section Headings */

.section-title {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--accent-blue);
    text-shadow: 0 0 5px rgba(27, 156, 255, 0.4);
}

/* Controls --------------------------------------------------------------- */

label {
    font-size: 13px;
    text-transform: uppercase;
    opacity: 0.85;
    letter-spacing: 1px;
}

input[type="range"] {
    width: 100%;
    margin: 8px 0 14px 0;
    appearance: none;
    background: #15181c;
    height: 6px;
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(53, 234, 255, 0.6);
}

select {
    background: #121418;
    color: #d6e2f2;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #3b4047;
    width: 100%;
    margin-bottom: 12px;
}

/* Tier Selection ---------------------------------------------------------- */

.tier-panel {
    margin-top: 20px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #30363d;
    background: #0f1114;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
}

.tier-panel.standard {
    border-color: #1b9cff;
    box-shadow: 0 0 12px rgba(27, 156, 255, 0.4);
}

.tier-panel.intermediate {
    border-color: #5bffb5;
    box-shadow: 0 0 12px rgba(91, 255, 181, 0.4);
}

.tier-panel.premium {
    border-color: #ff4b62;
    box-shadow: 0 0 12px rgba(255, 75, 98, 0.4);
}

/* Buttons --------------------------------------------------------------- */

button {
    background: linear-gradient(135deg, #0e1115, #1b1f25);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 10px 20px;
    color: var(--accent-cyan);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.2s ease-in-out;
    box-shadow: 0 0 8px rgba(53, 234, 255, 0.2);
}

button:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(53, 234, 255, 0.4);
}

/* SVG Preview ----------------------------------------------------------- */

#preview-container {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #3b4047;
    border-radius: 10px;
    background: linear-gradient(160deg, #13161a, #0d0f12);
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8);
    text-align: center;
}

#preview {
    width: 260px;
    height: 260px;
}

/* Verify Page Scanner Look ---------------------------------------------- */

.verify-slot {
    margin-top: 40px;
    background: #0a0c0f;
    padding: 26px;
    border: 2px dashed #2c3138;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    opacity: 0.85;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}