/* ============================================
   SCREENS - Login, Access, Invite, Register Car, Access Cards
   Mobile-first design for phone screens
   ============================================ */

/* ============================================
   LOGIN SCREEN
   ============================================ */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px 16px;
    background: var(--color-bg-primary);
}

.logo-section {
    text-align: center;
    margin-bottom: 32px;
}

.building-icon {
    width: 100px;
    height: 100px;
    background: var(--color-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 12px rgba(53, 122, 215, 0.3);
    overflow: hidden;
}

.building-icon i {
    font-size: 2.5rem;
    color: var(--color-primary);
}

/* App Logo */
.app-logo {
    object-fit: contain;
}

.app-logo.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 0;
}

.app-logo.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 0;
    flex-shrink: 0;
    background: none;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.subtitle {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-secondary);
}

.login-form {
    width: 100%;
    max-width: 400px;
    background: var(--color-bg-white);
    padding: 28px 24px 24px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.login-form .input-group {
    margin-bottom: 20px;
}

.login-form .input-group input {
    padding: 14px 16px 14px 48px;
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    border-bottom: 1px solid var(--color-border-light);
    background: var(--color-bg-primary);
    font-size: 15px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.login-form .input-group input:focus {
    border-color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(53, 122, 215, 0.1);
    background: var(--color-bg-white);
}

.login-form .input-group i {
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    font-size: 16px;
}

.login-form .btn-primary {
    margin-top: 4px;
    padding: 15px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(53, 122, 215, 0.25);
    transition: all var(--transition-fast);
}

.login-form .btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(53, 122, 215, 0.2);
}

.login-error {
    background: #FEF2F2;
    color: #DC2626;
    font-family: var(--font-secondary);
    font-size: 13px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid #FECACA;
    line-height: 1.4;
}

.login-success {
    background: #F0FDF4;
    color: #16A34A;
    font-family: var(--font-secondary);
    font-size: 13px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid #BBF7D0;
    line-height: 1.4;
}

.forgot-password-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
}

.forgot-password-link a {
    font-family: var(--font-secondary);
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.forgot-password-link a:active {
    color: var(--color-primary);
}

.btn-primary.loading {
    opacity: 0.7;
    pointer-events: none;
}

.support-section {
    margin-top: 40px;
    text-align: center;
    color: var(--color-text-secondary);
}

.support-section p {
    font-family: var(--font-secondary);
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
}

.support-link {
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--color-bg-white);
    border-radius: 100px;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-fast);
}

.support-link:active {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}

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

    .login-form {
        padding: 24px 20px 20px;
        border-radius: 16px;
    }

    .building-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .building-icon i {
        font-size: 2rem;
    }

    .logo-text {
        font-size: 22px;
    }

    .subtitle {
        font-size: 13px;
    }

    .login-form .input-group {
        margin-bottom: 16px;
    }

    .login-form .input-group input {
        padding: 13px 16px 13px 44px;
        font-size: 14px;
    }
}

/* ============================================
   AUTH SCREENS - Forgot Password, Reset Password
   ============================================ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
    background: var(--color-bg-primary);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--color-bg-white);
    border-radius: 20px;
    padding: 40px 28px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    text-align: center;
}

.auth-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: background var(--transition-fast);
}

.auth-back-btn:active {
    background: var(--color-border-primary);
}

.auth-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 6px 20px rgba(53, 122, 215, 0.25);
}

.auth-icon-circle.auth-icon-green {
    background: #16A34A;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.25);
}

.auth-title {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-family: var(--font-secondary);
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 28px;
    padding: 0 8px;
}

.auth-input-wrap {
    text-align: left;
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    font-family: var(--font-secondary);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-tertiary);
    margin-bottom: 6px;
    padding-left: 2px;
}

.auth-footer-text {
    font-family: var(--font-secondary);
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 24px;
}

.auth-footer-text a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer-text a:active {
    opacity: 0.7;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 36px 20px 28px;
        border-radius: 16px;
    }

    .auth-icon-circle {
        width: 64px;
        height: 64px;
    }

    .auth-icon-circle svg {
        width: 28px;
        height: 28px;
    }

    .auth-title {
        font-size: 20px;
    }
}

/* ============================================
   ACCESS PAGE - Main Dashboard
   ============================================ */

/* Stats Info Chips */
.stats-chips {
    display: flex;
    gap: 8px;
    padding: 16px;
    padding-bottom: 8px;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--color-bg-white);
    border-radius: 8px;
    border: 1px solid var(--color-border-light);
}

