/* ========================================
   2FA.CX - Modern Dark Theme Design
   ======================================== */

:root {
    /* Color Palette - Light Theme (Default) */
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8fafc;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --accent-glow: rgba(99, 102, 241, 0.3);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-accent: #4f46e5;
    
    --border-color: rgba(148, 163, 184, 0.2);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px var(--accent-glow);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* Dark Mode Overrides */
body.dark-mode {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #161620;
    --bg-hover: #222230;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #a5b4fc;
    
    --border-color: rgba(148, 163, 184, 0.1);
    --border-hover: rgba(99, 102, 241, 0.3);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.main-header {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.nav-links {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100%;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.nav-link svg {
    opacity: 0.7;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.lang-code {
    font-size: 12px;
    font-weight: 600;
    margin-left: 4px;
}

/* Content */
.content {
    flex: 1;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title svg {
    stroke: var(--accent-primary);
}

.page-desc {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Tool Container */
.tool-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

/* Forms */
.form-section {
    margin-bottom: 32px;
}

.form-section:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.required {
    color: var(--accent-primary);
    margin-right: 4px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: 'SF Mono', 'Consolas', monospace;
}

.input-wrapper {
    position: relative;
}

.input-actions {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    gap: 8px;
}

.input-action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.input-action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
}

/* 2FA Specific */
.result-section {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.code-display {
    position: relative;
}

.code-input {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 8px;
    font-family: 'SF Mono', 'Consolas', monospace;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 30px var(--accent-glow);
}

.code-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    transition: width 1s linear;
}

.progress-bar.urgent {
    background: linear-gradient(90deg, var(--error), #f97316);
}

.result-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.countdown-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.countdown-box.urgent {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.countdown-icon {
    color: var(--accent-primary);
}

.countdown-box.urgent .countdown-icon {
    color: var(--error);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.countdown-label {
    color: var(--text-secondary);
}

.countdown-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-primary);
}

.countdown-box.urgent .countdown-value {
    color: var(--error);
}

.countdown-unit {
    color: var(--text-muted);
}

/* QR Section */
.qr-section {
    margin-top: 48px;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.qr-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-normal);
}

.qr-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.qr-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.qr-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
}

.qr-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Sponsors */
.sponsors-section {
    margin-top: 48px;
}

.sponsors-header {
    margin-bottom: 20px;
}

.sponsors-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    padding-left: 16px;
    border-left: 3px solid var(--accent-primary);
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.sponsor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    transition: all var(--transition-fast);
    aspect-ratio: 3/1;
}

.sponsor-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Footer */
.main-footer {
    margin-top: 48px;
    padding: 32px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 13px;
}

/* Floating Contact */
.floating-contact {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 180px;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.contact-header {
    background: var(--accent-gradient);
    color: white;
    padding: 14px;
    text-align: center;
    font-weight: 600;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.contact-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}

.contact-toggle {
    display: none;
}

/* Toast */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all var(--transition-normal);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.toast.success {
    border-left: 3px solid var(--success);
}

.toast.warning {
    border-left: 3px solid var(--warning);
}

.toast.error {
    border-left: 3px solid var(--error);
}

/* 2FA History */
.history-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.history-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

.btn-text {
    background: transparent;
    color: var(--accent-primary);
    padding: 6px 12px;
    font-size: 13px;
}

.btn-text:hover {
    background: var(--bg-hover);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.history-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.history-secret {
    flex: 1;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-time {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.history-use {
    padding: 6px 12px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.history-use:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Rate Status */
.rate-status {
    text-align: center;
    margin-bottom: 24px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 14px;
}

.rate-status .loading {
    color: var(--text-muted);
}

.rate-status .success {
    color: var(--success);
    font-weight: 500;
}

.rate-status .warning {
    color: var(--warning);
    font-weight: 500;
}

/* Emoji Page */
.emoji-search {
    margin-bottom: 24px;
}

.emoji-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 24px;
}

.emoji-cat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.emoji-cat-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.emoji-cat-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.cat-icon {
    font-size: 20px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 8px;
}

.emoji-item {
    aspect-ratio: 1;
    font-size: 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.emoji-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* Fancy Text */
.fancy-results {
    display: grid;
    gap: 16px;
}

.fancy-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-fast);
}

.fancy-card:hover {
    border-color: var(--border-hover);
}

.fancy-label {
    width: 100px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.fancy-output {
    flex: 1;
    font-size: 18px;
    color: var(--text-primary);
    word-break: break-all;
}

.fancy-copy {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.fancy-copy:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

/* Currency & Calculators */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row.three-col .form-group {
    flex: 1;
}

.form-group {
    flex: 1;
}

.currency-selectors {
    align-items: flex-end;
}

.swap-btn {
    margin-bottom: 8px;
}

.result-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.result-card.highlight {
    background: var(--accent-gradient);
    border-color: transparent;
}

.result-card.success {
    border-color: var(--success);
}

.result-card.warning {
    border-color: var(--warning);
}

.result-header {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Rate Source Badge */
.rate-source-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rate-source-badge.live {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.rate-source-badge.cache {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.rate-source-badge.default {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.result-card.highlight .result-label {
    color: rgba(255, 255, 255, 0.8);
}

.result-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
}

.result-value.small {
    font-size: 24px;
}

.result-card.highlight .result-value {
    color: white;
}

.result-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

/* Case Converter */
.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.output-wrapper {
    position: relative;
}

.copy-output {
    position: absolute;
    right: 12px;
    top: 12px;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.radio-label:hover {
    background: var(--bg-hover);
}

.radio-label input[type="radio"] {
    accent-color: var(--accent-primary);
}

.radio-label input[type="radio"]:checked + .radio-text {
    color: var(--accent-primary);
}

.radio-text {
    font-weight: 500;
    color: var(--text-primary);
}

.radio-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .qr-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .floating-contact {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .main-header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .main-nav {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-links {
        width: auto;
        flex: 1;
        justify-content: flex-start;
        gap: 2px;
        overflow-x: auto;
        padding: 4px 0;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .nav-link svg {
        width: 14px;
        height: 14px;
    }
    
    .tool-container {
        padding: 24px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .code-input {
        font-size: 28px;
        letter-spacing: 4px;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .countdown-box {
        width: 100%;
        justify-content: center;
    }
    
    .qr-grid {
        grid-template-columns: 1fr;
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .fancy-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .fancy-label {
        width: auto;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 8px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .tool-container {
        padding: 20px;
    }
    
    .code-input {
        font-size: 24px;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    }
    
    .emoji-item {
        font-size: 24px;
    }
}


/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* QR Code Images */
.qr-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    aspect-ratio: 1;
    object-fit: cover;
}

/* Footer Links */
.footer-links {
    margin-top: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

