* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

:root {
    /* Obsidian Dark Theme */
    --bg-primary: #1e1e1e;
    --bg-secondary: #252525;
    --bg-tertiary: #2d2d2d;
    --bg-hover: #363636;
    --bg-active: #404040;
    --text-primary: #dcddde;
    --text-secondary: #a3a3a3;
    --text-muted: #666666;
    --accent-color: #7c3aed;
    --accent-hover: #8b5cf6;
    --accent-muted: #5b21b6;
    --border-color: #3d3d3d;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.3);
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.header h1 i {
    color: var(--accent-color);
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.header-title {
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Network Indicator */
.network-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    right: 20px;
    top: 20px;
}

.network-indicator:hover {
    background: var(--bg-hover);
    border-color: var(--accent-color);
}

.network-indicator i {
    font-size: 1.2rem;
}

.network-indicator.online i {
    color: var(--success-color);
}

.network-indicator.offline i {
    color: var(--error-color);
}

.network-indicator span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* WiFi Modal */
.wifi-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.wifi-modal.hidden {
    display: none;
}

.wifi-modal-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 40px 20px;
    gap: 24px;
}

.wifi-modal-content {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 50vh;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-large);
    overflow: hidden;
}

.wifi-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.wifi-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wifi-modal-header h3 i {
    color: var(--accent-color);
}

.wifi-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.2s ease;
}

.wifi-modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.wifi-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.wifi-current-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.wifi-status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wifi-status-icon i {
    font-size: 1.5rem;
    color: var(--error-color);
}

.wifi-current-status.connected .wifi-status-icon i {
    color: var(--success-color);
}

.wifi-status-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wifi-status-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.wifi-status-ssid {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.wifi-scan-header span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-scan {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-scan:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.wifi-networks-list {
    max-height: 300px;
    overflow-y: auto;
}

.wifi-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-secondary);
}

.wifi-loading i {
    font-size: 2rem;
}

.spinning {
    animation: spin 1s linear infinite;
}

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

.wifi-network-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.wifi-network-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-color);
}

.wifi-network-item.connected {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.wifi-network-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wifi-network-icon {
    font-size: 1.3rem;
    color: var(--text-secondary);
}

.wifi-network-item.connected .wifi-network-icon {
    color: var(--success-color);
}

.wifi-network-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.wifi-network-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.wifi-lock {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* WiFi Password Form */
.wifi-password-form {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.wifi-password-form.hidden {
    display: none;
}

.wifi-password-header {
    margin-bottom: 16px;
}

.wifi-password-header span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.wifi-password-header strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 4px;
}

.wifi-password-input {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.wifi-password-input input {
    flex: 1;
    padding: 14px 16px;
    font-size: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: inherit;
}

.wifi-password-input input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-show-password {
    width: 48px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-show-password:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.wifi-password-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

/* On-Screen Keyboard */
.osk-wrapper {
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
}

.osk-wrapper.hidden {
    display: none;
}

.osk-container {
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-large);
}

.osk-container.hidden {
    display: none;
}

.osk-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.osk-row:last-child {
    margin-bottom: 0;
}

.osk-key {
    flex: 1;
    min-width: 44px;
    max-width: 72px;
    height: 56px;
    padding: 8px 12px;
    font-size: 1.2rem;
    font-weight: 500;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.osk-key:hover {
    background: var(--accent-muted);
    border-color: var(--accent-color);
    color: white;
}

.osk-key:active {
    transform: scale(0.95);
    background: var(--accent-color);
}

.osk-key.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.osk-space {
    flex: 3;
    min-width: 150px;
    max-width: 300px;
}

.osk-shift,
.osk-backspace,
.osk-symbols,
.osk-abc,
.osk-clear {
    flex: 1.5;
    min-width: 60px;
    max-width: 90px;
    background: var(--bg-hover);
}

.osk-shift i,
.osk-backspace i,
.osk-clear i {
    font-size: 1.3rem;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 60vh;
}

.welcome-section.hidden {
    display: none;
}

.welcome-content {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    max-width: 600px;
    width: 100%;
}

.welcome-logo {
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-logo-img {
    max-width: 220px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.welcome-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-align: center;
}

.welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 350px;
    margin: 0 auto;
}

.btn-welcome {
    padding: 24px 40px;
    font-size: 1.2rem;
    border-radius: 16px;
    min-height: 80px;
    position: relative;
    justify-content: flex-start;
    gap: 16px;
}

.btn-welcome i {
    font-size: 1.6rem;
}

.btn-welcome:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.coming-soon-badge {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--warning-color);
    color: #000;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Camera Section */
.camera-section {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.camera-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.camera-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.face-guide {
    width: 220px;
    height: 280px;
    border: 3px dashed rgba(124, 58, 237, 0.6);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        border-color: rgba(124, 58, 237, 0.6);
    }
    50% {
        transform: scale(1.02);
        border-color: rgba(124, 58, 237, 0.9);
    }
}

.camera-controls {
    margin-bottom: 24px;
    text-align: center;
}

/* Large Capture Button */
.btn-capture {
    padding: 20px 48px;
    font-size: 1.3rem;
    min-height: 70px;
    border-radius: 16px;
}

.btn-capture i {
    font-size: 1.6rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
}

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

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

.btn-secondary:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
}

/* Preview Section */
.preview-section {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.preview-container {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background: var(--bg-secondary);
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    width: 500px;
    min-width: 500px;
    max-width: 500px;
    margin: 0 auto;
}

/* 3D Face Scanner */
.face-scanner {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    position: relative;
    perspective: 800px;
}

.face-3d {
    width: 120px;
    height: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    animation: rotate3d 4s ease-in-out infinite;
}

.face-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-muted) 100%);
    border-radius: 50% 50% 45% 45%;
    opacity: 0.3;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.face-front::before {
    content: '';
    position: absolute;
    top: 35%;
    left: 20%;
    width: 15%;
    height: 8%;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow:
        45px 0 0 var(--accent-color),
        22px 35px 0 var(--accent-color);
    opacity: 0.6;
}

.face-side-left,
.face-side-right {
    position: absolute;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.2));
    border-radius: 0 50% 50% 0;
}

