/* Explain: Styles for UI components like buttons, cards, panels, animations, and visual elements. - */
/* ABUZA Brand & Header */
.tech-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    background: rgba(3, 6, 10, 0.82);
    backdrop-filter: blur(18px);
    transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.tech-header.is-scrolled {
    background: rgba(3, 6, 10, 0.94);
    border-color: rgba(0, 229, 255, 0.18);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.abuza-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    color: var(--text-color);
}

.abuza-logo-mark,
.brand-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border: 1px solid rgba(0, 229, 255, 0.24);
    border-radius: 0.9rem;
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 229, 255, 0.28), transparent 35%),
        linear-gradient(145deg, rgba(0, 229, 255, 0.12), rgba(139, 92, 246, 0.08));
    box-shadow: inset 0 0 22px rgba(0, 229, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.24);
    color: var(--primary-color);
}

.abuza-logo-word {
    font-family: var(--font-heading);
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.nav-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 700;
    transition: color 220ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--primary-color);
}

.nav-more-panel {
    position: absolute;
    right: 0;
    top: calc(100% - 0.25rem);
    width: 15rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: rgba(5, 10, 17, 0.98);
    padding: 0.65rem;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18px);
}

.nav-more-panel a {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 0.65rem;
    border-radius: 0.75rem;
    padding: 0.55rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 700;
    transition: background 220ms ease, color 220ms ease;
}

.nav-more-panel a:hover,
.nav-more-panel a:focus-visible {
    background: rgba(0, 229, 255, 0.08);
    color: var(--primary-color);
}

.ticker-tape {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 229, 255, 0.12);
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.08), rgba(139, 92, 246, 0.08), rgba(57, 255, 136, 0.05));
}

.ticker-track {
    display: flex;
    width: max-content;
    min-width: 200%;
    animation: ticker-scroll 32s linear infinite;
}

.ticker-item {
    display: inline-flex;
    min-height: 2.15rem;
    align-items: center;
    gap: 0.55rem;
    padding-inline: 1.15rem;
    border-right: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    white-space: nowrap;
}

.ticker-item strong {
    color: var(--text-color);
}

.ticker-item span {
    color: var(--primary-color);
}

.ticker-item em {
    font-style: normal;
    font-weight: 800;
}

.ticker-item em.positive {
    color: var(--success-color);
}

.ticker-item em.negative {
    color: var(--danger-color);
}

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

/* Glass Cards & Panels */
.glass-panel,
.tech-card,
.app-card {
    border: 1px solid var(--border-color);
    background:
        linear-gradient(145deg, rgba(17, 24, 34, 0.74), rgba(7, 12, 20, 0.92)),
        radial-gradient(circle at top left, rgba(0, 229, 255, 0.05), transparent 40%);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(14px);
    transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.tech-card:hover,
.app-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.28);
    box-shadow: var(--shadow-blue);
}

.cad-corner {
    position: relative;
    overflow: hidden;
}

.cad-corner::before,
.cad-corner::after {
    content: "";
    position: absolute;
    width: 3.25rem;
    height: 3.25rem;
    pointer-events: none;
    opacity: 0.55;
}

.cad-corner::before {
    top: 0;
    left: 0;
    border-top: 1px solid rgba(0, 229, 255, 0.45);
    border-left: 1px solid rgba(0, 229, 255, 0.45);
    border-top-left-radius: inherit;
}

.cad-corner::after {
    right: 0;
    bottom: 0;
    border-right: 1px solid rgba(139, 92, 246, 0.45);
    border-bottom: 1px solid rgba(139, 92, 246, 0.45);
    border-bottom-right-radius: inherit;
}

/* Buttons */
.tech-btn {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: var(--radius-md);
    padding: 0.78rem 1.35rem;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease, box-shadow 220ms ease;
    overflow: hidden;
}

