/* style.css */
/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

:root {
    /* Couleurs */
    --bg-dark: #05070f;
    --bg-darker: #02040a;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-light: rgba(255, 255, 255, 0.08);
    --glass-border-heavy: rgba(255, 255, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.07);
    --glass-frost: rgba(255, 255, 255, 0.12);
    --glass-frost-strong: rgba(255, 255, 255, 0.28);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glass-blur: 20px;
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-gray: rgba(255, 255, 255, 0.6);
    --accent: #7aa2ff;
    --accent-glow: rgba(122, 162, 255, 0.22);
    --nebula-1: rgba(122, 162, 255, 0.35);
    --nebula-2: rgba(255, 124, 216, 0.2);
    --nebula-3: rgba(94, 240, 255, 0.18);
    
    /* Espacement */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    
    /* Bordures */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    
    /* Typographie */
    --font-sm: 14px;
    --font-md: 16px;
    --font-lg: 20px;
    --font-xl: 24px;
    --page-max: 980px;
    --glass-sheen: rgba(255, 255, 255, 0.35);
    
    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(1500px 1000px at 8% -12%, rgba(122, 162, 255, 0.2), transparent 60%),
        radial-gradient(1000px 800px at 88% 8%, rgba(255, 124, 216, 0.16), transparent 55%),
        radial-gradient(1200px 1000px at 50% 115%, rgba(94, 240, 255, 0.16), transparent 60%),
        linear-gradient(180deg, #070b16, #02040a 55%, #010309);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body {
    letter-spacing: -0.1px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 15% 20%, rgba(255, 255, 255, 0.8), transparent 60%),
        radial-gradient(1.5px 1.5px at 30% 70%, rgba(255, 255, 255, 0.55), transparent 60%),
        radial-gradient(1px 1px at 55% 35%, rgba(255, 255, 255, 0.6), transparent 60%),
        radial-gradient(1.5px 1.5px at 75% 60%, rgba(255, 255, 255, 0.5), transparent 60%),
        radial-gradient(1px 1px at 85% 25%, rgba(255, 255, 255, 0.6), transparent 60%),
        radial-gradient(1px 1px at 10% 80%, rgba(255, 255, 255, 0.45), transparent 60%);
    opacity: 0.45;
    z-index: -3;
    pointer-events: none;
    animation: star-drift 30s linear infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    inset: -10%;
    background:
        radial-gradient(680px 520px at 18% 18%, rgba(122, 162, 255, 0.2), transparent 70%),
        radial-gradient(560px 460px at 82% 26%, rgba(255, 124, 216, 0.16), transparent 70%),
        radial-gradient(760px 640px at 52% 82%, rgba(94, 240, 255, 0.16), transparent 70%);
    filter: blur(28px);
    opacity: 0.75;
    animation: nebula-drift 24s ease-in-out infinite alternate;
    z-index: -4;
    pointer-events: none;
}

.shooting-stars {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.shooting-star {
    --tail: 170px;
    --dur: 1.8s;
    --angle: 26deg;
    position: absolute;
    width: var(--tail);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(210, 232, 255, 0.98));
    box-shadow: 0 0 12px rgba(180, 220, 255, 0.85), 0 0 24px rgba(160, 210, 255, 0.55);
    transform-origin: left center;
    transform: rotate(var(--angle));
    opacity: 0;
    animation: shooting-star-fly var(--dur) ease-out forwards;
}

.shooting-star::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.95);
}

@keyframes shooting-star-fly {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(var(--angle)) scaleX(0.35);
    }
    12% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(360px, 220px, 0) rotate(var(--angle)) scaleX(1);
    }
}

/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: radial-gradient(900px 700px at 50% 40%, rgba(122, 162, 255, 0.12), transparent 60%),
                linear-gradient(180deg, #05070f, #02040a);
    display: grid;
    place-items: center;
    z-index: 5000;
    opacity: 1;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 120px;
    height: 120px;
    position: relative;
    display: grid;
    place-items: center;
}

.loader-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    animation: logoPulse 1.2s ease-in-out infinite;
    filter: drop-shadow(0 8px 18px rgba(122, 162, 255, 0.35));
}

.ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: conic-gradient(from 0deg, rgba(255,255,255,0.0), rgba(255,255,255,0.95), rgba(255,255,255,0.0));
    -webkit-mask: radial-gradient(circle, transparent 55%, #000 56%);
    mask: radial-gradient(circle, transparent 55%, #000 56%);
    animation: spin 0.9s linear infinite;
    opacity: 0.9;
}

/* Glass Background Layers */
.glass-bg-layer {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.16;
    z-index: -2;
    animation: glow-float 16s ease-in-out infinite alternate;
}

.layer-1 {
    top: -160px;
    left: -140px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--nebula-1) 0%, transparent 70%);
    animation-delay: -3s;
}

