/* 
    Donoride Premium UI System
    Enhancing visuals with CSS GPU Acceleration and Custom Shadow Utilities
*/

:root {
    --premium-gradient: linear-gradient(135deg, #ff6a00, #ff3c00);
    --premium-gradient-hover: linear-gradient(135deg, #ff7b1a, #ff4c0d);
    --premium-shadow: 0 10px 25px rgba(255, 90, 31, .25);
    --premium-shadow-hover: 0 18px 40px rgba(255, 90, 31, .35);
    --premium-radius: 8px;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 25px 60px rgba(0, 0, 0, 0.12);
}

/* 1. Premium Button System */
.btn-premium {
    background: var(--premium-gradient) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--premium-radius) !important;
    padding: 14px 32px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all .4s ease !important;
    box-shadow: var(--premium-shadow) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
    will-change: transform, box-shadow !important;
}

.btn-premium:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--premium-shadow-hover) !important;
    background: var(--premium-gradient-hover) !important;
}

/* 2. Global Card Hover Elevation */
.premium-card {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: var(--card-shadow) !important;
    will-change: transform, box-shadow !important;
}

.premium-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: var(--card-shadow-hover) !important;
}

/* 3. Image Zoom Micro-interaction */
.premium-img-zoom {
    overflow: hidden !important;
    border-radius: inherit;
    position: relative;
}

.premium-img-zoom img {
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-img-zoom:hover img {
    transform: scale(1.08) !important;
}

/* 4. Input Focus Glow Animation */
.premium-input-glow {
    transition: all 0.3s ease !important;
    border: 1px solid #E5E7EB;
    outline: none !important;
}

.premium-input-glow:focus {
    border-color: #ff6a00 !important;
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.1) !important;
    background-color: #fffaf7 !important;
}

/* 5. Icon Hover Bounce */
.premium-icon-hover i {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    will-change: transform;
}

.premium-icon-hover:hover i {
    transform: translateY(-5px) scale(1.15);
    color: #ff6a00;
}

/* 6. Animation Safety — GSAP handles the initial hidden state at runtime via gsap.from().
   Do NOT pre-hide animate-* classes with CSS; if JS fails, content would stay permanently invisible. */
/* 6. Premium SweetAlert System */
.swal2-popup {
    border-radius: 20px !important;
    padding: 2.5rem !important;
    font-family: "Inter", sans-serif !important;
    border: 1px solid rgba(255, 90, 31, .1) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1) !important;
    background: #ffffff !important;
}

.swal2-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #111 !important;
    margin-bottom: 0.5rem !important;
}

.swal2-html-container {
    font-size: 15px !important;
    color: #555 !important;
    line-height: 1.6 !important;
}

.swal2-styled.swal2-confirm {
    background: var(--premium-gradient) !important;
    border-radius: 12px !important;
    padding: 12px 35px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: var(--premium-shadow) !important;
    transition: all .3s ease !important;
    border: none !important;
}

.swal2-styled.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--premium-shadow-hover) !important;
}

.swal2-styled.swal2-cancel {
    border-radius: 12px !important;
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    font-weight: 700 !important;
    padding: 12px 35px !important;
    border: none !important;
}

.swal2-icon.swal2-success {
    border-color: #ff6a00 !important;
    color: #ff6a00 !important;
}

.swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #ff6a00 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border: .25em solid rgba(255, 106, 0, .2) !important;
}

/* 7. Premium Advertisement Popup System */
.dr-ads-popup {
    background: #fff url('{{ asset("brain/86f00027-cc6d-4863-bca7-6e409122621d/promo_popup_background_1775208726724.png") }}') no-repeat center center !important;
    background-size: cover !important;
    border-radius: 24px !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(5px);
    overflow: hidden !important;
    padding: 0 !important;
}

.ads-content-inner {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.7);
    height: 100%;
}

.ads-tag {
    font-size: 13px;
    font-weight: 700;
    color: #ff6a00;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease backwards;
}

.ads-promo-text {
    font-size: 64px;
    font-weight: 800;
    color: #111;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    animation: fadeInUp 1s 0.2s ease backwards;
}