.tech-btn.primary {
    border: 1px solid rgba(0, 229, 255, 0.36);
    background: linear-gradient(135deg, var(--primary-color), #7dd3fc);
    color: #001116;
    box-shadow: 0 14px 34px rgba(0, 229, 255, 0.16);
}

.tech-btn.primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    box-shadow: 0 18px 48px rgba(0, 229, 255, 0.24);
    transform: translateY(-2px);
}

.tech-btn.secondary {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-color);
}

.tech-btn.secondary:hover {
    border-color: rgba(0, 229, 255, 0.34);
    color: var(--primary-color);
    background: rgba(0, 229, 255, 0.06);
    transform: translateY(-2px);
}

.tech-btn.ghost {
    border: 1px solid rgba(139, 92, 246, 0.24);
    background: rgba(139, 92, 246, 0.08);
    color: #c4b5fd;
}

.tech-btn:active {
    transform: translateY(1px) scale(0.99);
}

.tech-btn[disabled],
.tech-btn.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.tech-btn.is-loading {
    pointer-events: none;
}

.tech-btn.is-loading::after {
    content: "";
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 999px;
    animation: spin 700ms linear infinite;
}

/* App screens */
.app-shell {
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 18% 10%, rgba(0, 229, 255, 0.12), transparent 32%),
        radial-gradient(circle at 86% 18%, rgba(139, 92, 246, 0.12), transparent 34%),
        rgba(7, 12, 20, 0.78);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
    overflow: hidden;
}

.app-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    padding: 0.4rem 0.7rem;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.data-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 229, 255, 0.06);
    padding: 0.45rem 0.75rem;
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.form-status {
    min-height: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-status.success {
    color: var(--success-color);
}

.form-status.error {
    color: var(--danger-color);
}

.state-box {
    border: 1px dashed rgba(148, 163, 184, 0.24);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.025);
    padding: 1.25rem;
}

/* Hero visual */
.hero-orbit {
    position: relative;
    aspect-ratio: 1;
    width: min(100%, 32rem);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    background:
        radial-gradient(circle at center, rgba(0, 229, 255, 0.12), transparent 28%),
        radial-gradient(circle at 35% 30%, rgba(139, 92, 246, 0.14), transparent 24%),
        rgba(7, 12, 20, 0.55);
    box-shadow: inset 0 0 80px rgba(0, 229, 255, 0.035), 0 30px 90px rgba(0, 0, 0, 0.35);
}

.hero-orbit::before,
.hero-orbit::after {
    content: "";
    position: absolute;
    inset: 7%;
    border: 1px dashed rgba(0, 229, 255, 0.18);
    border-radius: inherit;
    animation: spin 46s linear infinite;
}

.hero-orbit::after {
    inset: 22%;
    border-style: solid;
    border-color: rgba(139, 92, 246, 0.2);
    animation-duration: 34s;
    animation-direction: reverse;
}

.hero-node {
    position: absolute;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: var(--primary-color);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.56);
    animation: node-float 5.8s ease-in-out infinite;
}

.hero-particle {
    position: absolute;
    width: 0.24rem;
    height: 0.24rem;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.68);
    animation: particle-drift 7s ease-in-out infinite;
}

.abuza-coin {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 2;
    display: flex;
    width: 11rem;
    height: 11rem;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 229, 255, 0.58);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(145deg, rgba(3, 6, 10, 0.98), rgba(10, 15, 22, 0.98));
    box-shadow: 0 0 46px rgba(0, 229, 255, 0.2), inset 0 0 32px rgba(0, 229, 255, 0.08);
    transform: translate(-50%, -50%);
    animation: coin-breathe 4.4s ease-in-out infinite;
}

/* Charts and diagrams */
.chart-placeholder {
    position: relative;
    min-height: 21rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1.35rem;
    background:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(0, 229, 255, 0.06), rgba(139, 92, 246, 0.025));
    background-size: 44px 44px, 44px 44px, 100% 100%;
}

.chart-placeholder::after {
    content: "";
    position: absolute;
    inset: 20% 5% 18%;
    border-bottom: 2px solid rgba(0, 229, 255, 0.48);
    clip-path: polygon(0 65%, 14% 56%, 25% 64%, 40% 40%, 52% 48%, 66% 28%, 78% 38%, 91% 20%, 100% 26%, 100% 100%, 0 100%);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.18), rgba(0, 229, 255, 0));
    opacity: 0.75;
}

