/* Style for the active navigation link (avoid affecting logo and CTA) */
.nav-link.active:not(.brand-logo):not(.cta-button) {
    color: #ff007f;
    /* brand-accent */
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* Hide all pages by default */
.page-section {
    display: none;
    /* Apply fade-in animation */
    animation: fadeIn 0.6s ease-out forwards;
}

/* Show the active page */
.page-section.active {
    display: block;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #1f1f1f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff007f;
}

/* Details/Summary (FAQ) styles */
details>summary {
    list-style: none;
    cursor: pointer;
}

details>summary::-webkit-details-marker {
    display: none;
}

details[open] summary .icon-plus {
    display: none;
}

details:not([open]) summary .icon-minus {
    display: none;
}

details[open] summary {
    color: #ff007f;
    /* brand-accent */
}

/* Selection highlight */
::selection {
    background: #ff007f;
    color: #0a0a0a;
}

/* Mobile left drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 50;
}

.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 80vw;
    max-width: 340px;
    transform: translateX(-100%);
    background: rgba(17, 17, 17, 0.95);
    border-right: 1px solid rgba(255, 0, 127, 0.4);
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.25);
    transition: transform .35s ease;
    display: flex;
    flex-direction: column;
    z-index: 60;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #1f1f1f;
}

.drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

.drawer-footer {
    border-top: 1px solid #1f1f1f;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: center;
}

.uae-flag {
    width: 44px;
    height: 30px;
    border-radius: 8px;
    box-shadow: 0 0 14px rgba(255, 0, 127, 0.35);
}

/* Hover glow helper */
.button-glow:hover {
    box-shadow: 0 0 20px rgba(255, 0, 127, .65), 0 0 40px rgba(255, 0, 127, .25);
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Additional Responsive Improvements */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .marquee-track {
        gap: 2rem;
    }

    .marquee-track span {
        font-size: 1.5rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .marquee-track span {
        font-size: 2rem;
    }
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {

    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* Support Banner Styles */
.support-banner {
    background: #fef3cd;
    border: 1px solid #f0d49d;
    border-radius: 8px;
    margin: 12px;
    max-width: 1200px;
    padding: 0;
}

@media (min-width: 768px) {
    .support-banner {
        margin: 16px auto;
    }
}

.support-banner-inner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
}

@media (min-width: 640px) {
    .support-banner-inner {
        gap: 12px;
        padding: 14px 16px;
    }
}

@media (min-width: 768px) {
    .support-banner-inner {
        padding: 16px 20px;
    }
}

.support-icon {
    flex-shrink: 0;
    color: #856404;
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.support-icon svg {
    width: 20px;
    height: 20px;
}

.support-text {
    flex: 1;
    color: #856404;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

@media (min-width: 640px) {
    .support-text {
        font-size: 14px;
        line-height: 1.6;
    }
}

.support-text a {
    color: #856404;
    font-weight: 600;
    text-decoration: underline;
}

.support-text a:hover {
    color: #533f03;
}

.support-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #856404;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.support-close:hover {
    background-color: rgba(133, 100, 4, 0.1);
}

.support-close svg {
    width: 16px;
    height: 16px;
}

/* Coinbase Header Styles */
.cb-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
}

.cb-header .inner {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
    height: 56px;
}

@media (min-width: 640px) {
    .cb-header .inner {
        padding: 0 16px;
        height: 60px;
    }
}

@media (min-width: 768px) {
    .cb-header .inner {
        padding: 0 24px;
        height: 64px;
    }
}

.cb-header .brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 32px;
}

.cb-header .brand svg {
    height: 24px;
    width: auto;
}

@media (min-width: 640px) {
    .cb-header .brand svg {
        height: 28px;
    }
}

@media (min-width: 768px) {
    .cb-header .brand svg {
        height: 32px;
    }
}

.cb-header .nav {
    display: none;
    gap: 32px;
}

.cb-header .nav a {
    color: #111827;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.cb-header .nav a:hover {
    color: #0052FF;
}

.cb-header .nav a[aria-current="page"] {
    color: #0052FF;
}

.cb-header .spacer {
    flex: 1;
}

.cb-header .actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cb-header .action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #111827;
}

.cb-header .action:hover {
    background-color: #f3f4f6;
}

.cb-header .action svg {
    width: 20px;
    height: 20px;
}

.cb-header .action.icon-bg {
    background-color: #f3f4f6;
}

.cb-header .action.icon-bg:hover {
    background-color: #e5e7eb;
}

.cb-header .btn {
    background: #0052FF;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    height: 40px;
}

.cb-header .btn:hover {
    background: #0047e0;
}

.cb-header .btn img {
    filter: brightness(0) invert(1);
}

.cb-header .hamburger {
    display: flex;
}

.cb-header .only-mobile {
    display: flex;
}

.cb-header .only-desktop {
    display: none;
}

/* Desktop styles */
@media (min-width: 768px) {
    .cb-header .nav {
        display: flex;
    }

    .cb-header .only-desktop {
        display: flex;
    }

    .cb-header .only-mobile {
        display: none;
    }
}

/* Marquee (Clients) */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee {
    position: relative;
    overflow: hidden;
}

.marquee::before,
.marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 1;
}