.layer-2 {
    bottom: -220px;
    right: -180px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--nebula-2) 0%, transparent 72%);
    animation-delay: -8s;
}

/* Glass Header */
.glass-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(10, 12, 22, 0.5));
    border-bottom: none;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    overflow: hidden;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 86%,
        92% 92%,
        82% 88%,
        70% 94%,
        58% 89%,
        46% 95%,
        34% 90%,
        22% 94%,
        11% 89%,
        0 92%
    );
    animation: header-wave-slow 10s ease-in-out infinite alternate;
}

.glass-header::before {
    content: none;
}

.header-glass-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(20, 24, 38, 0.7));
    backdrop-filter: blur(48px) saturate(1.35);
    -webkit-backdrop-filter: blur(48px) saturate(1.35);
    z-index: -1;
}

.header-glass-reflection {
    display: none;
}

.glass-header::after {
    content: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.logo-glass {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-glass.small {
    width: auto;
    height: auto;
}

.logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: brightness(1.2);
    animation: logo-float 4.5s ease-in-out infinite;
}

.logo-text {
    font-size: var(--font-lg);
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    gap: var(--space-md);
}

.glass-nav-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    border: 1px solid var(--glass-frost-strong);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    overflow: hidden;
    animation: icon-float 3.2s ease-in-out infinite;
}

.desktop-nav .glass-nav-icon:nth-child(1) { animation-delay: 0s; }
.desktop-nav .glass-nav-icon:nth-child(2) { animation-delay: 0.4s; }
.desktop-nav .glass-nav-icon:nth-child(3) { animation-delay: 0.8s; }

.glass-nav-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.glass-nav-icon:hover::before {
    left: 100%;
}

.glass-nav-icon:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--glass-frost-strong);
    transform: translateY(-2px);
}

.glass-nav-icon:active {
    transform: scale(0.95);
}

.nav-icon {
    text-decoration: none;
    position: relative;
}

.nav-icon i {
    font-size: 18px;
    transition: transform var(--transition);
}

.nav-icon:hover i {
    transform: scale(1.2);
}

.nav-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    white-space: nowrap;
    border: 1px solid var(--glass-border);
}

.nav-icon:hover[data-tooltip]::after {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(12, 14, 26, 0.9));
    backdrop-filter: blur(52px) saturate(1.4);
    -webkit-backdrop-filter: blur(52px) saturate(1.4);
    border-left: 1px solid var(--glass-frost-strong);
    box-shadow: -26px 0 54px rgba(0, 0, 0, 0.6), inset 1px 0 0 rgba(255, 255, 255, 0.28);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--glass-border);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.close-mobile-menu {
    width: 40px;
    height: 40px;
}

.mobile-nav-items {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    text-decoration: none;
    color: var(--text-white);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08));
    border: 1px solid var(--glass-frost-strong);
    transition: all var(--transition);
}

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.mobile-nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Main Content - Image Buttons */
.main-content {
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px var(--space-md) 36px;
    margin-top: 14px;
}

.offers-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: var(--page-max);
    padding: 22px 14px 18px;
    border-radius: var(--radius-xl);
    justify-items: stretch;
    align-items: stretch;
}

.offers-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(12, 14, 26, 0.6)),
        radial-gradient(600px 400px at 20% 0%, rgba(255, 255, 255, 0.08), transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: inherit;
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.62),
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.offers-container::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: calc(var(--radius-xl) - 6px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.offers-container > * {
    position: relative;
    z-index: 1;
}

.transfer-counter {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 0;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.22), rgba(16, 20, 36, 0.72)),
        radial-gradient(420px 120px at 0% 0%, rgba(122, 162, 255, 0.2), transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.counter-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.counter-value {
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
    letter-spacing: -0.5px;
    text-shadow:
        0 0 8px rgba(122, 162, 255, 0.55),
        0 0 18px rgba(122, 162, 255, 0.35),
        0 0 30px rgba(94, 240, 255, 0.2);
    animation: counter-number-glow 2.2s ease-in-out infinite;
}

.counter-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: rgba(122, 162, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 0 rgba(122, 162, 255, 0.35);
    animation: counter-ping 2.4s ease-out infinite;
}

.counter-icon-wrap i {
    font-size: 15px;
    color: rgba(230, 241, 255, 0.95);
}

.offers-title {
    grid-column: 1 / -1;
    font-family: 'Space Grotesk', 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.2px;
    text-align: center;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(210, 230, 255, 0.85), rgba(255, 255, 255, 0.95));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 2px auto 12px;
    position: relative;
    animation: title-glow 3.5s ease-in-out infinite;
    text-shadow:
        0 2px 12px rgba(122, 162, 255, 0.35),
        0 0 20px rgba(255, 255, 255, 0.12);
}