.face-side-left {
    left: -15px;
    transform: rotateY(-60deg);
    transform-origin: right center;
}

.face-side-right {
    right: -15px;
    transform: rotateY(60deg);
    transform-origin: left center;
    background: linear-gradient(-90deg, transparent, rgba(124, 58, 237, 0.2));
    border-radius: 50% 0 0 50%;
}

.face-top {
    position: absolute;
    width: 100%;
    height: 40px;
    top: -20px;
    background: linear-gradient(to bottom, rgba(124, 58, 237, 0.3), transparent);
    border-radius: 50% 50% 0 0;
    transform: rotateX(60deg);
    transform-origin: bottom center;
}

@keyframes rotate3d {
    0%, 100% {
        transform: translate(-50%, -50%) rotateY(-15deg) rotateX(5deg);
    }
    50% {
        transform: translate(-50%, -50%) rotateY(15deg) rotateX(-5deg);
    }
}

/* Scan Line */
.scan-line {
    position: absolute;
    width: 160px;
    height: 3px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--accent-color), var(--accent-hover), var(--accent-color), transparent);
    box-shadow: 0 0 20px var(--accent-color), 0 0 40px var(--accent-color);
    animation: scanVertical 2s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes scanVertical {
    0%, 100% {
        top: 10%;
        opacity: 1;
    }
    50% {
        top: 85%;
        opacity: 0.8;
    }
}

/* Scan Grid */
.scan-grid {
    position: absolute;
    width: 160px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 10px;
    animation: gridPulse 2s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Scan Points */
.scan-points {
    position: absolute;
    width: 140px;
    height: 160px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.scan-points span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pointBlink 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-color);
}