.marquee::before {
    left: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0) 100%);
}

.marquee::after {
    right: 0;
    background: linear-gradient(270deg, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0) 100%);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: marquee 28s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.bannerbg {
    background: #fff;
    padding: 2px;
}

/* Support Section Styles */
.support {
    background: #f5f5f5;
    padding: 24px 0;
}

@media (min-width: 768px) {
    .support {
        padding: 40px 0;
    }
}

.support .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .support .container {
        padding: 0 24px;
    }
}

#support-title {
    font-size: 24px;
    font-weight: 400;
    color: #111827;
    margin: 0 0 32px 0;
    padding: 0;
    line-height: 1.2;
}

@media (min-width: 640px) {
    #support-title {
        font-size: 28px;
    }
}

@media (min-width: 768px) {
    #support-title {
        font-size: 32px;
        margin: 0 0 40px 0;
    }
}

#support-title span a {
    color: #0052FF;
    text-decoration: none;
    font-weight: 500;
}

#support-title span a:hover {
    text-decoration: underline;
}

/* Content Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .content-grid {
        gap: 32px;
    }
}

/* Info Card */
.info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 640px) {
    .info-card {
        flex-direction: row;
        padding: 20px;
        gap: 16px;
    }
}

.i-badge {
    flex-shrink: 0;
}

.i-badge svg {
    width: 24px;
    height: 24px;
}

.info-card .title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.info-card a {
    color: #0052FF;
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

/* Product Section */
.product-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

@media (min-width: 640px) {
    .product-section {
        padding: 20px;
    }
}

@media (min-width: 768px) {
    .product-section {
        padding: 24px;
    }
}

.product-header {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .product-header {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

.req {
    color: #dc2626;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

@media (min-width: 640px) {
    .product-card {
        padding: 14px;
    }
}

@media (min-width: 768px) {
    .product-card {
        padding: 16px;
    }
}

.product-card:hover {
    border-color: #0052FF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-card input[type="radio"] {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.contact-us__image-container {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
}

.contact-us__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card strong {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    display: block;
}

.product-card small {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* Sidebar */
.aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.callout {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

@media (min-width: 768px) {
    .callout {
        padding: 24px;
    }
}

.callout .art {
    margin-bottom: 16px;
}

.callout h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.cards-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.cards-text a {
    color: #0052FF;
    text-decoration: none;
}

.cards-text a:hover {
    text-decoration: underline;
}

/* Responsive Layout */
@media (min-width: 1024px) {
    .support .container {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 32px;
        align-items: start;
    }

    #support-title {
        grid-column: 1 / -1;
    }

    .content-grid {
        grid-column: 1;
    }

    .aside {
        grid-column: 2;
    }
}

/* FAQ Section Styles */
#coinbase-faq {
    background: #f5f5f5;
    padding: 40px 0;
}

@media (min-width: 768px) {
    #coinbase-faq {
        padding: 60px 0;
    }
}

@media (min-width: 1024px) {
    #coinbase-faq {
        padding: 80px 0;
    }
}

#coinbase-faq .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    #coinbase-faq .container {
        padding: 0 24px;
    }
}

#coinbase-faq h2 {
    font-size: 24px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    #coinbase-faq h2 {
        font-size: 28px;
    }
}

@media (min-width: 768px) {
    #coinbase-faq h2 {
        font-size: 36px;
        margin-bottom: 32px;
    }
}

#coinbase-faq h2 img {
    height: 28px;
    vertical-align: middle;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    transition: background 0.2s;
}

@media (min-width: 640px) {
    .faq-question {
        padding: 18px 20px;
    }
}

@media (min-width: 768px) {
    .faq-question {
        padding: 20px 24px;
        font-size: 16px;
    }
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-question span {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.faq-question span img {
    height: 16px;
    vertical-align: middle;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .faq-answer {
        padding: 0 24px;
    }
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 16px 16px 16px;
}

@media (min-width: 768px) {
    .faq-item.active .faq-answer {
        padding: 0 24px 20px 24px;
    }
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

.faq-answer a {
    color: #0052FF;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Floating Phone Button */
.floating-phone {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #28a745;
    color: #fff;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-phone:hover {
    background: #218838;
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.5);
    transform: translateY(-2px);
}

.floating-phone svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.floating-phone-number {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .floating-phone-number {
        display: none;
    }

    .floating-phone {
        padding: 14px;
        border-radius: 50%;
        bottom: 20px;
        right: 20px;
    }

    .floating-phone svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .floating-phone {
        padding: 12px;
        bottom: 16px;
        right: 16px;
    }

    .floating-phone svg {
        width: 18px;
        height: 18px;
    }
}