/* ==========================================================================
   LIGHTWEB — RETRO MONOCHROME GRUNGE AESTHETIC DESIGN SYSTEM
   Vintage Editorial / Photocopied Zine / Underground Studio Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Space+Grotesk:wght@500;600;700;800&family=Rubik+Dirt&display=swap');

:root {
    --bg-canvas: #0B0B0B;
    --bg-container: #0F0F0F;
    --surface-charcoal: #171717;
    --surface-paper: #DDD7C9;
    --surface-paper-light: #E5E0D6;
    --text-primary: #F0EDE5;
    --text-muted: #8E8A82;
    --text-paper: #121212;
    --text-paper-muted: #5C574F;
    --border-chalk-faded: rgba(240, 237, 229, 0.22);
    --border-chalk-strong: rgba(240, 237, 229, 0.55);
    --border-paper: #1F1D1A;
    --btn-dark: #171717;
    --btn-dark-hover: #242424;
    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-hand: 'Caveat', cursive;
}

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

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-mono);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px 48px;
    position: relative;
}

/* Vintage Photocopy Noise & Vignette Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    background-image: 
        radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.7) 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
    opacity: 0.9;
}

/* Diagonal Faint Crease Lines */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 998;
    background: 
        linear-gradient(115deg, transparent 48%, rgba(255, 255, 255, 0.015) 49%, rgba(0, 0, 0, 0.08) 50%, transparent 52%),
        linear-gradient(205deg, transparent 65%, rgba(255, 255, 255, 0.012) 66%, rgba(0, 0, 0, 0.06) 67%, transparent 68%);
}

/* Main Container Frame */
.grunge-container {
    width: 100%;
    max-width: 440px;
    background: var(--bg-container);
    border: 1px solid var(--border-chalk-faded);
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.9),
        0 15px 40px rgba(0, 0, 0, 0.8),
        inset 0 0 80px rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 28px 20px 32px;
    position: relative;
    z-index: 10;
}

/* Subtle Distressed Corner Marks */
.grunge-container::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px dashed rgba(240, 237, 229, 0.08);
    border-radius: 4px;
    pointer-events: none;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.gw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
}

.gw-brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gw-star-icon {
    width: 32px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gw-star-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 1.5;
}

.gw-brand-text {
    display: flex;
    flex-direction: column;
}

.gw-brand-title {
    font-family: 'Rubik Dirt', var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    line-height: 1.05;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.15), -1px -1px 0 rgba(0,0,0,0.8);
}

.gw-brand-subtitle {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 3px;
}

.gw-menu-btn,
.gw-logout-btn {
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid var(--border-chalk-faded);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.gw-menu-btn:hover,
.gw-logout-btn:hover {
    border-color: #F87171;
    color: #F87171;
    background: rgba(248, 113, 113, 0.08);
    transform: scale(1.05);
}

.gw-logout-btn svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.2s ease;
}

.gw-logout-btn:hover svg {
    transform: translateX(2px);
}

.gw-menu-btn span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.2s ease;
}

/* ==========================================================================
   ACCOUNT DETAILS CARD
   ========================================================================== */
.gw-account-card {
    background-color: var(--surface-paper);
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(0,0,0,0.03) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.04'/%3E%3C/svg%3E");
    border: 2px solid var(--border-paper);
    border-radius: 14px;
    padding: 20px 18px 18px;
    position: relative;
    margin-bottom: 26px;
    box-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.7),
        inset 0 0 25px rgba(0, 0, 0, 0.06);
    color: var(--text-paper);
}

/* Hand-drawn Note Top Right */
.gw-card-note {
    position: absolute;
    top: 8px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.gw-card-note-text {
    font-family: var(--font-hand);
    font-size: 1.05rem;
    color: #2b2823;
    line-height: 1.1;
    transform: rotate(-3deg);
    font-weight: 700;
}

.gw-card-note-arrow {
    width: 28px;
    height: 34px;
    margin-right: 14px;
    margin-top: -2px;
}

.gw-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-paper);
    padding-bottom: 3px;
    display: inline-block;
    border-bottom: 1.5px solid var(--text-paper);
    margin-bottom: 16px;
}

/* Card Detail Rows */
.gw-card-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gw-card-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 0;
    position: relative;
}

.gw-card-row:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 48px;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.gw-row-stamp-icon {
    width: 34px;
    height: 34px;
    background: #181715;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 1px 1px 0px rgba(0,0,0,0.3);
}

.gw-row-stamp-icon svg {
    width: 17px;
    height: 17px;
    stroke: var(--text-primary);
    stroke-width: 2;
    fill: none;
}

.gw-row-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gw-row-label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-paper-muted);
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.gw-row-value {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-paper);
    letter-spacing: 0.02em;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Masked Password Row */