.growth-terminal {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 15% 8%, rgba(57, 255, 136, 0.12), transparent 30%),
        radial-gradient(circle at 85% 18%, rgba(139, 92, 246, 0.16), transparent 32%),
        linear-gradient(145deg, rgba(17, 24, 34, 0.88), rgba(3, 6, 10, 0.96));
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.46), 0 0 70px rgba(0, 229, 255, 0.08);
    backdrop-filter: blur(18px);
}

.growth-terminal::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(57, 255, 136, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.growth-chart-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at 70% 15%, rgba(57, 255, 136, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.growth-chart-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: translateX(-120%);
    animation: chart-scan 5.5s ease-in-out infinite;
}

.growth-chart-svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    min-height: 17rem;
}

.growth-gridline {
    fill: none;
    stroke: rgba(148, 163, 184, 0.12);
    stroke-width: 1;
}

.growth-fill {
    opacity: 0.9;
}

.growth-path {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: draw-growth 2.8s ease forwards;
    filter: drop-shadow(0 0 10px rgba(57, 255, 136, 0.35));
}

.growth-point circle {
    fill: var(--surface-color);
    stroke: var(--accent-color);
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(57, 255, 136, 0.45));
}

.growth-point text {
    fill: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-anchor: middle;
}

@keyframes draw-growth {
    to { stroke-dashoffset: 0; }
}

@keyframes chart-scan {
    0%, 58% { transform: translateX(-120%); opacity: 0; }
    68% { opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; }
}

.pie-chart {
    background: conic-gradient(
        var(--primary-color) 0% 16.6%,
        var(--secondary-color) 16.6% 33.2%,
        var(--warning-color) 33.2% 49.8%,
        var(--success-color) 49.8% 66.4%,
        #ec4899 66.4% 83%,
        #64748b 83% 100%
    );
    border-radius: 50%;
}

/* FAQ */
.faq-panel {
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 220ms ease, background 220ms ease;
}

.faq-panel[open] {
    border-color: rgba(0, 229, 255, 0.25);
    background: rgba(0, 229, 255, 0.045);
}

.faq-panel summary i {
    transition: transform 220ms ease;
}

.faq-panel[open] summary i {
    transform: rotate(45deg);
}

/* Status Indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.success {
    background: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
}

.status-dot.warning {
    background: var(--warning-color);
    box-shadow: 0 0 8px var(--warning-color);
}

.status-dot.danger {
    background: var(--danger-color);
    box-shadow: 0 0 8px var(--danger-color);
}

.status-dot.muted {
    background: var(--text-soft);
}

/* Typography Helpers */
.font-numeric {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

/* Mobile Menu */
.mobile-menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    background: rgba(3, 6, 10, 0.98);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    backdrop-filter: blur(18px);
}

.header-search {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.035);
    padding: 0 0.85rem;
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text-color);
    font-size: 0.875rem;
    outline: none;
}

.mobile-nav-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.9rem;
    padding: 0.2rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 800;
    transition: background 220ms ease, color 220ms ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    background: rgba(0, 229, 255, 0.08);
    color: var(--primary-color);
}

.market-strip {
    display: grid;
    gap: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    background: rgba(10, 15, 22, 0.62);
    padding: 0.9rem;
    backdrop-filter: blur(14px);
}

.market-stat-card {
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
    padding: 1rem;
}

