:root {
    --bg-color: #050508;
    --card-bg-color: rgba(22, 22, 28, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-accent: #BE33E8;
    --text-color: #E0E0E0;
    --text-muted-color: #888899;
    --font-family: 'Inter', sans-serif;
    --glow-shadow-static: 0 0 8px var(--primary-accent), 0 0 12px var(--primary-accent);
    --glow-shadow-pulse: 0 0 12px var(--primary-accent), 0 0 24px var(--primary-accent), 0 0 36px var(--primary-accent);
    --mouseX: 0px;
    --mouseY: 0px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: var(--mouseX) var(--mouseY);
    transition: background-position 0.2s ease-out;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-color);
    margin-bottom: 60px;
    text-align: center;
}

.section-title span {
    color: var(--primary-accent);
    text-shadow: 0 0 8px rgba(190, 51, 232, 0.7);
}

.btn,
.interact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 90px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary,
.interact-button {
    background: linear-gradient(45deg, #a329cf, #be33e8);
    color: #fff;
    box-shadow: 0 0 12px rgba(190, 51, 232, 0.4);
}

.btn-primary:hover,
.interact-button:hover {
    box-shadow: var(--glow-shadow-static);
    transform: translateY(-2px);
}

.btn-primary:active,
.interact-button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 0 8px rgba(190, 51, 232, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-muted-color);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 12px 24px;
}

.btn-secondary:hover {
    color: var(--primary-accent);
    border-color: var(--primary-accent);
    box-shadow: 0 0 8px rgba(190, 51, 232, 0.5);
    transform: translateY(-2px);
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Page Load Animation */

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

.animate-on-load {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: var(--delay, 0s);
}


/* Header */

.header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-color);
}

.logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    color: var(--text-muted-color);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-accent);
    text-shadow: 0 0 4px rgba(190, 51, 232, 0.7);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}


/* Price Ticker */

.price-ticker {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: flex;
    animation: ticker-scroll 80s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-right: 40px;
    font-size: 14px;
    color: var(--text-muted-color);
}

.ticker-item span {
    font-weight: 600;
    color: var(--text-color);
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}


/* Hero Section */

.hero {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 650px 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-color);
    line-height: 1.2;
    letter-spacing: 1px;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-muted-color);
    max-width: 450px;
    line-height: 1.6;
}


/* Exchange Widget */

.exchange-widget {
    background: var(--card-bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.widget-header {
    margin-bottom: 24px;
}

.widget-header h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.copy-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-color);
    padding: 8px 12px;
    border-radius: 8px;
    width: 100%;
    border: 1px solid var(--glass-border);
}

.copy-link span {
    color: var(--text-muted-color);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exchange-fields-wrapper {
    position: relative;
    perspective: 1000px;
    /* Add perspective for 3D effect */
}

.exchange-box {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    z-index: 1;
}

.exchange-box.receive-box {
    margin-top: 16px;
}

.exchange-fields-wrapper.is-swapping .exchange-box {
    transform: scale(0.8) rotateX(90deg);
    opacity: 0;
    pointer-events: none;
}

.exchange-box label {
    font-size: 14px;
    color: var(--text-muted-color);
    margin-bottom: 12px;
    display: block;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background-color 0.2s;
    border-radius: 8px;
}

.currency-selector:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.currency-selector img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.currency-selector span {
    flex-grow: 1;
    font-weight: 500;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.currency-selector svg {
    flex-shrink: 0;
}

.exchange-box .input-group>input {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0;
    padding: 16px 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    width: 100%;
    text-align: right;
    position: relative;
}

.exchange-box .input-group>input:focus {
    outline: none;
}


/* NEW: Animated focus border */

.exchange-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    /* Match parent */
    border: 1px solid transparent;
    pointer-events: none;
    transition: clip-path 0.4s ease-out;
    /* Start as a 0-width line in the middle */
    clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%);
}

.exchange-box.is-focused::before {
    border-color: var(--primary-accent);
    box-shadow: var(--glow-shadow-static);
    /* Expand to full rect */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition-duration: 0.3s;
}

@keyframes pulse-neon {
    50% {
        box-shadow: var(--glow-shadow-pulse);
    }
}

.exchange-box.is-focused.has-value::before {
    animation: pulse-neon 1.5s infinite;
}

.exchange-box input::placeholder {
    color: var(--text-muted-color);
    font-weight: 500;
}

.swap-icon-container {
    display: none;
    /* Hide swap button as per new logic */
}

.widget-footer {
    margin-top: 24px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--glass-border);
}

