/**
 * Brickora Mobile PWA - Custom Styles
 */

/* ============================================================================
   CSS Variables
   ============================================================================ */

:root {
    --color-primary: #1E40AF;
    --color-primary-light: #3B82F6;
    --color-primary-dark: #1E3A8A;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-accent: #8B5CF6;

    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --bottom-nav-height: 64px;
}

/* ============================================================================
   Base Styles
   ============================================================================ */

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

/* Safe area padding for notched devices */
.safe-area-top {
    padding-top: var(--safe-area-top);
}

.safe-area-bottom {
    padding-bottom: calc(var(--safe-area-bottom) + var(--bottom-nav-height));
}

/* ============================================================================
   Typography
   ============================================================================ */

.text-h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.text-h2 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.25;
}

.text-h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.text-h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.text-body {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.text-body-small {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

.text-caption {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
    min-height: 48px;
}

.btn:active {
    transform: scale(0.98);
}

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

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

.btn-primary:hover:not(:disabled) {
    background-color: var(--color-primary-dark);
}

.btn-secondary {
    background-color: #F1F5F9;
    color: #1E293B;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #E2E8F0;
}

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

.btn-outline:hover:not(:disabled) {
    background-color: #EFF6FF;
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-ghost:hover:not(:disabled) {
    background-color: #EFF6FF;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 40px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-height: 56px;
}

.btn-block {
    width: 100%;
}

/* ============================================================================
   Cards
   ============================================================================ */

.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.card-body {
    padding: var(--spacing-md);
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:active {
    transform: scale(0.98);
}

.project-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #F1F5F9;
}

.project-card-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary {
    background-color: var(--color-primary);
    color: white;
}

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

.badge-warning {
    background-color: var(--color-warning);
    color: white;
}

/* ============================================================================
   Progress Bar
   ============================================================================ */

.progress-bar {
    height: 8px;
    background-color: #E2E8F0;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--color-success);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* ============================================================================
   Bottom Navigation
   ============================================================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    padding-bottom: var(--safe-area-bottom);
    background: white;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
    min-width: 64px;
}

.bottom-nav-item.active {
    color: var(--color-primary);
}

.bottom-nav-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.bottom-nav-label {
    font-size: 11px;
    font-weight: 500;
}

.bottom-nav-icon-wrapper {
    position: relative;
    display: inline-flex;
}

.bottom-nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #EF4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ============================================================================
   Skeleton Loading
   ============================================================================ */

.skeleton {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

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

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text-sm {
    height: 0.75rem;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.skeleton-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ============================================================================
   States
   ============================================================================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    text-align: center;
}

.empty-state-icon {
    font-size: 64px;
    color: #CBD5E1;
    margin-bottom: var(--spacing-md);
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: var(--spacing-sm);
}

.empty-state-description {
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: var(--spacing-lg);
    max-width: 280px;
}

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    text-align: center;
}

.error-state-icon {
    font-size: 64px;
    color: var(--color-error);
    margin-bottom: var(--spacing-md);
}

/* ============================================================================
   Welcome Screen - Based on WelcomeScreen.tsx
   ============================================================================ */

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Image Fallback Background */
.image-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Welcome Content Container */
.welcome-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 16px 24px 32px;
}

/* Welcome Header: Logo (left) + Country (right) */
.welcome-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* Logo Container */
.welcome-logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.welcome-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.welcome-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-brand-name {
    font-size: 22px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
    line-height: 24px;
}

.welcome-brand-tagline {
    font-size: 12px;
    font-weight: 500;
    color: #93C5FD; /* primary-300 */
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 14px;
}

/* Country Selector */
.welcome-country-selector {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 9999px;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.welcome-country-selector:hover {
    background: rgba(255, 255, 255, 0.25);
}

.welcome-country-selector:active {
    background: rgba(255, 255, 255, 0.3);
}

.welcome-country-flag {
    font-size: 18px;
}

.welcome-country-name {
    font-size: 14px;
    color: white;
    font-weight: 600;
}

/* Value Proposition (Center) */
.welcome-value-proposition {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    text-align: center;
}

.welcome-headline {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.35;
}

.welcome-subheadline {
    font-size: 16px;
    color: #CBD5E1; /* secondary-300 */
    text-align: center;
    line-height: 1.5;
    max-width: 320px;
}

/* Action Buttons */
.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.welcome-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.welcome-btn:active {
    transform: scale(0.98);
}

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

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

.welcome-btn-primary:hover:not(:disabled) {
    background-color: var(--color-primary-dark);
}

.welcome-btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.welcome-btn-outline:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.1);
}

.welcome-btn-ghost {
    background-color: transparent;
    color: white;
    height: 48px;
}

.welcome-btn-ghost:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   Catalog Screen - Based on ProyectosScreen.tsx
   ============================================================================ */

/* ============================================================================
   Desarrollos Header with Pattern
   ============================================================================ */

.desarrollos-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    z-index: 40;
    overflow: hidden;
}