.stat-chip-value {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
}

.stat-chip-label {
    font-family: var(--font-secondary);
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-secondary);
}

@media (max-width: 480px) {
    .stats-chips {
        padding: 12px;
        padding-bottom: 8px;
    }
    
    .stat-chip {
        padding: 6px 10px;
    }
    
    .stat-chip-value {
        font-size: 14px;
    }
    
    .stat-chip-label {
        font-size: 12px;
    }
}

/* Dashboard Chart Section */
.dashboard-chart-section {
    background: var(--color-bg-white);
    border-radius: 12px;
    padding: 20px;
    margin: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-container {
    margin-top: 16px;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-bar-label {
    min-width: 120px;
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.chart-bar-wrapper {
    flex: 1;
    height: 32px;
    background: var(--color-bg-primary);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, #4A90E2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    transition: width 0.3s ease;
    min-width: 40px;
}

.chart-bar-value {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* Dashboard Table Section */
/* Registered Cars Container */
.registered-cars-container {
    padding: 0 16px;
    padding-bottom: 100px;
}

.cars-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 480px) {
    .registered-cars-container {
        padding: 0 12px;
        padding-bottom: 100px;
    }
    
    .cars-list {
        gap: 20px;
    }
    
    .car-card-new {
        margin-bottom: 20px;
    }
    
    .car-card-new:last-child {
        margin-bottom: 0;
    }
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 16px;
}

.cars-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-secondary);
}

.cars-table thead {
    background: var(--color-bg-primary);
}

.cars-table th {
    padding: 12px 16px;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-border-light);
}

.cars-table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 14px;
    color: var(--color-text-primary);
}

.cars-table tbody tr:hover {
    background: var(--color-bg-primary);
    cursor: pointer;
}

.cars-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 480px) {
    .analytics-card {
        padding: 16px;
    }
    
    .analytics-value {
        font-size: 28px;
    }
    
    .analytics-label {
        font-size: 12px;
    }
    
    .dashboard-table-section {
        margin: 12px;
        padding: 16px;
    }
    
    .section-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .chart-bar-label {
        min-width: 80px;
        font-size: 12px;
    }
    
    .cars-table {
        font-size: 12px;
    }
    
    .cars-table th,
    .cars-table td {
        padding: 10px 8px;
    }
}


/* Page Header - Override for dashboard */
.dashboard-header {
    padding: 20px 16px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #4A90E2 100%);
    border-bottom: none;
    justify-content: space-between;
}

.dashboard-header .header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-header .header-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 0;
    flex-shrink: 0;
}

.dashboard-header .header-logo svg {
    width: 32px;
    height: 32px;
}

.dashboard-header .header-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-header .page-title {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.dashboard-header .page-subtitle {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 16px;
    }
    
    .dashboard-header .header-logo {
        width: 40px;
        height: 40px;
    }
    
    .dashboard-header .header-logo svg {
        width: 28px;
        height: 28px;
    }
    
    .dashboard-header .page-title {
        font-size: 20px;
    }
    
    .dashboard-header .page-subtitle {
        font-size: 12px;
    }
}

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

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-primary);
    border-radius: 8px;
}

.icon-btn:active {
    background: rgba(0, 0, 0, 0.05);
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 16px 16px;
    padding: 14px 16px;
    background: var(--color-bg-white);
    border-radius: 12px;
    border: 1px solid var(--color-border-light);
}

.search-container svg {
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-secondary);
    font-size: 15px;
    color: var(--color-text-primary);
    background: transparent;
}

.search-input::placeholder {
    color: var(--color-text-secondary);
}

/* Tabs Container */
.tabs-container {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs-container::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    border: none;
    border-radius: 100px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    white-space: nowrap;
}

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

/* Access Content */
.access-content {
    padding: 0 16px;
    padding-bottom: 100px;
    background: var(--color-bg-primary);
    min-height: calc(100vh - 200px);
}

@media (max-width: 480px) {
    .access-content {
        padding: 0 12px;
        padding-bottom: 90px;
    }
}