.footer-button-group {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-button-group .btn {
    font-size: 18px;
    width: 100%;
}

.rate {
    font-size: 14px;
    color: var(--text-muted-color);
    text-align: center;
    flex-grow: 1;
    padding: 0 10px;
    font-weight: 500;
    transition: opacity 0.2s ease-in-out;
}

.rate.updating {
    opacity: 0;
}

#p2p-order-btn {
    width: 100%;
    margin-top: 16px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* Important to contain the pseudo-elements */
    color: var(--primary-accent);
    background-color: transparent;
    border: 2px solid transparent;
    /* The trick for gradient border */
    background-clip: padding-box;
    transition: color 0.4s ease, text-shadow 0.4s ease;
    justify-content: center;
    font-size: 18px;
    /* Slightly larger for emphasis */
    text-shadow: 0 0 8px rgba(190, 51, 232, 0.6);
}


/* This creates the rotating gradient for the border */

#p2p-order-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200%;
    /* Larger to create a softer gradient edge */
    height: 1200%;
    background: conic-gradient( from 180deg at 50% 50%, transparent 0%, var(--primary-accent) 50%, transparent 100%);
    z-index: -2;
    animation: rotate 4s linear infinite;
}


/* This creates the inner background, covering the gradient except at the border */

#p2p-order-btn::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-color: var(--bg-color);
    /* Match main page background for a "cutout" effect */
    border-radius: 10px;
    /* border-radius - border-width */
    z-index: -1;
    transition: background-color 0.4s ease;
}

#p2p-order-btn:hover {
    color: #fff;
    text-shadow: var(--glow-shadow-static);
}

#p2p-order-btn:hover::after {
    background-color: rgba(190, 51, 232, 0.1);
    /* A subtle purple glow on hover */
}

@keyframes rotate {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes flash-glow {
    from {
        box-shadow: 0 0 0px rgba(190, 51, 232, 0);
    }
    50% {
        box-shadow: 0 0 15px rgba(190, 51, 232, 0.5);
    }
    to {
        box-shadow: 0 0 0px rgba(190, 51, 232, 0);
    }
}

.exchange-box.is-flashing {
    animation: flash-glow 0.6s ease-out;
}


/* Additional Fields */

.additional-fields {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, margin-top 0.5s ease-in-out;
    margin-top: 0;
}

.additional-fields.visible {
    max-height: 500px;
    opacity: 1;
    margin-top: 24px;
}

.additional-field-group {
    margin-bottom: 20px;
}

.additional-field-group:last-of-type {
    margin-bottom: 0;
}

.additional-field-group label {
    display: block;
    font-size: 14px;
    color: var(--text-muted-color);
    margin-bottom: 8px;
}

.additional-field-group input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-color);
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.additional-field-group input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 8px rgba(190, 51, 232, 0.5);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted-color);
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background-color 0.2s, border-color 0.2s;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
}

.checkbox-group input[type="checkbox"]:checked::before {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-group label {
    cursor: pointer;
    line-height: 1.5;
    transition: color 0.3s, text-shadow 0.3s;
}


/* Currency Modal */

.currency-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.modal-content {
    background: var(--card-bg-color);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    font-size: 20px;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-muted-color);
    transition: color 0.2s, transform 0.2s;
}

.close-modal-btn:hover {
    color: var(--text-color);
    transform: scale(1.1);
}

.currency-search {
    width: calc(100% - 40px);
    margin: 20px;
    padding: 12px 16px;
    background-color: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 16px;
}

.currency-search:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 8px rgba(190, 51, 232, 0.5);
}

.currency-list {
    overflow-y: auto;
    flex-grow: 1;
    padding: 0 10px 20px 20px;
}

.currency-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.currency-list li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.currency-list li img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.currency-list li div {
    display: flex;
    flex-direction: column;
}

.currency-list li strong {
    font-size: 16px;
}

.currency-list li span {
    font-size: 14px;
    color: var(--text-muted-color);
}


/* Information Section */

.information {
    padding: 100px 0;
}

.information-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
}

.info-column h2.section-title {
    text-align: left;
}

.info-column p,
.info-column li {
    color: var(--text-muted-color);
    line-height: 1.7;
    margin-bottom: 16px;
}

.info-column ul {
    padding-left: 20px;
    list-style: none;
}

.info-column ul li {
    position: relative;
}