.market-stat-card span {
    display: block;
    color: var(--text-soft);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-stat-card strong {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.86rem;
}

.market-tab {
    min-height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.025);
    padding: 0.55rem 0.9rem;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 800;
    transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.market-tab.is-active,
.market-tab:hover,
.market-tab:focus-visible {
    border-color: rgba(0, 229, 255, 0.34);
    background: rgba(0, 229, 255, 0.08);
    color: var(--primary-color);
}

.toast-stack {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    display: grid;
    gap: 0.75rem;
    width: min(100% - 2rem, 24rem);
    pointer-events: none;
}

.toast {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: rgba(5, 10, 17, 0.96);
    box-shadow: 0 18px 58px rgba(0, 0, 0, 0.42);
    color: var(--text-color);
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 220ms ease, transform 220ms ease;
    pointer-events: auto;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    border-color: rgba(16, 185, 129, 0.35);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.35);
}

.pie-chart.pending {
    filter: saturate(0.76);
}

.asset-icon {
    display: inline-flex;
    min-width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.asset-icon.featured {
    border-color: rgba(0, 229, 255, 0.36);
    background:
        radial-gradient(circle at 35% 20%, rgba(0, 229, 255, 0.2), transparent 40%),
        rgba(0, 229, 255, 0.08);
    color: var(--primary-color);
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.08);
}

.pro-control,
.order-type,
.percentage-chip,
.network-option {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.025);
    padding: 0.55rem 0.9rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.pro-control:hover,
.pro-control:focus-visible,
.pro-control.is-active,
.order-type:hover,
.order-type:focus-visible,
.order-type.is-active,
.percentage-chip:hover,
.percentage-chip:focus-visible,
.network-option:hover,
.network-option:focus-visible,
.network-option.is-active {
    border-color: rgba(0, 229, 255, 0.34);
    background: rgba(0, 229, 255, 0.08);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.orderbook-side {
    display: grid;
    gap: 1px;
}

.orderbook-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    min-height: 2.2rem;
    align-items: center;
    padding: 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    overflow: hidden;
}

.orderbook-row .depth-bar {
    position: absolute;
    inset: 0 0 0 auto;
    opacity: 0.16;
}

.orderbook-row.ask .depth-bar {
    background: var(--danger-color);
}

.orderbook-row.bid .depth-bar {
    background: var(--success-color);
}

.orderbook-row:hover {
    background: rgba(255, 255, 255, 0.035);
}

.spread-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    border-block: 1px solid var(--border-color);
    background: rgba(0, 229, 255, 0.055);
    padding: 0.75rem 1.25rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.spread-row strong {
    color: var(--primary-color);
    text-align: center;
}

.trade-stream-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    min-height: 2.35rem;
    align-items: center;
    padding: 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    transition: background 220ms ease, transform 220ms ease;
}

.trade-stream-row.buy {
    color: var(--success-color);
}

.trade-stream-row.sell {
    color: var(--danger-color);
}

.trade-stream-row.is-flashing {
    background: rgba(0, 229, 255, 0.08);
    transform: translateX(3px);
}

.wallet-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.wallet-modal.hidden {
    display: none;
}

.wallet-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 10, 0.78);
    backdrop-filter: blur(12px);
}

.wallet-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 46rem);
    max-height: min(90dvh, 48rem);
    overflow-y: auto;
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 1.75rem;
    background:
        radial-gradient(circle at top left, rgba(0, 229, 255, 0.12), transparent 32%),
        linear-gradient(145deg, rgba(17, 24, 34, 0.96), rgba(3, 6, 10, 0.98));
    box-shadow: 0 34px 120px rgba(0, 0, 0, 0.58);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.wallet-close {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-muted);
    transition: background 220ms ease, color 220ms ease;
}

.wallet-close:hover,
.wallet-close:focus-visible {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.wallet-provider {
    display: flex;
    min-height: 5rem;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.025);
    padding: 1rem;
    text-align: left;
    transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.wallet-provider:hover,
.wallet-provider:focus-visible {
    border-color: rgba(0, 229, 255, 0.34);
    background: rgba(0, 229, 255, 0.07);
    transform: translateY(-2px);
}

.wallet-provider i {
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(0, 229, 255, 0.08);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.wallet-provider strong,
.wallet-provider small {
    display: block;
}

.wallet-provider strong {
    color: var(--text-color);
    font-family: var(--font-heading);
}

.wallet-provider small {
    margin-top: 0.2rem;
    color: var(--text-muted);
}

.audit-badge,
.allocation-row,
.vesting-card {
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background:
        linear-gradient(145deg, rgba(17, 24, 34, 0.62), rgba(7, 12, 20, 0.88)),
        radial-gradient(circle at top left, rgba(0, 229, 255, 0.04), transparent 38%);
    padding: 1.25rem;
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.26);
}

.security-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.025);
    padding: 1rem;
}