/* Section Styles */
.access-section {
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

/* Empty Section Message */
.empty-section-msg {
    background: var(--color-bg-white);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    border: 1px dashed var(--color-border-light);
    margin: 16px;
}

.empty-section-msg p {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.btn-add-first {
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 20px;
}

.btn-add-first:active {
    opacity: 0.7;
}

@media (max-width: 480px) {
    .empty-section-msg {
        padding: 40px 20px;
        margin: 12px;
        border-radius: 14px;
    }
    
    .empty-section-msg p {
        font-size: 15px;
        margin-bottom: 14px;
    }
    
    .btn-add-first {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Cards Scroll Container */
.cards-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-top: 0;
}

.cards-scroll::-webkit-scrollbar {
    display: none;
}

/* Access Card */
.access-card {
    flex-shrink: 0;
    width: 280px;
    background: var(--color-bg-white);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    border: 1px solid var(--color-border-light);
}

.access-card:active {
    background: #FAFAFA;
}

/* Card Top Row */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Menu Button */
.menu-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Initial Badges for Visitor Cards */
.card-initials-group {
    display: flex;
    gap: 6px;
}

.initial-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.initial-badge.count {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-primary);
    font-size: 10px;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 500;
}

.status-badge.regular {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-badge.full-access {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-badge.active {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-badge.expired {
    background: #FFEBEE;
    color: #C62828;
}

.status-badge.pending {
    background: #FFF8E1;
    color: #F57F17;
}

/* Card Info */
.card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-secondary);
    font-size: 13px;
    color: var(--color-text-secondary);
    flex-wrap: wrap;
}

.info-row svg {
    flex-shrink: 0;
}

.info-row span {
    color: var(--color-text-tertiary);
}

.date-text {
    color: var(--color-text-secondary) !important;
    font-size: 12px;
}

/* Access Card Person */
.access-card-person .card-top {
    margin-bottom: 0;
}

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

.person-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.person-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.person-name {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.person-unit {
    font-family: var(--font-secondary);
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* Car Card */
.car-card .card-top {
    margin-bottom: 8px;
}

.car-name {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.car-plate {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.plate-letter {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.plate-number {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* New Car Card Design */
.car-card-new {
    background: var(--color-bg-white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.car-card-new:last-child {
    margin-bottom: 0;
}

.car-card-new:active {
    background: #FAFAFA;
    transform: scale(0.99);
}

.car-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.car-card-title-group {
    flex: 1;
}

.car-card-plate {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.car-card-nickname {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.car-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.car-card-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
}

.car-card-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-secondary);
    font-size: 14px;
    color: var(--color-text-secondary);
}

.car-card-detail-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

@media (max-width: 480px) {
    .car-card-new {
        padding: 18px;
        border-radius: 14px;
    }
    
    .car-card-plate {
        font-size: 22px;
    }
    
    .car-card-nickname {
        font-size: 15px;
    }
    
    .car-card-details {
        padding-top: 14px;
        gap: 8px;
    }
    
    .car-card-detail-item {
        font-size: 13px;
    }
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 24px;
    left: 16px;
    right: 16px;
    padding: 16px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(53, 122, 215, 0.3);
    z-index: 100;
    max-width: calc(100% - 32px);
}

@media (max-width: 480px) {
    .floating-btn {
        bottom: 16px;
        left: 12px;
        right: 12px;
        max-width: calc(100% - 24px);
        padding: 14px;
        font-size: 15px;
    }
}

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

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 24px;
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border-light);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--color-text-secondary);
    min-width: 60px;
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item span {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 500;
}

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

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

/* Eyden Logo in Nav */
.nav-item.eyden-logo {
    padding: 0;
}

.eyden-circle {
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -28px;
    box-shadow: 0 4px 12px rgba(53, 122, 215, 0.3);
}

.eyden-circle span {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 600;
    color: white;
    font-style: italic;
}

/* ============================================
   INVITE VISITOR PAGE
   ============================================ */

/* Header with back button */
.page-header.with-back {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 16px;
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border-light);
}

.page-header.with-back h1 {
    font-size: 17px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.header-spacer {
    width: 40px;
}

@media (max-width: 480px) {
    .page-header.with-back {
        padding: 8px 12px 14px;
    }
    
    .page-header.with-back h1 {
        font-size: 16px;
    }
    
    .header-spacer {
        width: 36px;
    }
}

/* Error Banner */
.error-banner {
    margin: 0 16px 16px;
    padding: 12px 16px;
    background: #FEE2E2;
    border-radius: 12px;
}

.error-title {
    display: block;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: #DC2626;
    margin-bottom: 4px;
}

.error-desc {
    font-family: var(--font-secondary);
    font-size: 13px;
    color: #DC2626;
}

/* Main content */
.invite-content {
    padding: 0 16px;
    padding-bottom: 100px;
    background: var(--color-bg-primary);
    min-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Unit Selector */
.unit-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--color-border-light);
}

.unit-label {
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--color-text-secondary);
}

.unit-value {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.unit-value span {
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--color-text-primary);
}

.unit-value strong {
    font-weight: 600;
}

/* Visitor Details Section */
.visitor-details-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--color-border-light);
}

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

.section-title {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.link-btn {
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    cursor: pointer;
}

/* Visitor Form Inline */
.visitor-form-inline {
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.form-field {
    margin-bottom: 16px;
}

.form-field:last-child {
    margin-bottom: 0;
}

.form-field label {
    display: block;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.form-field input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--color-border-light);
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--color-text-primary);
    background: transparent;
}

.form-field input::placeholder {
    color: var(--color-text-placeholder);
    text-transform: uppercase;
}

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

/* Phone Input */
.phone-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.country-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    overflow: hidden;
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-input input {
    flex: 1;
    border: none;
    padding: 0;
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--color-text-primary);
}

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

.phone-input input:focus {
    outline: none;
}

/* Visitor List Inline */
.visitor-list-inline {
    margin-bottom: 16px;
}

.visitor-item-inline {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
}

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

.visitor-initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-right: 12px;
    flex-shrink: 0;
}

.visitor-info {
    flex: 1;
}

.visitor-name {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.visitor-email {
    font-family: var(--font-secondary);
    font-size: 13px;
    color: var(--color-text-secondary);
}

.remove-visitor-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #DC2626;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.remove-visitor-btn svg {
    color: #DC2626;
}

/* Add More Button */
.btn-add-more {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-primary);
    cursor: pointer;
}

.btn-add-more:active {
    background: var(--color-primary-light);
}

/* Date Section */
.date-section {
    margin-bottom: 16px;
}

.section-label {
    display: block;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

/* Calendar Container */
.calendar-container {
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--color-border-light);
}

.calendar-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cal-nav-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-primary);
}