.info-column ul li::before {
    content: '⬢';
    position: absolute;
    left: -25px;
    color: var(--primary-accent);
    font-size: 12px;
    top: 5px;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


/* Carousel Styles */

.carousel-wrapper {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.carousel-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.carousel-wrapper:hover .carousel-track {
    animation-play-state: paused;
}


/* Reviews Section */

.reviews {
    padding: 100px 0;
}

.reviews .carousel-track {
    animation: scroll 160s linear infinite;
}

.reviews-grid {
    display: flex;
    gap: 30px;
}

.review-card {
    background: var(--card-bg-color);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 350px;
    flex-shrink: 0;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(190, 51, 232, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.review-header h4 {
    font-size: 18px;
}

.review-header span {
    font-size: 14px;
    color: var(--text-muted-color);
}

.review-card p {
    color: var(--text-muted-color);
    line-height: 1.6;
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}


/* Partners Section */

.partners {
    padding: 100px 0;
}

.partners .carousel-track {
    animation: scroll 120s linear infinite;
}

.partners-logos {
    display: flex;
    align-items: center;
    gap: 80px;
}

.partners-logos img {
    max-height: 40px;
    filter: grayscale(1) brightness(1.5);
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.partners-logos img:hover {
    filter: none;
    opacity: 1;
}


/* Footer */

.footer {
    padding: 40px 0;
    color: var(--text-muted-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: start;
    gap: 40px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
}

.footer-contact p {
    font-size: 14px;
    line-height: 1.8;
}


/* Floating Buttons */

.to-top-btn,
.chat-btn {
    position: fixed;
    right: 20px;
    background: var(--card-bg-color);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    border-radius: 30px;
    z-index: 50;
    transition: all 0.3s ease;
}

.to-top-btn {
    bottom: 100px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-btn {
    bottom: 20px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.to-top-btn:hover,
.chat-btn:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
    transform: scale(1.05);
}

.to-top-btn svg {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 4px;
}

.chat-icon {
    position: relative;
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background-color: #ff4d4d;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* AML Modal */

.aml-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.aml-modal .modal-content {
    text-align: center;
    padding: 40px;
    max-width: 480px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aml-modal-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    color: var(--primary-accent);
}

.aml-modal h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-color);
}

.aml-modal p {
    color: var(--text-muted-color);
    line-height: 1.6;
    margin-bottom: 32px;
}

.aml-modal .btn-primary,
.aml-modal .interact-button {
    width: 100%;
}


/* P2P Modal */

.p2p-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    /* Higher than currency modal */
}

.p2p-modal .modal-content {
    padding: 30px 40px;
    max-width: 480px;
    height: auto;
}

.p2p-form-content {
    width: 100%;
    margin-top: 20px;
}

.p2p-form-content .additional-field-group {
    text-align: left;
}

.p2p-form-content .btn-primary {
    width: 100%;
    margin-top: 20px;
}


/* Input Validation */

.additional-field-group input.is-invalid {
    border-color: #ff4d4d;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.5);
}

.checkbox-group label.is-invalid {
    color: #ff4d4d;
    text-shadow: 0 0 5px rgba(255, 77, 77, 0.7);
}

@keyframes shake-horizontal {
    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }
    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.is-shaking {
    animation: shake-horizontal 0.82s cubic-bezier(.36, .07, .19, .97) both;
}


/* Responsive */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text {
        order: -1;
        /* Move text above widget on smaller screens */
    }
    .hero-text p {
        margin: 0 auto;
    }
    .exchange-widget {
        max-width: 650px;
        margin: 40px auto 0;
    }
    .main-nav {
        display: none;
        /* Simple hide for mobile, would need JS for hamburger */
    }
    .information-container {
        grid-template-columns: 1fr;
    }
    .info-column h2.section-title {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
    .chat-btn span,
    .to-top-btn span {
        display: none;
    }
    .chat-btn,
    .to-top-btn {
        width: 50px;
        height: 50px;
        justify-content: center;
        padding: 0;
    }
    .input-group {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .exchange-box input {
        text-align: left;
    }
}


/* Status Page Styles */

#status-page .hero {
    padding-top: 100px;
    padding-bottom: 100px;
}

.status-widget {
    background: var(--card-bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.status-field-group {
    margin-bottom: 24px;
    text-align: left;
}

.status-field-group label {
    display: block;
    font-size: 14px;
    color: var(--text-muted-color);
    margin-bottom: 8px;
}

.status-field-group input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-color);
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.status-field-group input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 8px rgba(190, 51, 232, 0.5);
}

.status-widget .btn-primary {
    width: 100%;
    margin-top: 20px;
}

.status-result {
    color: #ff4d4d;
    font-weight: 500;
    margin-top: 20px;
    min-height: 1.5em;
    /* Prevent layout shift */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.status-result.visible {
    opacity: 1;
}


/* FAQ Page Styles */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion .faq-item {
    background: var(--card-bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion .faq-item:hover {
    border-color: rgba(190, 51, 232, 0.5);
    box-shadow: 0 0 15px rgba(190, 51, 232, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    color: var(--text-color);
}

.faq-question svg {
    flex-shrink: 0;
    margin-left: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    color: var(--text-muted-color);
    line-height: 1.7;
}

.faq-answer-content {
    padding: 0 24px 24px;
}

.faq-answer a {
    color: var(--primary-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    display: block;
    margin-bottom: 12px;
    transition: text-shadow 0.3s ease;
}

.faq-answer a:hover {
    text-shadow: 0 0 8px rgba(190, 51, 232, 0.7);
}

.faq-item.active .faq-question svg {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}


/* Reviews Page Styles */

.reviews-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.reviews-page-grid .review-card {
    width: 100%;
    /* Override fixed width from carousel */
}

/* AML & Step Modals */
.aml-modal .modal-content .loader {
    width: 60px;
    height: 60px;
    border: 5px solid var(--glass-border);
    border-top-color: var(--primary-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

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

.aml-result-visual {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aml-result-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 3px solid var(--primary-accent);
    box-shadow: var(--glow-shadow-static);
    animation: pulse-neon 2s infinite;
}

.aml-result-score {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: var(--glow-shadow-static);
}

.aml-result-status-green {
    color: #4CAF50;
    font-weight: bold;
}

/* Troubleshooting Styles */
.troubleshoot-section {
    margin-top: 24px;
    width: 100%;
    text-align: center;
}

.troubleshoot-text {
    font-size: 14px;
    color: var(--text-muted-color);
    line-height: 1.5;
    margin-bottom: 0; /* Override default p margin in modal */
}

#troubleshoot-link {
    color: var(--primary-accent);
    text-decoration: underline;
    cursor: pointer;
    transition: text-shadow 0.3s;
}

#troubleshoot-link:hover {
    text-shadow: 0 0 8px rgba(190, 51, 232, 0.7);
}

/* Custom AML Status Modal Styles */
:root {
    --warning-accent: #f0ad4e;
    --error-accent: #ff4d4d;
    --glow-shadow-warning: 0 0 8px var(--warning-accent), 0 0 12px var(--warning-accent);
    --glow-shadow-error: 0 0 8px var(--error-accent), 0 0 12px var(--error-accent);
    --glow-shadow-pulse-warning: 0 0 12px var(--warning-accent), 0 0 24px var(--warning-accent), 0 0 36px var(--warning-accent);
    --glow-shadow-pulse-error: 0 0 12px var(--error-accent), 0 0 24px var(--error-accent), 0 0 36px var(--error-accent);
}

.aml-modal.modal--warning .modal-content,
.aml-modal.modal--error .modal-content {
    animation: fadeInModal 0.5s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.aml-modal.modal--warning .modal-content::before,
.aml-modal.modal--error .modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px; /* Match parent */
    pointer-events: none;
    z-index: 2;
}

/* Warning State */
.aml-modal.modal--warning .modal-content::before {
    border: 2px solid var(--warning-accent);
    box-shadow: var(--glow-shadow-warning);
    animation: pulse-warning 2.5s infinite;
}
.aml-modal.modal--warning .aml-modal-icon {
    color: var(--warning-accent);
    animation: pop-in-icon 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.aml-modal.modal--warning .interact-button {
    background: linear-gradient(45deg, #d48e2a, #f0ad4e);
    box-shadow: 0 0 12px rgba(240, 173, 78, 0.4);
}
.aml-modal.modal--warning .interact-button:hover {
    box-shadow: var(--glow-shadow-warning);
}

/* Error State */
.aml-modal.modal--error .modal-content::before {
    border: 2px solid var(--error-accent);
    box-shadow: var(--glow-shadow-error);
    animation: pulse-error 2s infinite;
}
.aml-modal.modal--error .aml-modal-icon {
    color: var(--error-accent);
    animation: shake-icon 0.8s cubic-bezier(.36,.07,.19,.97) both, pop-in-icon 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.aml-modal.modal--error .interact-button {
    background: linear-gradient(45deg, #c9302c, #ff4d4d);
    box-shadow: 0 0 12px rgba(255, 77, 77, 0.4);
}
.aml-modal.modal--error .interact-button:hover {
    box-shadow: var(--glow-shadow-error);
}

@keyframes pulse-warning {
    50% { box-shadow: var(--glow-shadow-pulse-warning); }
}

@keyframes pulse-error {
    50% { box-shadow: var(--glow-shadow-pulse-error); }
}

@keyframes shake-icon {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

@keyframes pop-in-icon {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}