.scan-points span:nth-child(1) { top: 20%; left: 25%; animation-delay: 0s; }
.scan-points span:nth-child(2) { top: 20%; left: 75%; animation-delay: 0.1s; }
.scan-points span:nth-child(3) { top: 35%; left: 15%; animation-delay: 0.2s; }
.scan-points span:nth-child(4) { top: 35%; left: 85%; animation-delay: 0.3s; }
.scan-points span:nth-child(5) { top: 40%; left: 35%; animation-delay: 0.4s; }
.scan-points span:nth-child(6) { top: 40%; left: 65%; animation-delay: 0.5s; }
.scan-points span:nth-child(7) { top: 55%; left: 50%; animation-delay: 0.6s; }
.scan-points span:nth-child(8) { top: 65%; left: 30%; animation-delay: 0.7s; }
.scan-points span:nth-child(9) { top: 65%; left: 70%; animation-delay: 0.8s; }
.scan-points span:nth-child(10) { top: 75%; left: 40%; animation-delay: 0.9s; }
.scan-points span:nth-child(11) { top: 75%; left: 60%; animation-delay: 1s; }
.scan-points span:nth-child(12) { top: 85%; left: 50%; animation-delay: 1.1s; }

@keyframes pointBlink {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Scan Rings */
.scan-rings {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    animation: ringExpand 3s ease-out infinite;
}

.ring-1 {
    animation-delay: 0s;
}

.ring-2 {
    animation-delay: 1s;
}

.ring-3 {
    animation-delay: 2s;
}

@keyframes ringExpand {
    0% {
        width: 60px;
        height: 60px;
        opacity: 0.8;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Loading Text */
.loading-text {
    margin-bottom: 30px;
}

.loading-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    animation: textGlow 2s ease-in-out infinite;
}

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

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
    }
}

/* Loading Progress */
.loading-progress {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-color);
    transition: width 0.3s ease-out;
}