.header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.08;
    pointer-events: none;
}

/* Patrón detallado - Siluetas de edificios */
.header-pattern.detailed {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cdefs%3E%3Cpattern id='buildings' patternUnits='userSpaceOnUse' width='400' height='200'%3E%3Crect fill='none' width='400' height='200'/%3E%3Cpath fill='white' d='M0,200 L0,120 L20,120 L20,100 L30,100 L30,120 L50,120 L50,80 L70,80 L70,120 L90,120 L90,60 L100,50 L110,60 L110,120 L130,120 L130,90 L150,90 L150,120 L170,120 L170,70 L180,70 L180,50 L190,50 L190,70 L200,70 L200,120 L220,120 L220,100 L240,100 L240,120 L260,120 L260,40 L270,30 L280,40 L280,120 L300,120 L300,80 L320,80 L320,120 L340,120 L340,110 L360,110 L360,120 L380,120 L380,90 L400,90 L400,200 Z'/%3E%3Crect fill='white' x='95' y='70' width='8' height='10'/%3E%3Crect fill='white' x='95' y='85' width='8' height='10'/%3E%3Crect fill='white' x='95' y='100' width='8' height='10'/%3E%3Crect fill='white' x='265' y='55' width='10' height='12'/%3E%3Crect fill='white' x='265' y='75' width='10' height='12'/%3E%3Crect fill='white' x='265' y='95' width='10' height='12'/%3E%3Crect fill='white' x='175' y='80' width='6' height='8'/%3E%3Crect fill='white' x='185' y='80' width='6' height='8'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23buildings)' width='400' height='200'/%3E%3C/svg%3E");
    background-size: 400px 200px;
    background-position: bottom;
    background-repeat: repeat-x;
}

/* Patrón minimalista - Geometría abstracta */
.header-pattern.minimal {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='geo' patternUnits='userSpaceOnUse' width='100' height='100'%3E%3Crect fill='none' width='100' height='100'/%3E%3Crect fill='white' x='10' y='60' width='15' height='40'/%3E%3Crect fill='white' x='30' y='40' width='12' height='60'/%3E%3Crect fill='white' x='47' y='70' width='18' height='30'/%3E%3Crect fill='white' x='70' y='50' width='10' height='50'/%3E%3Crect fill='white' x='85' y='65' width='8' height='35'/%3E%3Cpolygon fill='white' points='36,40 36,30 42,25 42,40'/%3E%3Ccircle fill='white' cx='75' cy='45' r='3'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23geo)' width='100' height='100'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    background-position: bottom;
}

.header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(30, 64, 175, 0.3) 100%);
    pointer-events: none;
}

.header-content {
    position: relative;
    padding: 16px;
    z-index: 1;
}

.greeting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.greeting-text {
    display: flex;
    flex-direction: column;
}

.greeting-hello {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin: 0;
}

.greeting-name {
    font-size: 22px;
    color: white;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.login-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s ease;
}

.login-btn:active {
    background: rgba(255, 255, 255, 0.25);
}

/* Clean catalog header (style guide) */
.catalog-header-clean {
    position: sticky;
    top: 0;
    background: white;
    z-index: 40;
    border-bottom: 1px solid #E2E8F0;
}

.catalog-header-content-clean {
    padding: 12px 16px;
}

/* Legacy catalog header (keep for compatibility) */
.catalog-header {
    position: sticky;
    top: 0;
    background-color: var(--color-primary);
    z-index: 40;
}

.catalog-header-content {
    padding: 12px 16px 16px;
}

