/* ===== Canonix Share — Premium Dark Theme ===== */

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(167, 139, 250, 0.3);

    --accent-primary: #a78bfa;
    --accent-secondary: #c4b5fd;
    --accent-glow: rgba(167, 139, 250, 0.15);
    --accent-gradient: linear-gradient(135deg, #a78bfa 0%, #818cf8 50%, #6366f1 100%);

    --text-primary: #f1f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;

    --success: #34d399;
    --error: #f87171;
    --warning: #fbbf24;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(167, 139, 250, 0.1);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(167, 139, 250, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(129, 140, 248, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Layout ===== */
.app-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header ===== */
.header {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 1.6rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.4));
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f1f0f5 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ===== Glass Card ===== */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transition: var(--transition);
    width: 100%;
    max-width: 420px;
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(167, 139, 250, 0.12);
}

/* ===== Home Cards ===== */
.home-cards {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 900px;
}

.home-card {
    cursor: pointer;
    text-align: center;
    padding: 2.5rem 2rem;
    max-width: 380px;
    flex: 1;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

.home-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    border-radius: inherit;
}

.home-card:hover::after {
    opacity: 0.04;
}

.home-card > * {
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.2rem;
    border-radius: var(--radius-lg);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    transition: var(--transition);
}

.home-card:hover .card-icon {
    transform: scale(1.1);
    background: rgba(167, 139, 250, 0.2);
    box-shadow: 0 0 24px rgba(167, 139, 250, 0.2);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(167, 139, 250, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(167, 139, 250, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-glow);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-download {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    margin-top: 1.5rem;
}

.btn-full {
    width: 100%;
}

/* ===== Upload Panel ===== */
.panel {
    width: 100%;
    max-width: 520px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.panel-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.panel-back:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.panel-title {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}

.drop-zone.dragover {
    transform: scale(1.01);
}

.drop-zone-icon {
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.drop-zone:hover .drop-zone-icon,
.drop-zone.dragover .drop-zone-icon {
    color: var(--accent-primary);
    transform: translateY(-4px);
}

.drop-zone-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.drop-zone-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* File Preview */
.file-preview {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.file-preview.visible {
    display: flex;
}

.file-preview-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.file-preview-info {
    flex: 1;
    min-width: 0;
}

.file-preview-name {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.file-preview-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.file-preview-remove:hover {
    color: var(--error);
    background: rgba(248, 113, 113, 0.1);
}

/* Expiry Selector */
.expiry-selector {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.expiry-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.expiry-options {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.expiry-option {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-family: var(--font);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.expiry-option:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.expiry-option.active {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
}

/* Progress Bar */
.progress-container {
    display: none;
    margin-top: 1rem;
}

.progress-container.visible {
    display: block;
}

.progress-bar-track {
    width: 100%;
    height: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-status {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Upload Actions */
.upload-actions {
    margin-top: 1.5rem;
}

/* ===== Text Panel ===== */
.text-area {
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    transition: var(--transition);
    outline: none;
}

.text-area:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.text-area::placeholder {
    color: var(--text-muted);
}

.char-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.text-actions {
    margin-top: 1.5rem;
}

/* ===== Success / Result Panel ===== */
.result-panel {
    display: none;
    text-align: center;
}

.result-panel.visible {
    display: block;
}

.result-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    font-size: 1.8rem;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.result-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.result-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.link-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.link-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--accent-secondary);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
}

.link-copy-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-family: var(--font);
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent-primary);
    background: var(--accent-glow);
    color: var(--accent-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.link-copy-btn:hover {
    background: rgba(167, 139, 250, 0.25);
}

.result-expiry {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.qr-container {
    margin: 1rem auto;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-md);
    display: inline-block;
}

.qr-container canvas {
    display: block;
}

.result-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ===== View Page ===== */
.view-page {
    justify-content: center;
}

.view-card {
    text-align: center;
    max-width: 560px;
}

.text-view-card {
    text-align: left;
    max-width: 700px;
}

.view-icon {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.view-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.view-meta {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.text-view-card .view-meta {
    justify-content: flex-start;
}

.meta-badge {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}

.expiry-badge {
    color: var(--warning);
    border-color: rgba(251, 191, 36, 0.2);
    background: rgba(251, 191, 36, 0.05);
}

.text-view-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.text-display-area {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.text-content {
    color: var(--text-primary);
    font-family: 'Inter', monospace;
    font-size: 0.88rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.text-view-actions {
    display: flex;
    gap: 0.75rem;
}

/* Error Card */
.error-card {
    text-align: center;
    max-width: 420px;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* View Footer */
.view-footer {
    margin-top: 1rem;
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.toast {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
    animation: toastIn 0.4s ease, toastOut 0.4s ease 2.6s forwards;
    pointer-events: none;
}

.toast-error {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--error);
}

.toast-success {
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--success);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes toastOut {
    to { opacity: 0; transform: translateY(20px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== Trust Badges ===== */
.trust-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    font-size: 0.78rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.trust-badge:hover {
    border-color: var(--border-glow);
    background: var(--accent-glow);
    color: var(--text-primary);
}

.trust-icon {
    font-size: 0.85rem;
}

.trust-text {
    font-weight: 500;
}

/* ===== Privacy Options ===== */
.privacy-options {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.privacy-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.privacy-option-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: default;
}

.privacy-icon {
    font-size: 0.9rem;
}

.privacy-input {
    flex: 1;
    max-width: 200px;
    padding: 0.45rem 0.7rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.82rem;
    outline: none;
    transition: var(--transition);
}

.privacy-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.privacy-input::placeholder {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(18px);
    background: var(--accent-primary);
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.4);
}

/* View Limit Options */
.view-limit-options {
    display: flex;
    gap: 0.3rem;
}

/* ===== Protection Badges on Results ===== */
.result-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.burn-badge {
    color: #fb923c;
    border-color: rgba(251, 146, 60, 0.25);
    background: rgba(251, 146, 60, 0.06);
}

.views-badge {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.25);
    background: rgba(96, 165, 250, 0.06);
}

.lock-badge {
    color: var(--accent-secondary);
    border-color: rgba(196, 181, 253, 0.25);
    background: rgba(196, 181, 253, 0.06);
}

/* ===== Password Prompt Page ===== */
.password-card {
    text-align: center;
    max-width: 400px;
}

.password-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.password-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.password-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    text-align: center;
}

.password-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.password-error {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: var(--error);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* ===== Copy Animation ===== */
.link-copy-btn.copied {
    background: rgba(52, 211, 153, 0.15);
    border-color: var(--success);
    color: var(--success);
}

/* ===== Recent Links ===== */
.recent-links {
    width: 100%;
    max-width: 500px;
    margin-top: 0.5rem;
}

.recent-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-align: center;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.recent-item:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.recent-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.recent-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.recent-label {
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-time {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.recent-copy {
    flex-shrink: 0;
}

/* ===== Improved Drag-Drop Feedback ===== */
.drop-zone.dragover {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.15);
}

.drop-zone.dragover .drop-zone-icon {
    color: var(--accent-primary);
    transform: translateY(-8px) scale(1.1);
}

.drop-zone.dragover .drop-zone-text {
    color: var(--accent-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .home-cards {
        flex-direction: column;
        align-items: center;
    }

    .home-card {
        max-width: 100%;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .main-content {
        padding: 1rem;
    }

    .result-actions {
        flex-direction: column;
    }

    .expiry-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    .trust-badges {
        gap: 0.5rem;
    }

    .trust-badge {
        font-size: 0.72rem;
        padding: 0.3rem 0.6rem;
    }

    .privacy-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .privacy-input {
        max-width: 100%;
        width: 100%;
    }

    .view-limit-options {
        width: 100%;
    }

    .recent-links {
        max-width: 100%;
    }
}
