html {
    background-color: #12100e;
    min-height: 100%;
}

/* iOS Safari auto-zooms the viewport whenever a form control with a font-size below 16px
   receives focus, and since we deliberately allow pinch-zoom the user is left zoomed in and
   has to pinch back out. Force 16px on small screens so the auth, search and payment inputs
   behave. !important is required: Tailwind's text-sm/text-xs utilities are class selectors
   and would otherwise win over these element selectors regardless of load order. */
@media (max-width: 767px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #12100e;
    background: radial-gradient(circle at 80% 20%, #4a2f0f 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, #231f20 0%, transparent 50%),
                linear-gradient(135deg, #0e0d0c 0%, #1a1613 100%);
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    margin: 0;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
}

.glass-panel {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transform: translateZ(0);
}

/* iOS-style Opaque Glass for Dropdown */
.glass-dropdown {
    background: rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    transform: translateZ(0);
}

/* Material Design Input */
.material-input-group {
    position: relative;
    width: 100%;
}

.material-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 4rem 0.5rem 1rem;
    color: white;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.material-input:focus {
    outline: none;
    border-bottom: 2px solid #f59e0b;
    background: rgba(0, 0, 0, 0.3);
}

.material-input:focus + .material-label,
.material-input:not(:placeholder-shown) + .material-label {
    transform: translateY(-1rem) scale(0.8);
    color: #fde68a;
}

.material-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    max-width: calc(100% - 4.5rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left top;
}

/* Material Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

.btn-ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.btn-ripple:active:after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

/* Animation utilities */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-250 { animation-delay: 250ms; }
.delay-300 { animation-delay: 300ms; }

/* Loader */
.loader {
    border: 2px solid rgba(255,255,255,0.2);
    border-left-color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar - Standard Syntax */
.custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar - Webkit Fallback */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.5);
}

/* Modal Transitions */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up-fade {
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Marketplace Card & Pagination Hover States */
.market-card {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
}
.market-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.pagination-btn {
    transition: all 0.2s ease;
}
.pagination-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}
.pagination-btn.active {
    background: #b45309; /* amber-700: white text needs >=4.5:1 contrast, amber-500 was only 2.15:1 */
    color: #ffffff;
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Domain Badge Accent colors */
.badge-zone-zcash { background: rgba(245, 158, 11, 0.2); border: 1px solid rgba(245, 158, 11, 0.3); color: #fde68a; }
.badge-zone-zec { background: rgba(245, 158, 11, 0.2); border: 1px solid rgba(245, 158, 11, 0.3); color: #fde68a; }
.badge-zone-private { background: rgba(236, 72, 153, 0.2); border: 1px solid rgba(236, 72, 153, 0.3); color: #fbcfe8; }
.badge-zone-secure { background: rgba(59, 130, 246, 0.2); border: 1px solid rgba(59, 130, 246, 0.3); color: #bfdbfe; }
.badge-zone-safe { background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(16, 185, 129, 0.3); color: #a7f3d0; }

/* Onboarding slide interactive transitions */
.onboarding-slide {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}
.onboarding-slide.active {
    opacity: 1;
    transform: translateY(0);
}