.offers-title::after {
    content: '';
    display: block;
    width: 140px;
    height: 1px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    opacity: 0.7;
}

/* Image Buttons */
.offer-image-btn {
    position: relative;
    width: 100%;
    height: 190px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 18px;
    overflow: hidden;
    padding: 0;
    transition: all var(--transition);
    isolation: isolate;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.offer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: saturate(1.05) contrast(1.02);
}

.image-glass-overlay,
.image-glass-border {
    display: none;
}

.offer-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(122, 162, 255, 0.16) 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

@keyframes nebula-drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(2%, -2%, 0) scale(1.05);
    }
}

@keyframes glow-float {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-2%, 2%, 0);
    }
}

@keyframes star-drift {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-1%, 1%, 0);
    }
}

@keyframes logo-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes title-glow {
    0% {
        opacity: 0.85;
        text-shadow: 0 0 0 rgba(122, 162, 255, 0.0);
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        text-shadow: 0 8px 18px rgba(122, 162, 255, 0.25);
        transform: translateY(-1px);
    }
    100% {
        opacity: 0.9;
        text-shadow: 0 0 0 rgba(122, 162, 255, 0.0);
        transform: translateY(0);
    }
}

@keyframes icon-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
    100% {
        transform: translateY(0);
    }
}

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

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.95;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes counter-ping {
    0% {
        box-shadow: 0 0 0 0 rgba(122, 162, 255, 0.35);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(122, 162, 255, 0);
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(122, 162, 255, 0);
        transform: scale(1);
    }
}

@keyframes counter-number-glow {
    0%, 100% {
        text-shadow:
            0 0 8px rgba(122, 162, 255, 0.45),
            0 0 16px rgba(122, 162, 255, 0.28),
            0 0 24px rgba(94, 240, 255, 0.15);
    }
    50% {
        text-shadow:
            0 0 10px rgba(122, 162, 255, 0.7),
            0 0 24px rgba(122, 162, 255, 0.42),
            0 0 38px rgba(94, 240, 255, 0.25);
    }
}

@keyframes footer-wave-slow {
    0% {
        clip-path: polygon(
            0 14%,
            10% 6%,
            22% 15%,
            34% 7%,
            46% 16%,
            58% 6%,
            70% 15%,
            82% 7%,
            92% 14%,
            100% 9%,
            100% 100%,
            0 100%
        );
    }
    100% {
        clip-path: polygon(
            0 9%,
            10% 14%,
            22% 7%,
            34% 16%,
            46% 8%,
            58% 15%,
            70% 6%,
            82% 14%,
            92% 8%,
            100% 13%,
            100% 100%,
            0 100%
        );
    }
}

@keyframes header-wave-slow {
    0% {
        clip-path: polygon(
            0 0,
            100% 0,
            100% 86%,
            92% 92%,
            82% 88%,
            70% 94%,
            58% 89%,
            46% 95%,
            34% 90%,
            22% 94%,
            11% 89%,
            0 92%
        );
    }
    100% {
        clip-path: polygon(
            0 0,
            100% 0,
            100% 89%,
            92% 86%,
            82% 92%,
            70% 88%,
            58% 94%,
            46% 89%,
            34% 95%,
            22% 90%,
            11% 94%,
            0 88%
        );
    }
}

@keyframes header-divider-wave {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 240px;
    }
}

/* Hover Effects */
.offer-image-btn:hover {
    transform: translateY(-6px);
}


.offer-image-btn:hover .offer-img {
    transform: scale(1.04);
}

.offer-image-btn:hover .offer-glow {
    opacity: 1;
}

/* Active/Press Effect */
.offer-image-btn:active {
    transform: scale(0.98);
    transition: transform var(--transition-fast);
}