.catalog-search-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.catalog-search-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #F1F5F9;
    border-radius: 10px;
    padding: 0 12px;
    height: 40px;
    gap: 8px;
}

.catalog-search-icon {
    color: #94A3B8;
    font-size: 16px;
}

.catalog-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #1E293B;
    background: transparent;
    height: 100%;
}

.catalog-search-input::placeholder {
    color: #94A3B8;
}

.catalog-search-clear {
    color: #94A3B8;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.catalog-search-clear .material-icons-outlined {
    font-size: 16px;
}

.catalog-filter-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: #F1F5F9;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.catalog-filter-btn .material-icons-outlined {
    font-size: 18px;
    color: #64748B;
}

.catalog-filter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background-color: var(--color-error);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-results-count {
    font-size: 14px;
    color: #DBEAFE; /* primary-100 */
    margin-top: 12px;
}

.catalog-container {
    flex: 1;
    overflow-y: auto;
    background-color: #F8FAFC; /* secondary-50 */
}

.catalog-skeleton {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.catalog-skeleton.hidden {
    display: none;
}

.catalog-content {
    /* Content shown after minimum loading time */
}

.catalog-content.hidden {
    display: none;
}

/* ============================================================================
   Pull to Refresh
   ============================================================================ */

.pull-to-refresh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.2s ease;
}

.pull-to-refresh.visible {
    transform: translateY(0);
}

.pull-to-refresh-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #E2E8F0;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================================================
   Filters Bottom Sheet
   ============================================================================ */

.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px 24px 0 0;
    z-index: 2001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.bottom-sheet.active {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: #CBD5E1;
    border-radius: var(--radius-full);
    margin: 12px auto;
}

.bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-md) var(--spacing-md);
    border-bottom: 1px solid #E2E8F0;
}

.bottom-sheet-content {
    padding: var(--spacing-md);
    padding-bottom: calc(var(--spacing-md) + var(--safe-area-bottom));
}

/* ============================================================================
   Video Card (Training)
   ============================================================================ */

.video-card {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.video-card-thumbnail {
    position: relative;
    width: 120px;
    min-width: 120px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #F1F5F9;
}

.video-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-card-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 10px;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.video-card-content {
    flex: 1;
    min-width: 0;
}

.video-card-category {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 4px;
}

.video-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1E293B;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================================
   Country Picker
   ============================================================================ */

.country-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.country-picker-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.country-flag {
    font-size: 1.25rem;
}

.country-list-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid #E2E8F0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.country-list-item:hover {
    background: #F8FAFC;
}

.country-list-item.selected {
    background: #EFF6FF;
}

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

/* ============================================================================
   Utilities
   ============================================================================ */

.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide content but keep accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.3s ease forwards;
}

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

.scale-in {
    animation: scaleIn 0.2s ease forwards;
}

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

/* ============================================================================
   Favorite Button
   ============================================================================ */

.favorite-btn {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.favorite-btn:active {
    transform: scale(0.9);
}

.favorite-btn .favorite-icon {
    transition: color 0.2s ease, transform 0.2s ease;
}

.favorite-btn.favorite-active .favorite-icon {
    color: var(--color-error);
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* ============================================================================
   Card Expansion Animation (Catalog → Detail)
   ============================================================================ */

.card-expand-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    z-index: 9998;
    transition: background 400ms ease;
    pointer-events: none;
}

.card-expand-backdrop.active {
    background: rgba(0, 0, 0, 0.15);
}

.card-expand-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.card-expand-clone {
    position: absolute;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    will-change: transform, border-radius;
}

.card-expand-clone.expanding {
    transition: transform 400ms cubic-bezier(0.4, 0.0, 0.2, 1),
                border-radius 400ms cubic-bezier(0.4, 0.0, 0.2, 1),
                box-shadow 400ms cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 0;
    box-shadow: none;
}

.card-expand-clone .card-expand-content {
    transition: opacity 200ms ease-out;
}

.card-expand-clone.expanding .card-expand-content {
    opacity: 0.3;
}

.project-card.card-animating {
    opacity: 0;
}

/* ============================================================================
   Segmented Control (Formación Catalog Tabs)
   ============================================================================ */

.seg-control {
    display: flex;
    background: #F1F5F9;
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
}

.seg-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: #64748B;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.seg-tab .material-icons-outlined {
    font-size: 17px;
}

