:root {
    /* Background Gradient */
    --bg-primary: #0a0a1a;
    --bg-secondary: #1a1a2e;
    --bg-accent: #16213e;
    /* Glass Surfaces */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --glass-active: rgba(255, 255, 255, 0.12);
    /* Text */
    --text-primary: #e0e0ff;
    --text-secondary: #8888aa;
    --text-accent: #7c83ff;
    /* Status */
    --color-success: #00e676;
    --color-progress: #448aff;
    --color-error: #ff5252;
    --color-warning: #ffab40;
    /* Glow */
    --glow-primary: rgba(124, 131, 255, 0.3);
    --glow-success: rgba(0, 230, 118, 0.3);
    /* Fonts */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}

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

html {
    background-color: #0a0a1a; /* Base dark color for viewport bleed prevention */
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: #0a0a1a;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Hardware accelerated non-lagging background overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 120vh; /* Covers dynamic mobile browser address bars */
    z-index: -1;
    background: linear-gradient(-45deg, var(--bg-primary), var(--bg-secondary), var(--bg-accent), var(--bg-primary));
    background-size: 400% 400%;
    animation: gradientShift 15s ease-in-out infinite;
    pointer-events: none;
    will-change: transform;
}

/* 2. Typography */
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 600; }
body { font-size: 0.95rem; font-weight: 400; }
small, .caption { font-size: 0.8rem; font-weight: 400; }
code, .mono { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 400; }

/* 3. Layout Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 4. Connection Status Bar */
.status-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 24px;
}

.status-bar-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-success);
    animation: pulse 2s infinite;
}

.status-bar.disconnected .status-dot {
    background-color: var(--color-error);
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* 5. Header Section */
.header {
    text-align: center;
    padding: 32px 0 8px;
}

.header .subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* 6. Glass Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
    margin-bottom: 24px;
}

/* 7. Upload Zone */
.upload-zone {
    min-height: 200px;
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-zone.drag-over {
    border-style: solid;
    border-color: var(--color-progress);
    background: var(--glass-hover);
    animation: dragPulse 2s infinite;
}

.upload-zone.drag-over .upload-icon {
    transform: scale(1.1);
}

.upload-icon {
    font-size: 3rem;
    transition: transform 0.3s;
}

.upload-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.upload-btn {
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: -8px 0;
}

.upload-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

.upload-zone.has-file .upload-icon {
    font-size: 2rem;
}

/* 8. Progress Section */
.progress-section {
    display: none;
}

.progress-section.active {
    display: block;
}

.progress-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 12px;
}

.progress-filename {
    font-size: 0.95rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 60%;
}

.progress-bar-track {
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--color-progress), #64b5f6);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s linear infinite;
}

.progress-bar-fill.complete {
    background: linear-gradient(90deg, var(--color-success), #00b35c);
}

.progress-bar-fill.error {
    background: var(--color-error);
}

.progress-stats {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.progress-section.complete {
    border: 1px solid var(--color-success);
    box-shadow: 0 0 12px var(--glow-success);
}

.progress-section.error {
    animation: shake 0.4s;
}

/* 9. File Table */
.file-table-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.refresh-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.refresh-btn.spinning svg {
    animation: spin 0.6s ease-in-out infinite;
}

.file-list {
    list-style: none;
}

.file-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
    gap: 16px;
}

.file-item:hover {
    background: var(--glass-hover);
}

.file-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-accent);
}

.file-info {
    flex: 1;
    min-width: 0; /* Essential for text-overflow ellipsis to function inside nested flexboxes */
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.file-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.meta-separator {
    color: var(--text-secondary);
    opacity: 0.4;
}

.file-download, .download-btn {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.file-download:hover, .download-btn:hover {
    box-shadow: 0 0 12px var(--glow-primary);
    background: var(--glass-hover);
}

.file-size {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    white-space: nowrap;
    flex-shrink: 0;
}

.file-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.file-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.file-list-empty, .empty-msg {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    list-style: none;
}

.error-msg {
    text-align: center;
    padding: 40px;
    color: var(--color-error);
    font-size: 0.95rem;
    list-style: none;
}

.file-download:hover {
    box-shadow: 0 0 12px var(--glow-primary);
}

.file-list-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.file-list-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0, 0, 0, 0.08);
}