.progress-percentage {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 10px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step i {
    font-size: 1.5rem;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.step span {
    font-size: 0.8rem;
    font-weight: 500;
}

.step.active {
    color: var(--accent-color);
}

.step.active i {
    background: var(--accent-muted);
    color: white;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    animation: stepPulse 1s ease-in-out infinite;
}

.step.completed {
    color: var(--success-color);
}

.step.completed i {
    background: var(--success-color);
    color: white;
}

@keyframes stepPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Results Section */
.results-section {
    width: 100%;
    text-align: center;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.results-title {
    text-align: center;
}

.results-title h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.page-indicator {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.btn-nav:hover:not(:disabled) {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.results-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.results-section h2 i {
    color: var(--accent-color);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.result-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.ai-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-badge.original {
    background: var(--text-muted);
}

.result-info {
    padding: 16px;
    text-align: left;
}

.result-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.result-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.result-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-muted);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.results-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Variation Section */
.variation-section {
    margin-top: 30px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.variation-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.variation-section h3 i {
    color: var(--accent-color);
}

.variation-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.variation-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    font-size: 0.95rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: inherit;
}

.variation-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

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

/* Quick Style Buttons */
.quick-styles {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.style-chip {
    padding: 8px 14px;
    font-size: 0.85rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.style-chip:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* AI Response */
.ai-response {
    margin-top: 30px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.ai-response h3 {
    color: var(--accent-color);
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.ai-response-content {
    line-height: 1.6;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

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

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

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

/* Responsive */
@media (max-width: 900px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .face-guide {
        width: 160px;
        height: 200px;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .loading-content {
        padding: 35px 25px;
    }

    .preview-controls {
        flex-direction: column;
        align-items: center;
    }

    .variation-input-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 20px 10px;
    }

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

/* Selectable Result Card */
.result-card.selectable {
    cursor: pointer;
}

.result-card.selectable:hover .select-overlay {
    opacity: 1;
}

.select-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(124, 58, 237, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.select-overlay i {
    font-size: 2.5rem;
}

.select-overlay span {
    font-size: 1rem;
    font-weight: 600;
}

/* Section Header with Back Button */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.btn-back {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.btn-back:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.section-title {
    flex: 1;
}

.section-title h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.section-title h2 i {
    color: var(--accent-color);
}

.section-title p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Services Section */
.services-section {
    width: 100%;
    max-width: 900px;
}

.selected-hairstyle-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.selected-hairstyle-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.selected-style-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.selected-style-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.service-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-card:hover {
    border-color: var(--accent-color);
    background: var(--bg-tertiary);
}

.service-card.selected {
    border-color: var(--accent-color);
    background: rgba(124, 58, 237, 0.1);
}

.service-card.selected .service-icon {
    background: var(--accent-color);
    color: white;
}

.service-card.selected .service-icon i::before {
    content: "\F26B";
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.service-info {
    flex: 1;
}

.service-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.service-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.service-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
}

.services-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.summary-info, .summary-total {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.summary-info span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-total span:last-child {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.services-controls {
    display: flex;
    justify-content: center;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Kapster Section */
.kapster-section {
    width: 100%;
    max-width: 900px;
}

.kapster-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.kapster-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.kapster-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.kapster-card.selected {
    border-color: var(--accent-color);
    background: rgba(124, 58, 237, 0.1);
}

.kapster-card.selected .kapster-select-icon {
    opacity: 1;
}

.kapster-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
    border: 3px solid var(--border-color);
}

.kapster-card.selected .kapster-avatar {
    border-color: var(--accent-color);
}

.kapster-avatar i {
    font-size: 2.5rem;
    color: var(--text-muted);
}

.kapster-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kapster-info {
    text-align: center;
}

.kapster-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.kapster-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.kapster-select-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--accent-color);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.kapster-controls {
    display: flex;
    justify-content: center;
}

/* Confirmation Section */
.confirmation-section {
    width: 100%;
    max-width: 600px;
}

.confirmation-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.confirm-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 20px;
}

.confirm-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirm-card h3 i {
    color: var(--accent-color);
}

.confirm-hairstyle {
    display: flex;
    align-items: center;
    gap: 16px;
}

.confirm-hairstyle img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.confirm-style-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.confirm-style-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.confirm-services-list {
    list-style: none;
}

.confirm-services-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.confirm-services-list li:last-child {
    border-bottom: none;
}

.confirm-services-list li span:first-child {
    color: var(--text-primary);
}

.confirm-services-list li span:last-child {
    color: var(--text-secondary);
}

.confirm-kapster {
    display: flex;
    align-items: center;
    gap: 16px;
}

.confirm-kapster .kapster-avatar {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
}

.confirm-kapster-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.confirm-kapster-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.confirm-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-color);
}

.confirm-total span:first-child {
    font-size: 1rem;
    color: var(--text-primary);
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.confirmation-controls {
    display: flex;
    justify-content: center;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #0d9668;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

/* Queue Section */
.queue-section {
    width: 100%;
    max-width: 500px;
}

.queue-content {
    text-align: center;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.queue-success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.queue-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.queue-content > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.queue-number-display {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-muted));
    padding: 30px 50px;
    border-radius: var(--border-radius);
    display: inline-block;
    margin-bottom: 24px;
}

.queue-number-display span {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    letter-spacing: 8px;
}

.queue-details {
    margin-bottom: 20px;
}

.queue-details p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.queue-details i {
    color: var(--accent-color);
}

.queue-instruction {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

/* Responsive for new sections */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .kapster-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-summary {
        flex-direction: column;
        gap: 12px;
    }

    .confirm-hairstyle {
        flex-direction: column;
        text-align: center;
    }

    .queue-number-display span {
        font-size: 3rem;
    }
}

/* Kiosk Mode Optimizations */
@media (min-width: 1024px) {
    .camera-container {
        max-width: 640px;
        margin: 0 auto 24px;
    }

    .preview-container {
        max-width: 640px;
        margin: 0 auto 24px;
    }

    .face-guide {
        width: 240px;
        height: 300px;
    }
}

/* Portrait Kiosk Mode - 1080x1920 */
@media (max-aspect-ratio: 9/16), (aspect-ratio: 9/16) {
    html, body {
        height: 100%;
        overflow: hidden;
    }

    .container {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        padding: 24px 40px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .header {
        padding: 24px 20px;
        margin-bottom: 16px;
    }

    .header-logo {
        height: 45px;
        max-width: 220px;
    }

    .main-content {
        flex: 1;
        padding: 16px;
        justify-content: flex-start;
    }

    /* Welcome Section - Portrait */
    .welcome-section {
        min-height: 70vh;
    }

    .welcome-content {
        padding: 70px 50px;
        max-width: 700px;
        border-radius: 24px;
    }

    .welcome-logo {
        margin-bottom: 40px;
    }

    .welcome-logo-img {
        max-width: 280px;
    }

    .welcome-tagline {
        font-size: 1.4rem;
        margin-bottom: 50px;
    }

    .welcome-buttons {
        gap: 20px;
        max-width: 450px;
    }

    .btn-welcome {
        padding: 28px 50px;
        font-size: 1.4rem;
        min-height: 100px;
        border-radius: 20px;
        gap: 20px;
    }

    .btn-welcome i {
        font-size: 2rem;
    }

    .coming-soon-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    /* WiFi Modal - Portrait */
    .wifi-modal-wrapper {
        padding: 30px 16px;
        justify-content: flex-start;
        gap: 20px;
    }

    .wifi-modal-content {
        max-width: 100%;
        max-height: 45vh;
    }

    /* On-Screen Keyboard - Portrait */
    .osk-wrapper {
        max-width: 100%;
        padding: 0 16px;
    }

    .osk-container {
        padding: 16px 12px;
        border-radius: 16px;
    }

    .osk-row {
        gap: 6px;
        margin-bottom: 6px;
    }

    .osk-key {
        min-width: 38px;
        max-width: 100%;
        height: 58px;
        font-size: 1.25rem;
        border-radius: 12px;
    }

    .osk-space {
        min-width: 120px;
        max-width: 100%;
    }

    .osk-shift,
    .osk-backspace,
    .osk-symbols,
    .osk-abc,
    .osk-clear {
        min-width: 50px;
        max-width: 100%;
    }

    .osk-shift i,
    .osk-backspace i,
    .osk-clear i {
        font-size: 1.4rem;
    }

    /* Camera Section - Portrait */
    .camera-section {
        max-width: 100%;
    }

    .camera-container {
        aspect-ratio: 3/4;
        max-width: 600px;
        max-height: 55vh;
        margin: 0 auto 32px;
    }

    .face-guide {
        width: 280px;
        height: 360px;
    }

    .camera-controls {
        margin-bottom: 28px;
    }

    .btn-capture {
        padding: 24px 60px;
        font-size: 1.5rem;
        min-height: 80px;
        border-radius: 18px;
    }

    .btn-capture i {
        font-size: 1.8rem;
    }

    .instruction {
        font-size: 1.1rem;
    }

    /* Preview Section - Portrait */
    .preview-container {
        aspect-ratio: 3/4;
        max-width: 600px;
        max-height: 55vh;
        margin: 0 auto 32px;
    }

    /* Buttons - Larger for touch */
    .btn {
        padding: 18px 36px;
        font-size: 1.15rem;
        min-height: 60px;
    }

    .btn i {
        font-size: 1.3rem;
    }

    .btn-large {
        padding: 22px 50px;
        font-size: 1.25rem;
        min-height: 70px;
    }

    /* Loading Section - Portrait */
    .loading-section {
        padding: 30px;
    }

    .loading-content {
        width: 600px;
        min-width: 600px;
        max-width: 600px;
        padding: 50px 40px;
    }

    .face-scanner {
        width: 240px;
        height: 240px;
        margin-bottom: 40px;
    }

    .loading-text h2 {
        font-size: 1.8rem;
    }

    .loading-text p {
        font-size: 1.1rem;
    }

    .step i {
        font-size: 1.8rem;
        padding: 16px;
    }

    .step span {
        font-size: 0.95rem;
    }

    /* Results Section - Portrait */
    .results-section {
        max-width: 100%;
    }

    .results-header {
        margin-bottom: 32px;
    }

    .results-title h2 {
        font-size: 1.8rem;
    }

    .page-indicator {
        font-size: 1rem;
    }

    .btn-nav {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin-bottom: 40px;
    }

    .result-card {
        border-radius: 16px;
    }

    .result-image-container {
        aspect-ratio: 1;
    }

    .result-info {
        padding: 20px;
    }

    .result-info h3 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .result-info p {
        font-size: 0.95rem;
    }

    .result-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .ai-badge {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .select-overlay i {
        font-size: 3rem;
    }

    .select-overlay span {
        font-size: 1.2rem;
    }

    .results-controls {
        gap: 20px;
        margin-bottom: 24px;
    }

    /* Services Section - Portrait */
    .services-section {
        max-width: 100%;
    }

    .section-header {
        margin-bottom: 28px;
    }

    .btn-back {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .selected-hairstyle-preview {
        padding: 20px;
        margin-bottom: 28px;
    }

    .selected-hairstyle-preview img {
        width: 100px;
        height: 100px;
    }

    .selected-style-info h3 {
        font-size: 1.25rem;
    }

    .selected-style-info p {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 28px;
    }

    .service-card {
        padding: 20px;
        border-radius: 14px;
    }

    .service-icon {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    .service-info h4 {
        font-size: 1.15rem;
    }

    .service-info p {
        font-size: 0.9rem;
    }

    .service-duration {
        font-size: 0.85rem;
    }

    .service-price {
        font-size: 1.15rem;
    }

    .services-summary {
        padding: 20px 24px;
        margin-bottom: 28px;
    }

    .summary-label {
        font-size: 1rem;
    }

    .summary-total span:last-child {
        font-size: 1.4rem;
    }

    /* Kapster Section - Portrait */
    .kapster-section {
        max-width: 100%;
    }

    .kapster-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 28px;
    }

    .kapster-card {
        padding: 28px 20px;
        border-radius: 14px;
    }

    .kapster-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 16px;
    }

    .kapster-avatar i {
        font-size: 3rem;
    }

    .kapster-info h4 {
        font-size: 1.15rem;
    }

    .kapster-info p {
        font-size: 0.9rem;
    }

    .kapster-select-icon {
        font-size: 1.8rem;
    }

    /* Confirmation Section - Portrait */
    .confirmation-section {
        max-width: 700px;
    }

    .confirmation-content {
        gap: 20px;
        margin-bottom: 28px;
    }

    .confirm-card {
        padding: 24px;
        border-radius: 14px;
    }

    .confirm-card h3 {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .confirm-hairstyle img {
        width: 120px;
        height: 120px;
    }

    .confirm-style-info h4 {
        font-size: 1.25rem;
    }

    .confirm-style-info p {
        font-size: 1rem;
    }

    .confirm-services-list li {
        padding: 14px 0;
        font-size: 1.05rem;
    }

    .confirm-kapster .kapster-avatar {
        width: 70px;
        height: 70px;
    }

    .confirm-kapster-info h4 {
        font-size: 1.15rem;
    }

    .confirm-kapster-info p {
        font-size: 1rem;
    }

    .confirm-total {
        padding: 24px 28px;
    }

    .confirm-total span:first-child {
        font-size: 1.15rem;
    }

    .total-price {
        font-size: 1.8rem;
    }

    /* Queue Section - Portrait */
    .queue-section {
        max-width: 600px;
    }

    .queue-content {
        padding: 50px;
        border-radius: 20px;
    }

    .queue-success-icon {
        font-size: 5rem;
        margin-bottom: 28px;
    }

    .queue-content h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .queue-content > p {
        font-size: 1.1rem;
        margin-bottom: 24px;
    }

    .queue-number-display {
        padding: 40px 70px;
        margin-bottom: 32px;
        border-radius: 16px;
    }

    .queue-number-display span {
        font-size: 5rem;
        letter-spacing: 12px;
    }

    .queue-details {
        margin-bottom: 28px;
    }

    .queue-details p {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .queue-instruction {
        font-size: 1.15rem;
        padding: 20px;
        margin-bottom: 28px;
    }

    /* Footer - Portrait */
    .footer {
        padding: 20px;
    }

    .footer p {
        font-size: 1rem;
    }
}

/* Specific 1080x1920 Resolution */
@media (width: 1080px) and (height: 1920px) {
    .container {
        padding: 30px 50px;
    }

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

    /* Welcome Section - 1080x1920 */
    .welcome-content {
        padding: 80px 60px;
        max-width: 750px;
    }

    .welcome-logo-img {
        max-width: 320px;
    }

    .welcome-tagline {
        font-size: 1.5rem;
    }

    .btn-welcome {
        padding: 32px 60px;
        font-size: 1.5rem;
        min-height: 110px;
    }

    .camera-container,
    .preview-container {
        max-height: 800px;
    }

    .results-grid {
        gap: 30px;
    }

    .queue-number-display span {
        font-size: 6rem;
    }
}