.seg-tab.active {
    background: white;
    color: #1E40AF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.seg-tab:active:not(.active) {
    background: #E2E8F0;
}

/* ============================================================================
   Folder Tabs (CSS Left Tab Style)
   ============================================================================ */

.folder-tab {
    position: relative;
    padding: 10px 20px 10px 16px;
    background: #E2E8F0;
    color: #64748B;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px 12px 0 0;
    margin-right: -8px;
    z-index: 1;
}

.folder-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: -12px;
    width: 12px;
    height: 12px;
    background: transparent;
    border-bottom-left-radius: 12px;
    box-shadow: -6px 0 0 0 #E2E8F0;
    transition: box-shadow 0.3s ease;
}

.folder-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -12px;
    width: 12px;
    height: 12px;
    background: transparent;
    border-bottom-right-radius: 12px;
    box-shadow: 6px 0 0 0 #E2E8F0;
    transition: box-shadow 0.3s ease;
}

.folder-tab:first-child::after {
    display: none;
}

.folder-tab.active {
    background: white;
    color: var(--color-primary);
    z-index: 10;
}

.folder-tab.active::before {
    box-shadow: -6px 0 0 0 white;
}

.folder-tab.active::after {
    box-shadow: 6px 0 0 0 white;
}

.folder-tab-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Filter Button */
.filter-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background: #F1F5F9;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:active {
    transform: scale(0.95);
}

.filter-btn .material-icons-outlined {
    color: #64748B;
    font-size: 20px;
}

.filter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--color-primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Filter Chips */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: #F1F5F9;
    color: #64748B;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:active {
    transform: scale(0.97);
}

.filter-chip.active {
    background: var(--color-primary);
    color: white;
}

.filter-chip.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================================
   Catalog Panel Animations
   ============================================================================ */

.catalog-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                scale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.catalog-panel.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    position: relative;
}

.catalog-panel.hidden-left {
    transform: translateX(-100%) scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.catalog-panel.hidden-right {
    transform: translateX(100%) scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.catalog-panel.exiting-left {
    transform: translateX(-30%) scale(0.85);
    opacity: 0;
    pointer-events: none;
}

.catalog-panel.exiting-right {
    transform: translateX(30%) scale(0.85);
    opacity: 0;
    pointer-events: none;
}

.catalog-panel.entering-left {
    transform: translateX(-50%) scale(0.7);
    opacity: 0;
}

.catalog-panel.entering-right {
    transform: translateX(50%) scale(0.7);
    opacity: 0;
}

#catalogs-wrapper {
    min-height: calc(100vh - 200px);
}

/* ============================================================================
   Swipe Navigation Between Screens
   ============================================================================ */

.swipeable-screen {
    touch-action: pan-y pinch-zoom;
}

.screen-transition-left {
    animation: slideOutLeft 0.35s ease-out forwards;
}

.screen-transition-right {
    animation: slideOutRight 0.35s ease-out forwards;
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Swipe indicator */
.swipe-indicator {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.swipe-indicator.left {
    left: 0;
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.15) 0%, transparent 100%);
    border-radius: 0 20px 20px 0;
}

.swipe-indicator.right {
    right: 0;
    background: linear-gradient(-90deg, rgba(30, 64, 175, 0.15) 0%, transparent 100%);
    border-radius: 20px 0 0 20px;
}

.swipe-indicator.visible {
    opacity: 1;
}

.swipe-indicator .material-icons-outlined {
    color: var(--color-primary);
    font-size: 24px;
}

/* ============================================================================
   Auth Screens
   ============================================================================ */

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 40;
}

.auth-back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.auth-back-btn:active {
    background: #F1F5F9;
}

.auth-title {
    font-size: 17px;
    font-weight: 600;
    color: #1E293B;
}

.auth-container {
    flex: 1;
    overflow-y: auto;
    background: white;
}