/* Glass Footer */
.glass-footer {
    position: relative;
    padding: 28px 0;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(10, 12, 22, 0.5));
    border-top: none;
    box-shadow: 0 -18px 46px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    clip-path: polygon(
        0 14%,
        10% 6%,
        22% 15%,
        34% 7%,
        46% 16%,
        58% 6%,
        70% 15%,
        82% 7%,
        92% 14%,
        100% 9%,
        100% 100%,
        0 100%
    );
    animation: footer-wave-slow 8s ease-in-out infinite alternate;
}

.footer-glass-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.26), rgba(20, 24, 38, 0.7));
    backdrop-filter: blur(48px) saturate(1.3);
    -webkit-backdrop-filter: blur(48px) saturate(1.3);
    z-index: -1;
}

.footer-glass-reflection {
    display: none;
}

.glass-footer::after {
    content: none;
}

.footer-content {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    text-decoration: none;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-white);
    transition: width var(--transition);
}

.footer-link:hover {
    color: var(--text-white);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-pay-bubble {
    width: min(760px, 100%);
    margin: 6px auto 12px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.footer-pay-chip {
    appearance: none;
    -webkit-appearance: none;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: linear-gradient(145deg, rgba(18, 24, 39, 0.68), rgba(12, 16, 28, 0.56));
    color: rgba(255, 255, 255, 0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    text-align: center;
}

.footer-pay-chip i {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
}

.footer-pay-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.36);
}

.copyright {
    color: var(--text-gray);
    font-size: var(--font-sm);
}

/* Selection Modal */
.selection-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.selection-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.selection-modal {
    width: 90%;
    max-width: 400px;
    transform: scale(0.9);
    opacity: 0;
    transition: all var(--transition);
}

.selection-modal-overlay.active .selection-modal {
    transform: scale(1);
    opacity: 1;
}

.modal-glass {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(12, 14, 26, 0.88));
    backdrop-filter: blur(42px) saturate(1.35);
    -webkit-backdrop-filter: blur(42px) saturate(1.35);
    border: 1px solid var(--glass-frost-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
    font-size: var(--font-lg);
    font-weight: 600;
}

.close-modal {
    width: 36px;
    height: 36px;
}

.modal-body {
    padding: var(--space-xl);
}

.selected-offer-details {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(12, 14, 26, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: var(--space-md);
    text-align: left;
}

.selected-offer-details h4 {
    font-size: 15px;
    margin-bottom: 6px;
}

.selected-offer-details .detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
}

.payment-box {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(12, 14, 26, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: var(--space-md);
}

.payment-box.hidden {
    display: none;
}

.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.payment-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.payment-modal {
    width: 92%;
    max-width: 440px;
    transform: scale(0.95);
    opacity: 0;
    transition: all var(--transition);
}

.payment-modal .modal-glass {
    border-radius: 18px;
}

.payment-modal .modal-header {
    padding: 18px 20px;
}

.payment-modal .modal-header h3 {
    font-size: 18px;
    letter-spacing: -0.2px;
}

.payment-modal-overlay.active .payment-modal {
    transform: scale(1);
    opacity: 1;
}

.payment-total.big {
    position: relative;
    font-size: 16px;
    margin-bottom: 16px;
    padding: 18px 18px 14px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 10px, transparent 10px 20px);
    border: 1px dashed rgba(255, 255, 255, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 10px 24px rgba(0, 0, 0, 0.35);
}

.payment-total.big::before,
.payment-total.big::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #0b0f1c;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.payment-total.big::before {
    left: -8px;
}

.payment-total.big::after {
    right: -8px;
}

.payment-icons.big {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.payment-bubble-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 8px 2px;
}

.pay-item.big {
    appearance: none;
    -webkit-appearance: none;
    font-size: 13px;
    padding: 11px 10px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(18, 24, 39, 0.7), rgba(12, 16, 28, 0.58));
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    text-align: center;
    font-family: inherit;
    line-height: 1;
}

.pay-item.big i {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
}

.pay-item.big:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.38);
    background: linear-gradient(145deg, rgba(24, 30, 47, 0.78), rgba(14, 20, 35, 0.66));
}

.payment-modal .modal-body {
    padding: 18px 20px 20px;
}

.chat-fab,
.index-chat-fab {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    z-index: 3000;
    text-decoration: none;
    transition: transform 0.22s ease, background 0.22s ease;
    border: 0;
}

.chat-fab svg,
.index-chat-fab svg {
    width: 26px;
    height: 26px;
}

.chat-fab:hover,
.index-chat-fab:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.12));
}

