body {
    -webkit-user-select: none;
    user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    background: #f2f2f7 !important;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.2px;
}
[ng\:cloak], [ng-cloak], .ng-cloak {
    display: none !important;
}

/* iOS-like grouped sections */
.section-group {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.section-group .list-item {
    position: relative;
}
.section-group .list-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 60px;
    right: 0;
    height: 0.5px;
    background: #c6c6c8;
}

/* Card brand icon */
.card-brand {
    width: 44px;
    height: 32px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}
.card-brand.uzcard { background: linear-gradient(135deg, #00a651, #009444); }
.card-brand.humo { background: linear-gradient(135deg, #0066cc, #0052a3); }
.card-brand.other { background: linear-gradient(135deg, #8e8e93, #636366); }

/* Themed form input */
.form-control.apple-input {
    border: none;
    border-radius: 10px;
    background: rgba(120, 120, 128, 0.12);
    font-size: 17px;
    padding: 12px 16px;
}
.form-control.apple-input:focus {
    background: rgba(120, 120, 128, 0.18);
    box-shadow: none;
}
.form-control.apple-input::placeholder {
    color: #c7c7cc;
}

/* Primary CTA */
.btn.btn-apple {
    border-radius: 12px;
    padding: 15px;
    font-size: 17px;
    font-weight: 600;
    background: #000;
    border: none;
    color: #fff;
}
.btn.btn-apple:hover { opacity: 0.85; color: #fff; }
.btn.btn-apple:disabled { background: #000; opacity: 0.4; color: #fff; }
.btn.btn-apple:active { opacity: 0.7; color: #fff; }

/* Danger CTA */
.btn.btn-apple-danger {
    border-radius: 12px;
    padding: 15px;
    font-size: 17px;
    font-weight: 600;
    background: #ff3b30;
    border: none;
    color: #fff;
}
.btn.btn-apple-danger:hover { opacity: 0.85; color: #fff; }
.btn.btn-apple-danger:disabled { opacity: 0.4; color: #fff; }

/* Secondary CTA */
.btn.btn-apple-secondary {
    border-radius: 12px;
    padding: 15px;
    font-size: 17px;
    font-weight: 600;
    background: rgba(120, 120, 128, 0.12);
    border: none;
    color: #000;
}

/* Amount chip */
.btn.btn-chip {
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    background: rgba(120, 120, 128, 0.12);
    border: none;
    color: #000;
}
.btn.btn-chip:active { background: rgba(120, 120, 128, 0.24); }

/* Bottom sheet */
.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.sheet-content {
    background: #f2f2f7;
    border-radius: 14px 14px 0 0;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    max-width: 428px;
}
.sheet-handle {
    width: 36px;
    height: 5px;
    border-radius: 3px;
    background: rgba(120, 120, 128, 0.3);
}

/* Error banner */
.alert-apple {
    background: rgba(255, 59, 48, 0.1);
    border: none;
    border-radius: 12px;
    color: #ff3b30;
    font-size: 14px;
}

/* Success check circle */
.success-check {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #34c759;
}
.success-check::after {
    content: '';
    width: 20px;
    height: 10px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(-45deg);
    margin-top: -4px;
}

/* Custom spinner */
.spinner-apple {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: apple-spin 0.8s linear infinite;
    vertical-align: middle;
}
@keyframes apple-spin {
    to { transform: rotate(360deg); }
}

/* Bottom bar gradient */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    max-width: 428px;
    margin: 0 auto;
    background: linear-gradient(to top, #f2f2f7 80%, transparent);
    z-index: 10;
}

/* Card option radio */
.card-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #c7c7cc;
    transition: all 0.15s;
}
.card-radio.active {
    border-color: #000;
    background: #000;
}
.card-radio.active::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}