.auth-content {
    padding: 24px 20px 40px;
    max-width: 400px;
    margin: 0 auto;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #FEF2F2;
    color: #DC2626;
    border-radius: 12px;
    font-size: 14px;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

.auth-divider span {
    padding: 0 16px;
    font-size: 13px;
    color: #94A3B8;
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-icon {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    font-size: 20px;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 14px 14px 14px 46px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 15px;
    color: #1E293B;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-input::placeholder {
    color: #94A3B8;
}

.form-input-action {
    position: absolute;
    right: 8px;
    padding: 8px;
    color: #94A3B8;
    background: transparent;
    border: none;
    cursor: pointer;
}

.form-hint {
    font-size: 12px;
    color: #64748B;
    margin-top: 4px;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* Password Requirements */
.password-requirements {
    background: #F8FAFC;
    padding: 12px;
    border-radius: 10px;
}

.password-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.password-checklist .requirement {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94A3B8;
    transition: color 0.2s ease;
}

.password-checklist .requirement.valid {
    color: #10B981;
}

.password-checklist .requirement.invalid {
    color: #94A3B8;
}

/* Social Login Buttons */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-social:active {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

/* Animate spin */
.animate-spin {
    animation: spin 1s linear infinite;
}

/* ============================================================================
   Minimalist Auth Screens (Nu-style)
   ============================================================================ */

.auth-minimal {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
}

.auth-minimal-header {
    padding: 12px 16px;
    padding-top: calc(12px + var(--safe-area-top));
}

.auth-minimal-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E293B;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.auth-minimal-back:active {
    background: #F1F5F9;
}

.auth-minimal-content {
    flex: 1;
    padding: 0 24px 40px;
    overflow-y: auto;
}

.auth-minimal-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.auth-minimal-title .highlight {
    color: var(--color-primary);
}

.auth-minimal-subtitle {
    font-size: 16px;
    color: #64748B;
    margin-bottom: 32px;
}

/* Minimalist Form Group */
.form-group-minimal {
    margin-bottom: 28px;
}

.form-label-minimal {
    display: block;
    font-size: 14px;
    color: #64748B;
    margin-bottom: 8px;
}

.form-input-minimal {
    width: 100%;
    padding: 12px 0;
    font-size: 18px;
    font-weight: 500;
    color: #1E293B;
    background: transparent;
    border: none;
    border-bottom: 1px solid #E2E8F0;
    outline: none;
    transition: border-color 0.2s;
}

.form-input-minimal:focus {
    border-bottom-color: var(--color-primary);
}

.form-input-minimal::placeholder {
    color: #CBD5E1;
    font-weight: 400;
}

.form-input-minimal.has-error {
    border-bottom-color: #EF4444;
}

/* Phone Input with Country Code */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-country-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #F1F5F9;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.phone-country-selector .flag {
    font-size: 20px;
}

.phone-input-minimal {
    flex: 1;
    padding: 12px 0;
    font-size: 18px;
    font-weight: 500;
    color: #1E293B;
    background: transparent;
    border: none;
    border-bottom: 1px solid #E2E8F0;
    outline: none;
    transition: border-color 0.2s;
    letter-spacing: 1px;
}

.phone-input-minimal:focus {
    border-bottom-color: var(--color-primary);
}

/* Password Input with Toggle */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input-minimal {
    padding-right: 44px;
}

.password-toggle-minimal {
    position: absolute;
    right: 0;
    padding: 8px;
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
}

/* Security Card */
.security-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #F8FAFC;
    border-radius: 12px;
    margin: 24px 0;
}

.security-card-icon {
    font-size: 24px;
    color: #F59E0B;
}

.security-card-text {
    font-size: 14px;
    color: #64748B;
    line-height: 1.5;
}

/* Terms Checkbox */
.terms-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
}

.terms-checkbox {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.terms-text {
    font-size: 14px;
    color: #64748B;
    line-height: 1.5;
}

.terms-text a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: underline;
}

/* Continue Button (Nu style) */
.btn-continue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    background: var(--color-primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 24px;
}

.btn-continue:active {
    transform: scale(0.98);
}

.btn-continue:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
    transform: none;
}

.btn-continue .arrow {
    font-size: 20px;
}

/* Error Message Minimal */
.error-message-minimal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #FEF2F2;
    color: #DC2626;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Form Validation States */