.calendar-month {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekdays span {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 13px;
    color: var(--color-text-secondary);
    padding: 8px 0;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--color-text-primary);
    cursor: pointer;
    border-radius: 50%;
    background: transparent;
    border: none;
}

.calendar-day:active {
    background: var(--color-primary-light);
}

.calendar-day.selected {
    background: var(--color-primary);
    color: white;
}

.calendar-day.range {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 0;
}

.calendar-day.range-start {
    border-radius: 50% 0 0 50%;
    background: var(--color-primary);
    color: white;
}

.calendar-day.range-end {
    border-radius: 0 50% 50% 0;
    background: var(--color-primary);
    color: white;
}

.calendar-day.other-month {
    color: var(--color-text-secondary);
    opacity: 0.4;
}

/* Time Section */
.time-section {
    margin-bottom: 80px;
}

.time-buttons {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.time-buttons::-webkit-scrollbar {
    display: none;
}

.time-btn {
    flex-shrink: 0;
    padding: 12px 24px;
    border: 1px solid var(--color-border-light);
    border-radius: 100px;
    background: white;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    cursor: pointer;
}

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

/* Send Button */
.btn-send {
    position: fixed;
    bottom: 24px;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    padding: 16px;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   REGISTER CAR PAGE
   ============================================ */
.register-car-content {
    padding: 16px;
    padding-bottom: 100px;
    background: var(--color-bg-primary);
    min-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Section Title */
.car-section-title {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    margin-top: 0;
    padding: 0;
}

@media (max-width: 480px) {
    .register-car-content {
        padding: 12px;
        padding-bottom: 100px;
    }
    
    .car-section-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .car-nickname-card,
    .country-selector-card,
    .plate-input-card {
        padding: 14px;
        margin-bottom: 16px;
    }
}

/* Car Nickname Card */
.car-nickname-card {
    background: var(--color-bg-white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--color-border-light);
}

.car-field-label {
    display: block;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.car-field-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--color-border-light);
    padding: 8px 0;
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--color-text-secondary);
    background: transparent;
    outline: none;
}

.car-field-input:focus {
    border-bottom-color: var(--color-primary);
    color: var(--color-text-primary);
}

.car-field-input::placeholder {
    color: var(--color-text-tertiary);
}

/* Plate Input Card */
.plate-input-card {
    background: var(--color-bg-white);
    border-radius: 12px;
    padding: 20px 16px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border-light);
}