.gw-mask-toggle {
    background: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    padding: 3px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gw-mask-toggle:hover {
    border-color: #000;
    background: rgba(0, 0, 0, 0.08);
    transform: scale(1.05);
}

.gw-mask-toggle svg {
    width: 18px;
    height: 18px;
    stroke: #181715;
    stroke-width: 1.8;
    fill: none;
}

/* ==========================================================================
   UPDATE FORM SECTIONS
   ========================================================================== */
.gw-form-section {
    margin-bottom: 20px;
}

.gw-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.gw-section-label {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #D4CEBE;
    white-space: nowrap;
}

.gw-section-line {
    display: inline-block;
    margin-left: 6px;
    color: rgba(240, 237, 229, 0.35);
    letter-spacing: -2px;
}

/* High-contrast Input Container */
.gw-input-box {
    display: flex;
    align-items: center;
    background-color: var(--surface-paper-light);
    border: 2px solid #1C1A17;
    border-radius: 10px;
    padding: 0 12px 0 0;
    height: 48px;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    position: relative;
}

.gw-input-box:focus-within {
    border-color: #F0EDE5;
    box-shadow: 0 0 0 2px rgba(240, 237, 229, 0.5), 2px 2px 0px rgba(0, 0, 0, 0.5);
    background-color: #FFFDF9;
}

.gw-input-icon-slot {
    width: 44px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1.5px solid rgba(0, 0, 0, 0.18);
    margin-right: 12px;
    flex-shrink: 0;
}

.gw-input-icon-slot svg {
    width: 18px;
    height: 18px;
    stroke: #222;
    stroke-width: 2;
    fill: none;
}

.gw-input-field {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 500;
    color: #121212;
    letter-spacing: 0.02em;
    height: 100%;
    min-width: 0;
}

.gw-input-field::placeholder {
    color: #7A7469;
    font-style: normal;
    letter-spacing: 0.02em;
}

/* Password reveal inside input */
.gw-input-eye-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: #444;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.gw-input-eye-btn:hover {
    color: #000;
    transform: scale(1.1);
}

.gw-input-eye-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Update Button with Distressed Spurt Accents */
.gw-btn-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    position: relative;
    padding: 0 4px;
}

.gw-sparks {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    user-select: none;
    opacity: 0.7;
}

.gw-sparks-left {
    margin-right: 8px;
}

.gw-sparks-right {
    margin-left: 8px;
}

.gw-update-btn {
    flex-grow: 1;
    background-color: var(--surface-charcoal);
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 0%, transparent 80%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' opacity='0.05'/%3E%3C/svg%3E");
    color: var(--text-primary);
    border: 1.5px solid var(--border-chalk-strong);
    border-radius: 22px;
    height: 44px;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.gw-update-btn:hover {
    background-color: var(--btn-dark-hover);
    border-color: var(--text-primary);
    box-shadow: 
        0 6px 14px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(240, 237, 229, 0.15);
    transform: translateY(-1px);
}

.gw-update-btn:active {
    transform: translateY(1px) scale(0.99);
}

.gw-btn-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 1.05rem;
}

.gw-update-btn:hover .gw-btn-arrow {
    transform: translateX(5px);
}

/* ==========================================================================
   FOOTER GRAPHICS & ACCENTS
   ========================================================================== */
.gw-footer-accents {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px dashed rgba(240, 237, 229, 0.12);
    position: relative;
}

.gw-footer-left {
    display: flex;
    flex-direction: column;
}

.gw-hand-note {
    font-family: var(--font-hand);
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.15;
    font-weight: 700;
    transform: rotate(-3deg);
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.gw-hand-arrow {
    margin-top: 2px;
    margin-left: 20px;
    width: 24px;
    height: 18px;
}

.gw-footer-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gw-orbital-motif {
    width: 58px;
    height: 58px;
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.gw-orbital-motif:hover {
    opacity: 1;
    transform: rotate(15deg);
}

.gw-orbital-motif svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-primary);
    stroke-width: 1.2;
    fill: none;
}

/* ==========================================================================
   SLIDE-OUT MENU DRAWER / MODAL
   ========================================================================== */
.gw-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gw-drawer-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.gw-drawer {
    width: 90%;
    max-width: 380px;
    background: #111111;
    border: 2px solid var(--border-chalk-strong);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
    padding: 24px 20px;
    position: relative;
    color: var(--text-primary);
}

.gw-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-chalk-faded);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.gw-drawer-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gw-drawer-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease;
}

.gw-drawer-close:hover {
    color: var(--text-primary);
}

.gw-drawer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gw-drawer-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 10px 12px;
}

.gw-drawer-item-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gw-drawer-item-val {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 3px;
    word-break: break-all;
}

.gw-drawer-btn {
    width: 100%;
    margin-top: 14px;
    padding: 11px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gw-drawer-btn-danger {
    background: transparent;
    border: 1.5px solid #A83232;
    color: #F87171;
}

.gw-drawer-btn-danger:hover {
    background: #A83232;
    color: #FFFFFF;
}

.gw-drawer-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.gw-drawer-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   STAMPED TOAST NOTIFICATION
   ========================================================================== */
.gw-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #141414;
    border: 1.5px solid var(--border-chalk-strong);
    border-radius: 8px;
    padding: 10px 18px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 90%;
}