.file-list-footer span {
    color: var(--text-primary);
    font-weight: 500;
}

.file-list-footer span.footer-separator {
    width: 4px;
    height: 4px;
    background: var(--text-secondary);
    border-radius: 50%;
    opacity: 0.3;
    display: inline-block;
    margin: 0 4px;
}

.footer-separator, .progress-stat-separator {
    color: var(--text-secondary);
    opacity: 0.4;
}

.footer-separator::before, .progress-stat-separator::before {
    content: '\00B7';
}

/* 10. Footer */
.footer {
    text-align: center;
    padding: 24px 0 32px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 11. Glass Button Base */
.glass-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 10px 20px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.glass-btn:hover {
    background: var(--glass-hover);
    box-shadow: 0 0 20px var(--glow-primary);
}

.glass-btn:active {
    background: var(--glass-active);
    transform: scale(0.98);
}

.glass-btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--text-accent);
    outline-offset: 2px;
}

/* 12. Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

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

@keyframes successPulse {
    0% { box-shadow: 0 0 0 0 var(--glow-success); }
    70% { box-shadow: 0 0 0 12px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes dragPulse {
    0%, 100% { border-color: var(--color-progress); }
    50% { border-color: var(--text-accent); }
}

/* 13. Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

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

/* 15. Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .upload-zone {
        min-height: 160px;
    }
    
    .progress-stats {
        flex-wrap: wrap;
    }
    
    .file-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .file-info {
        width: 100%;
        margin-bottom: 4px;
    }
    
    .file-meta {
        display: block;
    }
    
    .file-download {
        width: 100%;
    }
    
    .glass-btn, button, .upload-btn, .file-download {
        min-height: 44px;
    }
}

/* 16. Connection Card & Deletion Styles */
.connection-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.qr-code-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.qr-code-image {
    width: 130px;
    height: 130px;
    display: block;
}

.connection-text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.connection-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.connection-url-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.connection-url {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-accent);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 10px 16px;
    border-radius: 10px;
    display: inline-block;
    word-break: break-all;
    user-select: all;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ip-selector-wrapper {
    margin-top: 10px;
}

.ip-selector-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.ip-pills-list {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex-wrap: wrap;
}

.ip-pill {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ip-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--text-accent);
}

.ip-pill.active {
    background: var(--text-accent);
    color: #ffffff;
    border-color: var(--text-accent);
    box-shadow: 0 0 10px var(--glow-primary);
}

.connection-help-box {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--glass-border);
}

.help-box-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-warning);
}

.help-box-list {
    margin-top: 6px;
    padding-left: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Delete Button */
.delete-btn {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.2);
    color: #ff8a8a;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.delete-btn:hover {
    background: rgba(255, 82, 82, 0.2);
    border-color: rgba(255, 82, 82, 0.5);
    box-shadow: 0 0 12px rgba(255, 82, 82, 0.25);
    color: #ff5252;
}

/* Responsive adjustment for connection card and file item buttons */
@media (max-width: 768px) {
    #connection-card {
        display: none !important;
    }

    .connection-layout {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .connection-text-wrapper {
        align-items: center;
    }

    .file-info {
        width: calc(100% - 54px); /* 100% minus icon (38px) and gap (16px) */
        flex: none;
    }
    
    .file-actions {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        margin-top: 8px;
        gap: 8px;
    }
    
    .download-btn, .delete-btn {
        flex: 1;
        max-width: 120px;
        min-height: 40px;
        margin: 0 !important;
    }
}

