/* ============================================
   Ticket Scanner App - Premium Design System
   Direction: Warm Luxury Fintech
   Typography: Syne (display) + DM Sans (body)
   Palette: Amber/Bronze + Deep Warm Neutrals
   ============================================ */

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

:root {
    /* Primary - Warm Amber/Bronze */
    --primary: linear-gradient(135deg, #C27B42 0%, #A0582D 100%);
    --primary-light: #C27B42;
    --primary-dark: #A0582D;
    --primary-glow: rgba(194, 123, 66, 0.2);

    /* Semantic */
    --success: #3D8B5F;
    --error: #C44536;
    --warning: #D4A15E;
    --info: #3A7CA5;

    /* Surfaces */
    --bg-primary: #F8F4EF;
    --bg-gradient: linear-gradient(160deg, #F8F4EF 0%, #EDE5DA 50%, #E4D9CC 100%);
    --card-bg: rgba(255, 255, 255, 0.72);
    --card-shadow:
        0 1px 2px rgba(26, 23, 20, 0.04),
        0 4px 12px rgba(26, 23, 20, 0.04),
        0 16px 40px rgba(26, 23, 20, 0.06);
    --card-shadow-hover:
        0 1px 2px rgba(26, 23, 20, 0.04),
        0 8px 20px rgba(26, 23, 20, 0.06),
        0 24px 56px rgba(26, 23, 20, 0.1);

    /* Text */
    --text-primary: #1A1714;
    --text-secondary: #6B635A;
    --text-light: #9C948B;

    /* Borders & Radii */
    --border-color: rgba(26, 23, 20, 0.08);
    --border-radius: 14px;
    --border-radius-lg: 22px;

    /* Motion */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Mode */
body.dark-mode {
    --bg-primary: #0D0F14;
    --bg-gradient: linear-gradient(160deg, #0D0F14 0%, #151820 50%, #1A1D25 100%);
    --card-bg: rgba(28, 31, 39, 0.82);
    --card-shadow:
        0 1px 2px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 16px 40px rgba(0, 0, 0, 0.2);
    --card-shadow-hover:
        0 1px 2px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.18),
        0 24px 56px rgba(0, 0, 0, 0.3);
    --text-primary: #E8E4DF;
    --text-secondary: #9C948B;
    --text-light: #6B635A;
    --border-color: rgba(255, 255, 255, 0.07);
    --primary-glow: rgba(194, 123, 66, 0.12);
}

/* ============================================
   Animations
   ============================================ */

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

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

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes ambientDrift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    33% { transform: translate(40px, -30px) scale(1.1); opacity: 0.7; }
    66% { transform: translate(-30px, 20px) scale(0.9); opacity: 0.4; }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ============================================
   Body & Background Atmosphere
   ============================================ */

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    color: var(--text-primary);
    transition: background var(--transition-normal), color var(--transition-normal);
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient floating gradient orb */
body::before {
    content: '';
    position: fixed;
    top: -15%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: ambientDrift 25s ease-in-out infinite;
}

/* Second ambient orb bottom-left */
body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(58, 124, 165, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: ambientDrift 30s ease-in-out infinite reverse;
}

/* ============================================
   Auth Loading Pattern
   ============================================ */

body.auth-required > *:not(.auth-loading) {
    display: none !important;
}

body.auth-required.authenticated > * {
    display: revert !important;
}

body.auth-required.authenticated > .auth-loading {
    display: none !important;
}

.auth-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-gradient);
    z-index: 9999;
    gap: 20px;
}

.auth-loading i {
    font-size: 2.2rem;
    color: var(--primary-light);
    animation: spin 1s linear infinite;
}

.auth-loading p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* ============================================
   Theme Toggle
   ============================================ */

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

/* ============================================
   User Info Bar
   ============================================ */

.user-info-container {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-info-name {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 18px;
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.user-info-name i {
    color: var(--primary-light);
    font-size: 1rem;
}

.user-info-name span {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.user-info-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 12px;
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.user-info-actions button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 6px 8px;
    border-radius: 10px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info-actions button:hover {
    color: var(--primary-light);
    background: var(--primary-glow);
}

.user-info-actions .btn-admin {
    color: var(--warning);
}

.user-info-actions .btn-admin:hover {
    background: rgba(212, 161, 94, 0.12);
}

.user-info-actions .btn-logout {
    color: var(--error);
}

.user-info-actions .btn-logout:hover {
    background: rgba(196, 69, 54, 0.1);
}

/* ============================================
   Language Selector
   ============================================ */

.language-selector {
    position: fixed;
    top: 20px;
    right: 76px;
    z-index: 1000;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    letter-spacing: 0.02em;
}

.language-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    border-color: var(--primary-light);
}

.language-btn i {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all var(--transition-normal);
    min-width: 150px;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.language-option:hover {
    background: var(--primary-glow);
}

.language-option.active {
    background: var(--primary-glow);
    font-weight: 600;
    color: var(--primary-light);
}

.language-option .flag {
    font-size: 1.2rem;
}

/* ============================================
   Card
   ============================================ */

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 44px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--card-shadow);
    border: 1.5px solid var(--border-color);
    animation: revealUp 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 40px;
    transition: background var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    position: relative;
    z-index: 1;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

/* ============================================
   Header
   ============================================ */

.header {
    text-align: center;
    margin-bottom: 36px;
}

.header-icon {
    width: 72px;
    height: 72px;
    background: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 24px rgba(194, 123, 66, 0.25);
    animation: iconFloat 4s ease-in-out infinite;
    transition: transform var(--transition-normal);
}

.header-icon:hover {
    transform: scale(1.05) rotate(-3deg);
}

.header-icon i {
    font-size: 1.7rem;
    color: white;
}

.header h1 {
    font-family: 'Syne', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.header p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ============================================
   Video / Camera
   ============================================ */

.video-container {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
    background: #0A0A0A;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.video-container video {
    width: 100%;
    display: block;
    border-radius: var(--border-radius);
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.camera-overlay::before,
.camera-overlay::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: rgba(255, 255, 255, 0.6);
    border-style: solid;
}

.camera-overlay::before {
    top: 14px;
    left: 14px;
    border-width: 2.5px 0 0 2.5px;
    border-radius: 4px 0 0 0;
}

.camera-overlay::after {
    top: 14px;
    right: 14px;
    border-width: 2.5px 2.5px 0 0;
    border-radius: 0 4px 0 0;
}

.camera-overlay .corner-bottom-left,
.camera-overlay .corner-bottom-right {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: rgba(255, 255, 255, 0.6);
    border-style: solid;
}

.camera-overlay .corner-bottom-left {
    bottom: 14px;
    left: 14px;
    border-width: 0 0 2.5px 2.5px;
    border-radius: 0 0 0 4px;
}

.camera-overlay .corner-bottom-right {
    bottom: 14px;
    right: 14px;
    border-width: 0 2.5px 2.5px 0;
    border-radius: 0 0 4px 0;
}

/* ============================================
   Preview
   ============================================ */

.preview-container {
    margin-bottom: 20px;
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.preview-header span {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.preview-actions {
    display: flex;
    gap: 8px;
}

.preview-actions button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
}

.preview-actions button:hover {
    color: var(--primary-light);
    border-color: var(--primary-light);
    transform: scale(1.08);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.preview-actions button.btn-delete:hover {
    color: var(--error);
    border-color: var(--error);
    box-shadow: 0 2px 8px rgba(196, 69, 54, 0.15);
}

.preview-wrapper {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.03);
    cursor: zoom-in;
    position: relative;
    border: 1.5px solid var(--border-color);
}

.preview-image {
    width: 100%;
    display: block;
    border-radius: var(--border-radius);
    transition: transform var(--transition-normal);
}

/* ============================================
   Buttons
   ============================================ */

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

button {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    padding: 15px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

/* Ripple effect */
button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

button:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(194, 123, 66, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(194, 123, 66, 0.35);
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    transform: translateY(-2px);
    background: var(--primary-glow);
}

.btn-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.btn-upload {
    background: transparent;
    color: var(--text-primary);
    border: 2px dashed var(--border-color);
    transition: all var(--transition-normal);
}

.btn-upload:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    background: var(--primary-glow);
    border-style: dashed;
}

.btn-send {
    background: linear-gradient(135deg, #3D8B5F 0%, #2D6A4F 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(61, 139, 95, 0.25);
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 139, 95, 0.35);
}

.btn-send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.divider {
    text-align: center;
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 500;
    position: relative;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--border-color);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

/* ============================================
   Status
   ============================================ */

.status {
    text-align: center;
    padding: 14px 18px;
    border-radius: var(--border-radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all var(--transition-normal);
    letter-spacing: 0.01em;
}

.status.waiting {
    background: rgba(58, 124, 165, 0.08);
    color: var(--info);
    border: 1px solid rgba(58, 124, 165, 0.15);
}

.status.loading {
    background: rgba(212, 161, 94, 0.08);
    color: var(--warning);
    border: 1px solid rgba(212, 161, 94, 0.15);
}

.status.loading i {
    animation: spin 1s linear infinite;
}

.status.success {
    background: rgba(61, 139, 95, 0.08);
    color: var(--success);
    border: 1px solid rgba(61, 139, 95, 0.15);
}

.status.error {
    background: rgba(196, 69, 54, 0.08);
    color: var(--error);
    border: 1px solid rgba(196, 69, 54, 0.15);
}

/* ============================================
   Results
   ============================================ */

.results-container {
    animation: revealUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 24px;
}

.results-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.results-title i {
    color: var(--success);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    animation: slideIn 0.3s ease;
    transition: background var(--transition-fast);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background: var(--primary-glow);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 10px;
}

.result-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.result-label i {
    width: 16px;
    text-align: center;
    color: var(--primary-light);
}

.result-value {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.result-links {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.result-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    color: white;
    background: linear-gradient(135deg, #3A7CA5, #2B5F7C);
    box-shadow: 0 4px 14px rgba(58, 124, 165, 0.25);
    letter-spacing: 0.01em;
}

.result-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(58, 124, 165, 0.35);
}

.btn-new-scan {
    width: 100%;
    margin-top: 20px;
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(194, 123, 66, 0.25);
}

.btn-new-scan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(194, 123, 66, 0.35);
}

/* ============================================
   Zoom Modal
   ============================================ */

.zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.zoom-modal.active {
    opacity: 1;
    visibility: visible;
}

.zoom-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-modal-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    transition: transform var(--transition-normal);
    cursor: zoom-in;
    border-radius: 4px;
}

.zoom-modal-image.zoomed {
    cursor: zoom-out;
}

.zoom-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10001;
}

.zoom-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
}

.zoom-modal-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.zoom-control-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.zoom-control-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.zoom-level-indicator {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 16px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    z-index: 10001;
    letter-spacing: 0.04em;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    body::before {
        width: 300px;
        height: 300px;
        top: -10%;
        right: -20%;
    }

    body::after {
        width: 250px;
        height: 250px;
    }

    .card {
        padding: 28px;
        margin-top: 60px;
        border-radius: var(--border-radius);
    }

    .header-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .header-icon i {
        font-size: 1.3rem;
    }

    .header h1 {
        font-size: 1.35rem;
    }

    .user-info-container {
        top: 10px;
        left: 10px;
        gap: 8px;
    }

    .user-info-name {
        padding: 8px 14px;
        border-radius: 12px;
    }

    .user-info-name span {
        font-size: 0.75rem;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-info-actions {
        padding: 8px 10px;
        border-radius: 12px;
    }

    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .language-selector {
        top: 10px;
        right: 60px;
    }

    .language-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .zoom-modal-controls {
        bottom: 20px;
    }

    .zoom-control-btn {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .zoom-close-btn {
        width: 40px;
        height: 40px;
    }

    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .result-item:hover {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .result-value {
        max-width: 100%;
        text-align: left;
    }
}

/* ============================================
   Utility
   ============================================ */

.hidden {
    display: none !important;
}