.validation-message {
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.validation-message.error {
    color: #EF4444;
}

.validation-message.success {
    color: #10B981;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 12px;
}

.password-strength-bar {
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.password-strength-fill {
    height: 100%;
    transition: width 0.3s, background 0.3s;
    border-radius: 2px;
}

.password-strength-fill.weak {
    width: 25%;
    background: #EF4444;
}

.password-strength-fill.fair {
    width: 50%;
    background: #F59E0B;
}

.password-strength-fill.good {
    width: 75%;
    background: #3B82F6;
}

.password-strength-fill.strong {
    width: 100%;
    background: #10B981;
}

.password-requirements-minimal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.password-req {
    font-size: 11px;
    padding: 4px 8px;
    background: #F1F5F9;
    border-radius: 12px;
    color: #94A3B8;
    transition: all 0.2s;
}

.password-req.valid {
    background: #ECFDF5;
    color: #10B981;
}

/* KYC Screens */
.kyc-option-card {
    padding: 20px;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 16px;
}

.kyc-option-card:hover {
    border-color: var(--color-primary);
}

.kyc-option-card.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.kyc-option-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EFF6FF;
    border-radius: 12px;
    margin-bottom: 12px;
}

.kyc-option-icon .material-icons-outlined {
    font-size: 28px;
    color: var(--color-primary);
}

.kyc-option-title {
    font-size: 16px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 4px;
}

.kyc-option-desc {
    font-size: 13px;
    color: #64748B;
}

.kyc-alternative-link {
    display: block;
    text-align: center;
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 500;
    padding: 12px;
    margin-top: 8px;
}

/* No INE Banner */
.kyc-no-ine-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.kyc-no-ine-banner:active {
    background: #DBEAFE;
    border-color: #93C5FD;
}

.kyc-no-ine-icon {
    width: 44px;
    height: 44px;
    background: #DBEAFE;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.kyc-no-ine-content {
    flex: 1;
}

.kyc-no-ine-title {
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
    margin: 0 0 2px 0;
}

.kyc-no-ine-subtitle {
    font-size: 13px;
    color: #64748B;
    margin: 0;
}

.kyc-no-ine-arrow {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* OCR Progress */
.ocr-progress-container {
    margin-top: 20px;
    padding: 20px;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 12px;
}

.ocr-progress-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #0369A1;
    margin-bottom: 12px;
}

.ocr-progress-bar {
    height: 6px;
    background: #E0F2FE;
    border-radius: 3px;
    overflow: hidden;
}

.ocr-progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* OCR Error */
.ocr-error-container {
    margin-top: 20px;
    padding: 24px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 12px;
    text-align: center;
}

.ocr-error-icon {
    color: #EF4444;
    margin-bottom: 8px;
}

.ocr-error-icon .material-icons-outlined {
    font-size: 48px;
}

.ocr-error-title {
    font-size: 16px;
    font-weight: 600;
    color: #1E293B;
    margin: 0 0 16px 0;
}

.ocr-error-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Camera Preview */
.camera-preview-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1.6;
    background: #1E293B;
    border-radius: 16px;
    overflow: hidden;
    margin: 20px 0;
}

.camera-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.camera-frame {
    width: 90%;
    height: 70%;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.camera-instruction {
    position: absolute;
    bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Verification Code Input */
.verification-code-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 32px 0;
}

.verification-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #1E293B;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.verification-digit:focus {
    border-color: var(--color-primary);
}

.verification-digit.filled {
    border-color: var(--color-primary);
    background: #EFF6FF;
}

/* Resend Code */
.resend-code {
    text-align: center;
    margin-top: 24px;
}

.resend-code-text {
    font-size: 14px;
    color: #64748B;
}

.resend-code-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
}

.resend-code-btn:disabled {
    color: #94A3B8;
    cursor: not-allowed;
}

/* KYC Form Fields */
.kyc-form-section {
    margin-bottom: 24px;
}

.kyc-form-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E2E8F0;
}

.kyc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 400px) {
    .kyc-form-row {
        grid-template-columns: 1fr;
    }
}

/* Simulated OCR Result */
.ocr-result-card {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

.ocr-result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ocr-result-header .material-icons-outlined {
    color: #10B981;
}

.ocr-result-header span {
    font-size: 14px;
    font-weight: 600;
    color: #166534;
}

.ocr-result-data {
    display: grid;
    gap: 8px;
}

.ocr-result-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.ocr-result-label {
    color: #64748B;
}

.ocr-result-value {
    font-weight: 500;
    color: #1E293B;
}

/* Link style buttons */
.link-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    text-decoration: underline;
}