/* 17. Custom Confirm Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 400px;
    padding: 24px;
    border-radius: 16px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.modal-message {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
    word-wrap: break-word;
    word-break: break-all;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.modal-actions button {
    flex: 1;
    max-width: 130px;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.danger-btn {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.2);
    color: #ff8a8a;
}

.danger-btn:hover {
    background: rgba(255, 82, 82, 0.25);
    border-color: rgba(255, 82, 82, 0.6);
    box-shadow: 0 0 12px rgba(255, 82, 82, 0.25);
    color: #ff5252;
}

/* 18. Clipboard Sharing Card & Textarea Panel */
.clipboard-card {
    margin-bottom: 24px;
}

.clipboard-input-wrapper {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-end;
    margin-top: 14px;
}

#clipboard-textarea {
    flex: 1;
    min-height: 56px;
    max-height: 180px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#clipboard-textarea:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--text-accent);
    box-shadow: 0 0 8px rgba(100, 180, 255, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#clipboard-share-btn {
    height: 56px;
    width: 56px;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
    flex-shrink: 0;
}

/* Shared Content Display Container */
.shared-text-container {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.shared-text-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.shared-text-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.shared-text-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-accent);
}

.compact-btn {
    padding: 4px 10px;
    min-height: 28px;
    font-size: 0.75rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.shared-text-raw {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 12px 16px;
    max-height: 250px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
}

/* Large Text Notice Card (Switcher Guard) */
.warning-card {
    background: rgba(255, 152, 0, 0.06);
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 12px;
}

.warning-icon {
    color: #ffb74d;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-info {
    flex: 1;
}

.warning-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffd54f;
    margin-bottom: 6px;
}

.warning-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.warning-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

/* Smart Action Chips */
.smart-chips-wrapper {
    margin-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 12px;
}

.chips-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.smart-chips-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
}

.smart-chip {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.smart-chip:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--text-accent);
    box-shadow: 0 0 8px rgba(100, 180, 255, 0.2);
    color: var(--text-accent);
}

.smart-chip svg {
    opacity: 0.8;
}

/* Developer Easter Egg Credits Modal */
.credits-card {
    max-width: 400px !important;
    padding: 32px 24px 24px !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.credits-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.credits-logo-glow {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--text-accent), #a0a5ff);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px var(--glow-primary);
    margin-bottom: 12px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.metric-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.metric-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--text-accent);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.credits-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 20px 0;
}

.credits-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.5;
}

.developer-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    line-height: 1.8;
    background: linear-gradient(45deg, #fff, var(--text-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.developer-est {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

.credits-socials {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-accent);
    color: var(--text-accent);
    box-shadow: 0 0 10px rgba(100, 180, 255, 0.25);
    transform: translateY(-2px);
}

/* Tablet & Mobile Layout Adaptations (Hardware Accelerated 60FPS) */
@media (max-width: 768px) {
    body::before {
        animation: none !important;
        background: linear-gradient(135deg, #0a0a1a 0%, #16213e 50%, #1a1a2e 100%) !important;
    }

    .glass-card {
        padding: 16px !important;
        margin-bottom: 16px !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(22, 33, 62, 0.92) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        transform: translateZ(0);
    }

    .clipboard-input-wrapper {
        gap: 8px;
    }

    #clipboard-textarea {
        font-size: 0.9rem;
        padding: 10px 12px;
        min-height: 48px;
    }

    #clipboard-share-btn {
        width: 48px;
        height: 48px;
        min-height: 48px;
        border-radius: 10px;
    }

    .warning-card {
        flex-direction: column;
        gap: 12px;
    }
    
    .warning-actions {
        width: 100%;
    }
    
    .warning-actions button {
        flex: 1;
    }
}

.exit-btn-compact {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 3px 8px;
    background: rgba(255, 82, 82, 0.15);
    border: 1px solid rgba(255, 82, 82, 0.3);
    border-radius: 6px;
    color: #ff6b6b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    transition: all 0.2s ease;
}

.exit-btn-compact:hover {
    background: rgba(255, 82, 82, 0.3);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 82, 82, 0.4);
}