.chat-panel {
    position: fixed;
    left: 16px;
    bottom: 80px;
    z-index: 2999;
    width: min(360px, calc(100vw - 24px));
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-head {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.chat-head-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-badge {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.chat-badge svg {
    width: 14px;
    height: 14px;
}

.chat-title-wrap {
    display: grid;
    gap: 1px;
}

.chat-subtitle {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
}

.chat-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

.chat-body {
    max-height: 320px;
    overflow: auto;
    padding: 12px;
    display: grid;
    gap: 8px;
}

.chat-menu {
    padding: 12px;
    display: grid;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-option {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 11px;
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 8px;
    align-items: center;
    text-align: left;
    cursor: pointer;
    font-size: 0.84rem;
    line-height: 1.35;
}

.chat-option svg {
    width: 20px;
    height: 20px;
}

.chat-option strong {
    display: block;
    font-size: 0.86rem;
    margin-bottom: 1px;
}

.hidden {
    display: none !important;
}

.chat-link-btn {
    justify-self: start;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.chat-link-btn.telegram {
    display: inline-grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    align-items: center;
    border-radius: 12px;
    border: 1px solid rgba(95, 200, 255, 0.75);
    background: linear-gradient(145deg, rgba(36, 162, 255, 0.92), rgba(18, 123, 220, 0.9));
    box-shadow: 0 10px 24px rgba(20, 110, 210, 0.35);
    color: #ffffff;
    padding: 9px 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.chat-link-btn.telegram:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(20, 110, 210, 0.45);
    filter: brightness(1.05);
}

.chat-link-btn.telegram svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.chat-msg {
    max-width: 86%;
    justify-self: start;
    align-self: start;
    font-size: 0.86rem;
    line-height: 1.45;
    padding: 8px 10px 8px 36px;
    border-radius: 12px;
    border: 1px solid rgba(132, 186, 255, 0.45);
    background: rgba(67, 128, 214, 0.28);
    color: #fff;
    white-space: pre-wrap;
    position: relative;
}

.chat-msg.assistant::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 7px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='6.5' y='7' width='11' height='10' rx='2.3' stroke='white' stroke-width='1.6'/%3E%3Ccircle cx='10' cy='12' r='1' fill='white'/%3E%3Ccircle cx='14' cy='12' r='1' fill='white'/%3E%3Cpath d='M12 4.5V7' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='3.5' r='1' fill='white'/%3E%3Cpath d='M9.5 15H14.5' stroke='white' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 13px 13px;
    background-position: center;
    background-repeat: no-repeat;
}

.chat-msg.assistant {
    justify-self: end;
    align-self: end;
}

.chat-msg.user {
    justify-self: start;
    align-self: start;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.33);
    padding: 8px 10px;
}

.chat-typing {
    min-width: 70px;
    padding-right: 12px;
}

.typing-dots {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    height: 18px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    opacity: 0.35;
    animation: typingDot 1s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.14s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.28s;
}

@keyframes typingDot {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    50% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

.chat-foot {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.chat-input {
    min-width: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.33);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 10px 11px;
    font: inherit;
    font-size: 0.85rem;
}

.chat-send {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 0 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.82rem;
}

.payment-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.payment-label {
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.payment-amount {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.payment-total-note {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.payment-title {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.payment-icons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
}

.pay-item {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
    width: 100%;
}

.pay-item:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
}

.offer-form {
    display: grid;
    gap: 10px;
    margin-bottom: var(--space-md);
}

.form-row {
    display: grid;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-form input,
.offer-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 10px 12px;
    border-radius: 10px;
    outline: none;
    transition: border-color var(--transition), background var(--transition);
}

.offer-form input:focus,
.offer-form textarea:focus {
    border-color: rgba(122, 162, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.form-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 2px 6px rgba(122, 162, 255, 0.3));
}

.revolut-logo {
    width: 62px;
    height: 20px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.selected-offer-image {
    width: min(100%, 320px);
    aspect-ratio: 1.62 / 1;
    height: auto;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0 auto var(--space-md);
    border: none;
    background: rgba(0, 0, 0, 0.22);
}

.selected-offer-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
}

.modal-btn {
    flex: 1;
    padding: var(--space-md);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--glass-border);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.confirm-btn {
    background: var(--accent);
    color: var(--text-white);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.confirm-btn:hover {
    background: #5a52e0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* Ripple Effect */
.ripple-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


/* Responsive */
@media (min-width: 768px) {
    :root {
        --glass-blur: 30px;
    }
    
    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .offers-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding: 20px 18px 18px;
    }
    
    .offer-image-btn {
        height: 235px;
    }
}

@media (min-width: 1024px) {
    .offer-image-btn {
        height: 248px;
    }
}

@media (max-width: 767px) {
    :root {
        --space-md: 12px;
        --space-lg: 18px;
        --space-xl: 24px;
        --radius-xl: 20px;
    }

    .glass-header {
        padding: calc(8px + env(safe-area-inset-top)) 0 10px;
    }

    .header-content {
        padding: 0 12px;
        gap: 10px;
    }

    .logo {
        width: 78px;
        height: 78px;
    }

    .glass-nav-icon {
        width: 42px;
        height: 42px;
    }

    .main-content {
        min-height: auto;
        justify-content: flex-start;
        padding: 16px 10px 28px;
        margin-top: 10px;
    }

    .offers-container {
        padding: 16px 10px 14px;
        gap: 12px;
        border-radius: 18px;
    }

    .offers-title {
        margin-bottom: 8px;
        font-size: 21px;
    }

    .offer-card {
        gap: 8px;
    }

    .offer-image-btn {
        height: auto;
        aspect-ratio: 1.72 / 1;
        border-radius: 14px;
    }

    .offer-meta {
        padding: 9px 10px;
        border-radius: 12px;
    }

    .offer-line {
        width: 100%;
        justify-content: center;
        gap: 8px;
        font-size: 14px;
    }

    .transfer-counter {
        margin-top: 8px;
        padding: 12px 12px;
        border-radius: 14px;
    }

    .counter-label {
        font-size: 12px;
        gap: 8px;
    }

    .counter-value {
        font-size: 30px;
    }

    .counter-icon-wrap {
        width: 30px;
        height: 30px;
    }

    .mobile-nav {
        width: min(88vw, 360px);
        padding: calc(18px + env(safe-area-inset-top)) 18px 18px;
    }

    .selection-modal-overlay,
    .payment-modal-overlay {
        align-items: flex-end;
    }

    .selection-modal,
    .payment-modal {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .selection-modal .modal-glass,
    .payment-modal .modal-glass {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .modal-header {
        padding: 14px 14px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-body {
        padding: 14px;
        max-height: min(72vh, 640px);
        overflow: auto;
    }

    .modal-actions {
        gap: 10px;
    }

    .modal-btn {
        min-height: 44px;
    }

    .chat-panel {
        left: 10px;
        width: calc(100vw - 20px);
        bottom: calc(78px + env(safe-area-inset-bottom));
    }

    .chat-body {
        max-height: min(42vh, 360px);
    }

    .chat-fab {
        left: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        width: 60px;
        height: 60px;
    }

    .glass-footer {
        padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
    }

    .footer-content {
        padding: 0 12px;
    }

    .footer-links {
        gap: 14px;
        margin-bottom: 10px;
    }

    .payment-icons.big {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-pay-bubble {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .glass-header {
        padding: calc(8px + env(safe-area-inset-top)) 0 10px;
        clip-path: polygon(
            0 0,
            100% 0,
            100% 88%,
            90% 93%,
            78% 90%,
            66% 95%,
            54% 91%,
            42% 96%,
            30% 91%,
            18% 95%,
            8% 91%,
            0 94%
        );
    }

    .logo {
        width: 72px;
        height: 72px;
    }

    .header-glass-reflection {
        display: none;
    }

    .glass-header::before {
        content: none;
    }

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

    .offers-container {
        padding: 14px 10px 12px;
        gap: 10px;
    }

    .offer-image-btn {
        height: auto;
        aspect-ratio: 1.64 / 1;
    }

    .modal-body {
        padding: 12px;
        max-height: min(74vh, 640px);
    }

    .chat-panel {
        left: 8px;
        width: calc(100vw - 16px);
        bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .chat-fab {
        left: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom));
    }

    .glass-footer {
        clip-path: polygon(
            0 11%,
            12% 6%,
            26% 12%,
            40% 7%,
            54% 13%,
            68% 7%,
            82% 12%,
            92% 8%,
            100% 11%,
            100% 100%,
            0 100%
        );
    }

    .footer-pay-bubble {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.offer-card {
    display: grid;
    gap: 10px;
}

.offer-meta {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(12, 14, 26, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 10px 12px;
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    text-align: center;
}

.offer-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.92);
}

.offer-pay,
.offer-recv {
    font-weight: 700;
}

.offer-arrow {
    opacity: 0.7;
}

.offer-line i {
    margin-right: 6px;
}
.logo-text {
    display: none;
}