.security-step > span {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background: rgba(0, 229, 255, 0.08);
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-weight: 800;
}

.security-step strong {
    display: block;
    color: var(--text-color);
    font-family: var(--font-heading);
}

.security-step p {
    margin-top: 0.25rem;
    font-size: 0.88rem;
    line-height: 1.55;
}

.tokenomics-orb {
    border-radius: 50%;
    background: conic-gradient(
        var(--primary-color) 0% 32%,
        var(--secondary-color) 32% 52%,
        var(--warning-color) 52% 70%,
        var(--success-color) 70% 82%,
        #ec4899 82% 92%,
        #64748b 92% 100%
    );
}

.allocation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.vesting-timeline {
    position: relative;
    display: grid;
    gap: 1rem;
}

.vesting-timeline::before {
    content: "";
    position: absolute;
    left: 0.6rem;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 1px;
    background: linear-gradient(var(--primary-color), transparent);
}

.vesting-row {
    position: relative;
    display: grid;
    grid-template-columns: 1.25rem 1fr;
    gap: 1rem;
}

.vesting-row.hidden {
    display: none;
}

.vesting-dot {
    position: relative;
    z-index: 1;
    margin-top: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border: 3px solid var(--background-color);
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.45);
}

.supply-chart {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1.35rem;
    background:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        rgba(255, 255, 255, 0.025);
    background-size: 42px 42px, 42px 42px, 100% 100%;
    padding: 1rem;
}

.supply-chart svg {
    display: block;
    width: 100%;
    height: auto;
}

.mini-sparkline {
    display: block;
    width: 5.5rem;
    height: 2rem;
    border-bottom: 1px solid rgba(0, 229, 255, 0.36);
    clip-path: polygon(0 68%, 18% 58%, 32% 66%, 48% 42%, 62% 52%, 78% 30%, 100% 38%, 100% 100%, 0 100%);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.18), rgba(0, 229, 255, 0.02));
    opacity: 0.68;
}

.market-favorite {
    display: inline-flex;
    min-width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-muted);
    transition: border-color 220ms ease, color 220ms ease, background 220ms ease, transform 220ms ease;
}

.market-favorite:hover,
.market-favorite:focus-visible,
.market-favorite.is-active {
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(245, 158, 11, 0.09);
    color: var(--warning-color);
    transform: translateY(-1px);
}

@media (min-width: 640px) {
    .market-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .market-strip {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(1deg); }
}

.animate-float {
    animation: float-slow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.78; transform: scale(1.045); }
}

.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes coin-breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.035); }
}

@keyframes node-float {
    0%, 100% { transform: translateY(0); opacity: 0.64; }
    50% { transform: translateY(-12px); opacity: 1; }
}

@keyframes particle-drift {
    0%, 100% { transform: translate(0, 0); opacity: 0.24; }
    50% { transform: translate(18px, -22px); opacity: 0.78; }
}

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

@media (max-width: 767px) {
    .glass-panel,
    .tech-card,
    .app-card {
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    }

    .mobile-menu-panel {
        position: fixed;
        top: 76px;
        max-height: calc(100dvh - 76px);
        overscroll-behavior: contain;
    }

    .mobile-menu-panel a:focus-visible,
    .mobile-menu-panel a:hover {
        background: rgba(0, 229, 255, 0.08);
        color: var(--primary-color);
    }

    .hero-orbit {
        width: min(100%, 24rem);
    }
}

@media (max-width: 640px) {
    .tech-btn {
        width: 100%;
    }

    .abuza-coin {
        width: 8.5rem;
        height: 8.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}