@media (max-width: 480px) {
    .plate-input-card {
        padding: 16px 12px;
        margin-bottom: 16px;
    }
}

.plate-input-row {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Plate Code Selector */
.plate-code-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 16px 20px;
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 600;
    color: var(--color-text-primary);
    cursor: pointer;
    min-width: 80px;
}

.plate-code-selector svg {
    color: var(--color-text-secondary);
}

/* Plate Divider */
.plate-divider {
    width: 1px;
    height: 60px;
    background: var(--color-border-light);
    margin: 0 16px;
}

/* Plate Numbers */
.plate-numbers {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.plate-digit {
    width: 100%;
    max-width: 40px;
    height: 40px;
    text-align: center;
    border: none;
    border-bottom: 2px solid var(--color-border-light);
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-primary);
    background: transparent;
    outline: none;
}

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

.plate-digit::placeholder {
    color: var(--color-text-tertiary);
}

/* OR Divider */
.or-divider {
    text-align: center;
    margin: 24px 0;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border-light);
}


/* Submit Button */
.btn-submit-car {
    position: fixed;
    bottom: 24px;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    padding: 16px;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
    .btn-submit-car {
        bottom: 16px;
        left: 12px;
        right: 12px;
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        padding: 14px;
    }
}

/* Legacy plate styles - keeping for modal */
.plate-letters {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin: 16px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.plate-letters::-webkit-scrollbar {
    display: none;
}

.plate-letter-btn {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border: 1px solid var(--color-border-light);
    border-radius: 100px;
    background: var(--color-bg-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.plate-letter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ============================================
   COUNTRY SELECTOR
   ============================================ */
.country-selector-card {
    background: var(--color-bg-white);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border-light);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.country-selector-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(53, 122, 215, 0.1);
}

.country-selector-card:active {
    transform: scale(0.99);
}

.country-selector-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.country-label {
    font-family: var(--font-primary);
    font-size: 13px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.country-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-value span {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
}

.country-value svg {
    color: var(--color-primary);
    transition: transform 0.2s ease;
}

.country-selector-card:hover .country-value svg {
    transform: translateY(2px);
}

/* ============================================
   EMIRATE LIST MODAL STYLES
   ============================================ */
.emirate-section-label {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    padding: 16px 16px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emirate-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border-light);
    cursor: pointer;
    text-align: left;
}

.emirate-option:last-child {
    border-bottom: none;
}

.emirate-option .emirate-name {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.emirate-option .check-icon {
    opacity: 0;
    transition: opacity 0.2s;
}

.emirate-option.selected .check-icon {
    opacity: 1;
}

.emirate-option.selected {
    background: var(--color-primary-light);
}

/* ============================================
   DYNAMIC PLATE LAYOUTS
   ============================================ */
.plate-layout {
    display: none;
}

.plate-layout.active {
    display: block;
}

.plate-visual {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    min-height: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.plate-visual:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Plate Code Button */
.plate-code-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf0 100%);
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.plate-code-btn:hover {
    background: linear-gradient(135deg, #e8ecf0 0%, #dde2e8 100%);
    border-color: var(--color-primary);
}

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

.plate-code-btn.small {
    font-size: 24px;
    padding: 6px 10px;
}

.plate-code-btn svg {
    color: var(--color-primary);
    transition: transform 0.2s ease;
}

.plate-code-btn:hover svg {
    transform: translateY(2px);
}

/* Plate Code Section */
.plate-code-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 16px;
    border-right: 1px solid #E5E5E5;
    margin-right: 16px;
}

.plate-region {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-primary);
    text-transform: uppercase;
}

.plate-region-ar {
    font-family: var(--font-primary);
    font-size: 10px;
    color: var(--color-text-secondary);
}

/* Plate Number Section */
.plate-number-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plate-number-input {
    width: 100%;
    max-width: 180px;
    border: none;
    border-bottom: 2px solid #e5e5e5;
    background: transparent;
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    letter-spacing: 6px;
    outline: none;
    padding-bottom: 4px;
    transition: border-color 0.2s ease;
}

.plate-number-input:focus {
    border-bottom-color: var(--color-primary);
}

.plate-number-input::placeholder {
    color: var(--color-text-tertiary);
    letter-spacing: 2px;
}

/* Plate Result */
.plate-result {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid var(--color-border-light);
    margin-top: 8px;
}

.plate-result-label {
    display: block;
    font-family: var(--font-primary);
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plate-result-value {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 2px;
    background: linear-gradient(135deg, #357AD7 0%, #4A90E2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ABU DHABI PLATE
   ============================================ */
.plate-visual.abudhabi {
    background: #FFFFFF;
}

.abudhabi-code {
    flex-direction: row;
    gap: 8px;
    border-right: none;
    margin-right: 0;
    padding-right: 12px;
}

.ad-code-box {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ad-code-box:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
}

.ad-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 8px;
    line-height: 1.3;
}

.ad-label .ar {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
}

.ad-label .en {
    font-family: var(--font-primary);
    color: var(--color-text-secondary);
}

/* ============================================
   SHARJAH PLATE
   ============================================ */
.sharjah-code {
    flex-direction: row;
    gap: 8px;
}

.sh-label {
    display: flex;
    flex-direction: column;
    font-size: 8px;
    line-height: 1.2;
}

.sh-label .ar,
.sh-label .en {
    font-family: var(--font-primary);
}

/* ============================================
   AJMAN PLATE
   ============================================ */
.aj-label {
    display: flex;
    flex-direction: column;
    font-size: 8px;
    line-height: 1.2;
}

/* ============================================
   RAK PLATE
   ============================================ */
.rak-label {
    display: flex;
    flex-direction: column;
    font-size: 7px;
    line-height: 1.2;
}

/* ============================================
   FUJAIRAH PLATE
   ============================================ */
.fuj-label {
    display: flex;
    flex-direction: column;
    font-size: 8px;
    line-height: 1.2;
}

/* ============================================
   UAQ PLATE
   ============================================ */
.uaq-label {
    display: flex;
    flex-direction: column;
    font-size: 8px;
    line-height: 1.2;
}

/* ============================================
   GOVERNMENT PLATE
   ============================================ */
.plate-visual.government {
    background: linear-gradient(135deg, #D4A84B 0%, #C9963A 100%);
    border-color: #B8922F;
    box-shadow: 0 4px 12px rgba(212, 168, 75, 0.25);
}

.gov-code {
    border-right: none;
    margin-right: 8px;
    padding-right: 8px;
}

.gov-label-ar {
    font-size: 10px;
    color: #333;
}

.gov-cc {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.gov-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 10px;
    margin-left: auto;
}

.gov-ar, .gov-uae {
    color: #333;
}

/* ============================================
   KSA PLATE
   ============================================ */
.plate-visual.ksa {
    background: #FFFFFF;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
}

.ksa-center {
    background: linear-gradient(135deg, #006233, #00873d);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: 0 2px 8px rgba(0, 98, 51, 0.3);
}

.ksa-inputs-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
}

.ksa-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ksa-ar {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.ksa-ar-letters {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.ksa-input {
    max-width: 120px;
    font-size: 24px;
}

.ksa-underlined {
    border: none;
    border-bottom: 2px solid #006233 !important;
    background: rgba(0, 98, 51, 0.05);
    padding: 8px 16px;
    border-radius: 4px 4px 0 0;
    transition: all 0.2s ease;
    min-width: 100px;
}

.ksa-underlined:focus {
    border-bottom-color: #00873d !important;
    background: rgba(0, 98, 51, 0.1);
    box-shadow: 0 2px 0 0 #00873d;
}

.ksa-underlined::placeholder {
    color: #aaa;
    opacity: 0.7;
}

.plate-letters-input {
    width: 100px;
    border: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    text-transform: uppercase;
    outline: none;
}

/* ============================================
   QATAR PLATE
   ============================================ */
.plate-visual.qatar {
    background: #FFFFFF;
}

.qatar-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 16px;
    border-right: 1px solid #E5E5E5;
    margin-right: 16px;
}

.qatar-logo {
    font-size: 12px;
    font-weight: 700;
    color: #8B1538;
}

.qatar-ar {
    font-size: 14px;
    color: #8B1538;
}

/* ============================================
   OMAN PLATE
   ============================================ */
.plate-visual.oman {
    background: linear-gradient(135deg, #F5C518 0%, #E5B508 100%);
    border-color: #D4A800;
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.25);
}

.oman-numbers {
    flex: none;
}

.oman-code {
    margin: 0 12px;
}

.oman-label {
    margin-left: auto;
}

.oman-ar {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* ============================================
   KUWAIT PLATE
   ============================================ */
.plate-visual.kuwait {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px;
}

.kuwait-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    margin-bottom: 8px;
}

.kuwait-ar,
.kuwait-en {
    color: var(--color-text-primary);
    font-weight: 600;
}

.kuwait-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.plate-code-input {
    width: 50px;
    border: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    outline: none;
}

.kuwait-dash {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-primary);
}

/* ============================================
   BAHRAIN PLATE
   ============================================ */
.plate-visual.bahrain {
    background: #FFFFFF;
}

.bahrain-flag {
    width: 30px;
    height: 40px;
    background: linear-gradient(to right, #CE1126 0%, #CE1126 30%, white 30%, white 35%, #CE1126 35%, #CE1126 45%, white 45%, white 50%, #CE1126 50%);
    margin-right: 12px;
    border-radius: 2px;
}

.bahrain-label {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
}

.bahrain-ar {
    font-size: 12px;
    color: #CE1126;
}

.bahrain-en {
    font-size: 10px;
    color: #CE1126;
    font-weight: 600;
}

/* ============================================
   ACCESS CARD PAGE
   ============================================ */
.access-card-form-content {
    padding: 0 16px;
    padding-bottom: 100px;
    background: var(--color-bg-primary);
    min-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Section Title */
.ac-section-title {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    padding-top: 8px;
}

/* Name Card */
.ac-name-card {
    background: var(--color-bg-white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--color-border-light);
}

.ac-field-label {
    display: block;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.ac-field-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--color-border-light);
    padding: 8px 0;
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--color-text-primary);
    background: transparent;
    outline: none;
}

.ac-field-input:focus {
    border-bottom-color: var(--color-primary);
}

.ac-field-input::placeholder {
    color: var(--color-text-tertiary);
}

/* Selfie Upload */
.ac-selfie-upload {
    margin-bottom: 24px;
}

.btn-upload-selfie {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-upload-selfie:active {
    background: rgba(53, 122, 215, 0.1);
}

/* Selfie Preview */
.ac-selfie-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.ac-selfie-preview .selfie-wrapper {
    position: relative;
    display: inline-block;
}

.ac-selfie-preview img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-border-light);
    display: block;
}

.ac-remove-selfie {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #EF4444;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Access Level Card */
.ac-access-level-card {
    background: transparent;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.ac-level-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ac-level-title {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.ac-level-desc {
    font-family: var(--font-secondary);
    font-size: 13px;
    color: var(--color-text-secondary);
}

.ac-access-level-card svg {
    color: var(--color-text-secondary);
}

/* Submit Button */
.btn-submit-access-card {
    position: fixed;
    bottom: 24px;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    padding: 16px;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   ACCESS LEVEL PAGE
   ============================================ */
.access-level-form-content {
    padding: 0 16px;
    padding-bottom: 100px;
    background: var(--color-bg-primary);
    min-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Options Card */
.al-options-card {
    background: var(--color-bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    margin-top: 16px;
}

/* Option Row */
.al-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--color-border-light);
}

.al-option:last-child {
    border-bottom: none;
}

.al-option-text {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-primary);
}

/* Hide default checkbox */
.al-option input[type="checkbox"],
.al-full-access-option input[type="checkbox"] {
    display: none;
}

/* Custom Checkbox */
.al-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.al-option input[type="checkbox"]:checked ~ .al-checkbox,
.al-full-access-option input[type="checkbox"]:checked ~ .al-checkbox {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.al-option input[type="checkbox"]:checked ~ .al-checkbox::after,
.al-full-access-option input[type="checkbox"]:checked ~ .al-checkbox::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    margin-bottom: 2px;
}

/* Full Access Option (separate) */
.al-full-access-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    margin-top: 24px;
}

/* Update Button */
.btn-update-access {
    position: fixed;
    bottom: 24px;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    padding: 16px;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

/* Legacy styles for compatibility */
.access-card-content {
    padding: 16px;
    padding-bottom: 120px;
    background: var(--color-bg-primary);
    min-height: calc(100vh - 120px);
}

.access-level-card {
    background: var(--color-bg-white);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: 1px solid var(--color-border-light);
}

.selfie-preview {
    margin-top: 16px;
    position: relative;
    display: inline-block;
}

.selfie-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.remove-selfie {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

/* ============================================
   BACK BUTTON
   ============================================ */
.back-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header .back-btn + h1 {
    flex: 1;
    text-align: center;
    margin-right: 40px;
}