.gw-toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.gw-toast-success {
    border-color: #6EE7B7;
    color: #E6FFFA;
}

.gw-toast-failed {
    border-color: #F87171;
    color: #FEE2E2;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   PANEL DATA VIEWER & OWNER MANAGEMENT STYLES
   ========================================================================== */
.gw-panel-wide {
    max-width: 680px;
}

.gw-sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0B0B0B;
    border-bottom: 1px solid var(--border-chalk-faded);
    padding: 14px 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gw-panel-wide {
    max-width: 520px;
    width: 100%;
}

.gw-sticky-footer {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: #0B0B0B;
    border-top: 1px solid var(--border-chalk-faded);
    padding: 12px 0;
    margin-top: 24px;
    display: flex;
    justify-content: stretch;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.gw-footer-btn {
    flex: 1;
    min-width: 0;
    background: #171717;
    color: var(--text-primary);
    border: 1px solid var(--border-chalk-faded);
    border-radius: 6px;
    padding: 9px 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gw-footer-btn:hover {
    border-color: var(--text-primary);
    background: #252525;
    transform: translateY(-1px);
}

.gw-data-card {
    background: #141414;
    border: 1.5px solid var(--border-chalk-faded);
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.gw-data-card:hover {
    border-color: var(--border-chalk-strong);
}

.gw-data-header {
    background: #1A1A1A;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    user-select: none;
    transition: background 0.15s ease;
    box-sizing: border-box;
    gap: 8px;
}

.gw-data-header:hover {
    background: #222222;
}

.gw-data-header.unbold {
    font-weight: 500;
    opacity: 0.85;
}

.gw-data-details {
    background-color: var(--surface-paper);
    color: var(--text-paper);
    padding: 14px;
    border-top: 1.5px solid #1C1A17;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    line-height: 1.6;
    box-sizing: border-box;
}

.gw-data-details.hidden {
    display: none;
}

.gw-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    gap: 8px;
    box-sizing: border-box;
}

.gw-data-row strong {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4A453E;
    flex-shrink: 0;
}

.gw-copyable {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.06);
    color: #121212;
    font-weight: 600;
    transition: all 0.15s ease;
    word-break: break-all;
    overflow-wrap: anywhere;
    text-align: right;
    max-width: 75%;
}

.gw-copyable:hover {
    background: #121212;
    color: #F0EDE5;
}

.gw-check-toggle-btn {
    background: #181818;
    color: var(--text-primary);
    border: 1px solid rgba(0,0,0,0.6);
    border-radius: 6px;
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    float: right;
}

.gw-check-toggle-btn:hover {
    background: #000;
    transform: scale(1.02);
}

.gw-link-card {
    background: #141414;
    border: 1.5px solid var(--border-chalk-faded);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    gap: 10px;
}

.gw-link-card:hover {
    border-color: var(--border-chalk-strong);
}

.gw-link-card-info {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.gw-link-card-info p {
    margin: 2px 0;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.gw-link-card-info p strong {
    color: var(--text-muted);
}

.gw-btn-del {
    background: transparent;
    color: #F87171;
    border: 1.5px solid rgba(248, 113, 113, 0.4);
    border-radius: 6px;
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-block;
    flex-shrink: 0;
}

.gw-btn-del:hover {
    background: #A83232;
    color: #FFFFFF;
    border-color: #A83232;
}

.gw-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.gw-modal-backdrop.hidden {
    display: none;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & OVERFLOW GUARDS
   ========================================================================== */
@media (max-width: 480px) {
    body {
        padding: 12px 8px 36px;
    }

    .grunge-container {
        padding: 20px 12px 24px;
        border-radius: 6px;
        max-width: 100%;
    }

    .gw-panel-wide {
        padding: 16px 10px 20px;
    }

    .gw-brand-title {
        font-size: 1.25rem !important;
    }

    .gw-brand-subtitle {
        font-size: 0.6rem !important;
        letter-spacing: 0.08em !important;
    }

    .gw-data-header {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .gw-data-details {
        padding: 12px;
        font-size: 0.82rem;
    }

    .gw-link-card {
        padding: 10px 12px;
        gap: 8px;
    }

    .gw-link-card-info {
        font-size: 0.78rem;
    }

    .gw-btn-del {
        padding: 5px 10px;
        font-size: 0.74rem;
    }

    .gw-sticky-footer {
        padding: 10px 0;
        gap: 6px;
    }

    .gw-footer-btn {
        padding: 8px 6px;
        font-size: 0.75rem;
        gap: 4px;
    }
}

@media (max-width: 360px) {
    .grunge-container {
        padding: 16px 8px 20px;
    }

    .gw-footer-btn {
        font-size: 0.7rem;
        padding: 7px 4px;
    }
}