.ads-description {
    font-size: 16px;
    color: #444;
    max-width: 80%;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    animation: fadeInUp 1.2s 0.4s ease backwards;
}

.btn-ads-claim {
    background: linear-gradient(135deg, #111, #333) !important;
    color: white !important;
    padding: 18px 50px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer;
    font-size: 14px;
    animation: fadeInUp 1.4s 0.6s ease backwards;
}

.btn-ads-claim:hover {
    transform: scale(1.05) translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
    background: #000 !important;
}

/* 8. Master Preloader V7 — Ultra-Clean Luxury Site-Matched Design */
.dr-preloader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #ffffff;
    background-image: 
        radial-gradient(circle at 50% 30%, rgba(255, 74, 45, 0.05) 0%, transparent 70%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.dr-preloader.dr-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dr-loader-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 440px;
    padding: 35px 25px 30px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.07), 0 4px 16px rgba(0, 0, 0, 0.02);
}

/* Vehicle Showcase Stage & Real Driving Motion */
.dr-car-display {
    position: relative;
    width: 320px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    overflow: hidden;
}

/* Road Stream Lines */
.dr-road-stream-container {
    position: absolute;
    bottom: 2px;
    width: 100%;
    height: 14px;
    overflow: hidden;
    pointer-events: none;
}

.dr-road-stream-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 74, 45, 0.6), transparent);
    border-radius: 2px;
    animation: roadStreamRun 0.5s infinite linear;
}

.dr-road-stream-line:nth-child(1) { bottom: 1px; width: 90px; animation-duration: 0.4s; animation-delay: 0s; }
.dr-road-stream-line:nth-child(2) { bottom: 5px; width: 130px; animation-duration: 0.6s; animation-delay: 0.2s; }
.dr-road-stream-line:nth-child(3) { bottom: 9px; width: 70px; animation-duration: 0.35s; animation-delay: 0.1s; }

/* Real Car Driving Motion Wrapper */
.dr-car-driving-wrapper {
    position: relative;
    width: 290px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: realCarDrive 0.35s ease-in-out infinite alternate;
}

.dr-car-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.dr-car-shadow {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 8px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.16) 0%, transparent 75%);
    border-radius: 50%;
    animation: shadowScale 0.35s ease-in-out infinite alternate;
}

/* Brand Logo */
.dr-brand-container {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dr-brand-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
}

/* Progress Track & Text */
.dr-progress-block {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dr-progress-track {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
}

.dr-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff4a2d, #ff7a1f);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 74, 45, 0.35);
    transition: width 0.15s ease-out;
}

.dr-progress-meta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.dr-status-text {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 11px;
    color: #475569;
    font-weight: 600;
}

.dr-percentage-num {
    font-weight: 700;
    color: #ff4a2d;
    font-family: 'Armata', monospace, sans-serif;
    font-size: 13px;
}

@keyframes realCarDrive {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-2px) rotate(-0.3deg); }
    100% { transform: translateY(-1px) rotate(0.3deg); }
}

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

@keyframes roadStreamRun {
    0% { transform: translateX(220px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(-220px); opacity: 0; }
}

@keyframes shadowScale {
    0% { transform: translateX(-50%) scale(1); opacity: 0.16; }
    100% { transform: translateX(-50%) scale(0.95); opacity: 0.1; }
}

@media (max-width: 576px) {
    .dr-loader-card { padding: 25px 18px; max-width: 90%; }
    .dr-car-display { width: 260px; height: 90px; }
    .dr-car-driving-wrapper { width: 230px; height: 75px; }
    .dr-wheel-spinner { width: 22px; height: 22px; bottom: 10px; }
    .dr-wheel-spinner.rear { left: 30px; }
    .dr-wheel-spinner.front { right: 32px; }
    .dr-brand-logo { height: 28px; }
}

/* Touch Device Optimization */
html, body {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button:active, .drh-btn:active, .drh-tab:active, .drh-service-btn:active {
    transform: scale(0.97) !important;
}








