/* ─── AgentWallet Dashboard & Landing ─────────────────────────── */

:root {
    --agw-bg: #0a0a0f;
    --agw-card: #12121a;
    --agw-card-hover: #1a1a25;
    --agw-border: #2a2a3a;
    --agw-accent: #00d4aa;
    --agw-accent-hover: #00eabb;
    --agw-accent-glow: rgba(0, 212, 170, 0.15);
    --agw-text: #e8e8f0;
    --agw-muted: #8888aa;
    --agw-danger: #ff4466;
    --agw-success: #00d4aa;
    --agw-warning: #ffaa00;
    --agw-code-bg: #1a1a28;
    --agw-radius: 12px;
    --agw-radius-sm: 8px;
}

/* ─── Base ──────────────────────────────────────────────────── */

.agw-landing,
.agw-dashboard {
    color: var(--agw-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.agw-landing *,
.agw-dashboard * {
    box-sizing: border-box;
}

/* ─── Buttons ───────────────────────────────────────────────── */

.agw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--agw-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    line-height: 1.4;
    text-align: center;
    min-height: 44px;
}

.agw-btn-primary {
    background: var(--agw-accent);
    color: #000;
}

.agw-btn-primary:hover {
    background: var(--agw-accent-hover);
    color: #000;
    box-shadow: 0 4px 20px var(--agw-accent-glow);
}

.agw-btn-outline {
    background: transparent;
    color: var(--agw-accent);
    border: 1px solid var(--agw-accent);
}

.agw-btn-outline:hover {
    background: rgba(0, 212, 170, 0.1);
    color: var(--agw-accent);
}

.agw-btn-danger {
    background: transparent;
    color: var(--agw-danger);
    border: 1px solid var(--agw-danger);
}

.agw-btn-danger:hover {
    background: rgba(255, 68, 102, 0.1);
}

.agw-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    min-height: 36px;
}

.agw-btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    min-height: 48px;
}

.agw-btn-disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

/* ─── Form Elements ─────────────────────────────────────────── */

.agw-input,
.agw-select {
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    color: var(--agw-text);
    padding: 8px 12px;
    border-radius: var(--agw-radius-sm);
    font-size: 14px;
    min-height: 44px;
    transition: border-color 0.2s;
}

.agw-input:focus,
.agw-select:focus {
    outline: none;
    border-color: var(--agw-accent);
    box-shadow: 0 0 0 3px var(--agw-accent-glow);
}

.agw-input::placeholder {
    color: var(--agw-muted);
    opacity: 0.7;
}

/* ─── Hero (Landing) ────────────────────────────────────────── */

/* Dashboard page title */
.agw-page-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 24px;
    background: linear-gradient(135deg, var(--agw-accent), #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agw-hero {
    text-align: center;
    padding: 60px 0 40px;
}

.agw-hero-tagline {
    font-size: 20px;
    color: var(--agw-muted);
    margin: -8px 0 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.agw-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 16px;
    background: linear-gradient(135deg, var(--agw-accent), #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agw-hero-sub {
    font-size: 18px;
    color: var(--agw-muted);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.agw-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.agw-hero-note {
    font-size: 13px;
    color: var(--agw-muted);
}

/* ─── Sections ──────────────────────────────────────────────── */

.agw-section {
    padding: 40px 0;
}

.agw-section h2,
.agw-dashboard h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--agw-text);
}

.agw-section h2 {
    text-align: center;
}

/* ─── Feature Cards (Landing) ───────────────────────────────── */

.agw-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.agw-feature-card {
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius);
    padding: 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.agw-feature-card:hover {
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.agw-feature-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.agw-feature-card h3 {
    font-size: 16px;
    margin: 0 0 8px;
    color: var(--agw-text);
}

.agw-feature-card p {
    font-size: 14px;
    color: var(--agw-muted);
    line-height: 1.5;
    margin: 0;
}

.agw-feature-highlight {
    border-color: var(--agw-accent);
    background: linear-gradient(135deg, var(--agw-card), rgba(0, 212, 170, 0.04));
}

/* Center the 5th card if it's alone on its row */
/* Feature grid: 6 cards = clean 3x2 on desktop, stacks on mobile */

/* ─── Steps (Landing) ───────────────────────────────────────── */

.agw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.agw-step {
    text-align: center;
    padding: 20px;
}

.agw-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--agw-accent);
    color: #000;
    font-weight: 800;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.agw-step h3 {
    font-size: 16px;
    margin: 0 0 8px;
}

.agw-step p {
    font-size: 14px;
    color: var(--agw-muted);
    line-height: 1.5;
    margin: 0;
}

/* ─── Integration Grid (Landing) ───────────────────────────── */

.agw-integration-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.agw-integration-card {
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius);
    padding: 28px;
    text-align: center;
}

.agw-integration-card h3 {
    margin: 12px 0 8px;
    font-size: 18px;
}

.agw-integration-card p {
    color: var(--agw-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.agw-integration-icon {
    font-size: 36px;
}

.agw-integration-coming {
    border-style: dashed;
    opacity: 0.7;
}

/* ─── Chains Grid (Landing) ─────────────────────────────────── */

.agw-section-sub {
    color: var(--agw-muted);
    text-align: center;
    max-width: 600px;
    margin: -8px auto 24px;
    line-height: 1.5;
}

.agw-chains-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.agw-chain-card {
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.2s;
}

.agw-chain-card:hover {
    border-color: rgba(0, 212, 170, 0.3);
}

.agw-chain-card.agw-chain-request {
    border-style: dashed;
    border-color: var(--agw-accent);
    background: transparent;
}

.agw-chain-request-link {
    font-size: 13px;
    color: var(--agw-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.agw-chain-request-link:hover {
    color: var(--agw-accent-hover);
    text-decoration: underline;
}

.agw-chain-id {
    font-size: 12px;
    color: var(--agw-muted);
}

.agw-chain-coin {
    font-size: 12px;
    color: var(--agw-accent);
}

/* ─── Pricing Cards ─────────────────────────────────────────── */

.agw-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.agw-price-card {
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius);
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.agw-price-card:hover {
    transform: translateY(-2px);
}

.agw-price-card h3 {
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--agw-text);
}

.agw-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--agw-text);
    margin-bottom: 16px;
}

.agw-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--agw-muted);
}

.agw-price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}

.agw-price-card li {
    font-size: 14px;
    color: var(--agw-muted);
    padding: 6px 0;
    border-bottom: 1px solid var(--agw-border);
}

.agw-price-card li:last-child {
    border-bottom: none;
}

.agw-price-featured {
    border-color: var(--agw-accent);
    position: relative;
}

.agw-price-current {
    border-color: var(--agw-accent);
    box-shadow: 0 0 20px var(--agw-accent-glow);
}

/* ─── Security Grid (Landing) ───────────────────────────────── */

.agw-security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.agw-security-item {
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-radius: 10px;
    padding: 20px;
}

.agw-security-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--agw-accent);
}

.agw-security-item p {
    font-size: 14px;
    color: var(--agw-muted);
    margin: 0;
    line-height: 1.5;
}

/* ─── CTA (Landing) ─────────────────────────────────────────── */

.agw-cta {
    text-align: center;
    padding: 50px 0 60px;
}

.agw-cta p {
    font-size: 16px;
    color: var(--agw-muted);
    margin-bottom: 20px;
}

/* ════════════════════════════════════════════════════════════════
   DASHBOARD
   ════════════════════════════════════════════════════════════════ */

.agw-dashboard {
    padding-top: 24px;
}

/* ─── Dashboard: Usage Bar ──────────────────────────────────── */

.agw-usage-section {
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius);
    padding: 20px 24px;
    margin-bottom: 32px;
}

.agw-usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.agw-usage-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.agw-tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agw-tier-badge[data-tier="free"],
.agw-tier-badge[data-tier="paygo"] {
    background: rgba(0, 212, 170, 0.15);
    color: var(--agw-accent);
}

.agw-usage-text {
    font-size: 14px;
    color: var(--agw-muted);
}

.agw-progress-bar {
    height: 8px;
    background: var(--agw-border);
    border-radius: 4px;
    overflow: hidden;
}

.agw-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--agw-accent), #00aaff);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.agw-progress-fill.agw-progress-warning {
    background: linear-gradient(90deg, var(--agw-warning), #ff8800);
}

.agw-progress-fill.agw-progress-danger {
    background: linear-gradient(90deg, var(--agw-danger), #ff2244);
}

/* ─── Dashboard: Wallets Section ───────────────────────────── */

.agw-wallets-section {
    margin-bottom: 32px;
}

.agw-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.agw-section-header h2 {
    margin: 0;
}

.agw-create-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.agw-create-form .agw-input,
.agw-create-form .agw-select {
    width: 160px;
}

.agw-wallet-search-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.agw-wallet-search-wrap .agw-input {
    flex: 1;
    max-width: 320px;
}

.agw-wallet-count {
    font-size: 13px;
    color: var(--agw-muted);
    white-space: nowrap;
}

.agw-wallets-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
}

.agw-wallets-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.agw-wallet-pagination {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.agw-pause-all-wrap {
    margin-left: auto;
}

/* ─── Dashboard: Wallet Accordion ──────────────────────────── */

.agw-wallet-item {
    border-radius: var(--agw-radius-sm);
    overflow: hidden;
}

.agw-wallet-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius-sm);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}

.agw-wallet-row:hover {
    background: var(--agw-card-hover);
    border-color: rgba(0, 212, 170, 0.2);
}

.agw-wallet-expanded .agw-wallet-row {
    border-color: var(--agw-accent);
    background: var(--agw-card-hover);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.agw-wallet-row-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--agw-text);
    white-space: nowrap;
    min-width: 90px;
}

.agw-wallet-row-address {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    color: var(--agw-muted);
    white-space: nowrap;
}

.agw-wallet-row-balances {
    margin-left: auto;
    text-align: right;
    min-width: 0;
}

.agw-wallet-row-balance {
    font-size: 13px;
    font-weight: 600;
    color: var(--agw-accent);
    white-space: nowrap;
}

.agw-wallet-row-tokens {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--agw-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agw-wallet-row-status {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--agw-danger);
    background: rgba(255, 68, 102, 0.12);
    padding: 2px 8px;
    border-radius: 10px;
}

.agw-wallet-row-chevron {
    font-size: 12px;
    color: var(--agw-muted);
    transition: transform 0.2s;
    margin-left: 4px;
}

.agw-wallet-expanded .agw-wallet-row-chevron {
    transform: rotate(180deg);
}

.agw-wallet-paused .agw-wallet-row {
    opacity: 0.7;
}

.agw-wallet-detail {
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-top: none;
    border-bottom-left-radius: var(--agw-radius-sm);
    border-bottom-right-radius: var(--agw-radius-sm);
    padding: 20px;
}

.agw-wallet-expanded .agw-wallet-detail {
    border-color: var(--agw-accent);
}

.agw-wallet-address {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    color: var(--agw-muted);
    margin-bottom: 12px;
    word-break: break-all;
    cursor: pointer;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.agw-wallet-address:hover {
    color: var(--agw-text);
    background: rgba(0, 0, 0, 0.35);
}

.agw-wallet-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
}

.agw-wallet-balance {
    font-size: 14px;
    color: var(--agw-muted);
}

.agw-wallet-balance strong {
    color: var(--agw-text);
    font-size: 15px;
}

.agw-token-balances {
    font-size: 13px;
    color: var(--agw-muted);
    margin-bottom: 12px;
}

.agw-token-balances .agw-token-values {
    color: var(--agw-text);
    font-weight: 500;
}

.agw-token-balances .agw-token-loading {
    color: var(--agw-muted);
    opacity: 0.6;
    font-size: 12px;
}

.agw-chain-picker {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.agw-chain-on {
    font-size: 12px;
    color: var(--agw-muted);
    opacity: 0.6;
}

.agw-chain-select {
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    color: var(--agw-muted);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    min-height: 32px;
    transition: border-color 0.2s;
    max-width: 140px;
}

.agw-chain-select:focus {
    outline: none;
    border-color: var(--agw-accent);
}

.agw-chain-select:hover {
    border-color: rgba(0, 212, 170, 0.3);
}

.agw-wallet-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ─── Dashboard: Send Form ───────────────────────────────────── */

.agw-send-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--agw-border);
}

.agw-send-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.agw-send-tab {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--agw-border);
    background: transparent;
    color: var(--agw-muted);
    transition: all 0.2s;
    min-height: 34px;
}

.agw-send-tab:hover {
    border-color: rgba(0, 212, 170, 0.3);
    color: var(--agw-text);
}

.agw-send-tab-active {
    background: var(--agw-accent);
    color: #000;
    border-color: var(--agw-accent);
}

.agw-send-tab-active:hover {
    color: #000;
}

.agw-send-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agw-send-fields .agw-input {
    width: 100%;
    min-height: 40px;
}

.agw-send-chain {
    max-width: 200px;
}

.agw-send-decimals {
    max-width: 100px;
}

.agw-send-token-fields {
    display: flex;
    gap: 8px;
}

.agw-send-token-fields .agw-input:first-child {
    flex: 1;
}

.agw-send-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.agw-send-result {
    margin-top: 8px;
    font-size: 13px;
}

.agw-send-success {
    color: var(--agw-success);
}

.agw-send-success .agw-tx-link {
    color: var(--agw-accent);
}

.agw-send-error {
    color: var(--agw-danger);
}

.agw-wallet-paused {
    border-color: var(--agw-warning);
    opacity: 0.7;
}

.agw-wallet-paused:hover {
    opacity: 0.85;
}

.agw-wallet-paused .agw-wallet-label::after {
    content: ' (Paused)';
    color: var(--agw-warning);
    font-weight: 400;
    font-size: 12px;
}

/* ─── Dashboard: TX Table ───────────────────────────────────── */

.agw-tx-section {
    margin-bottom: 32px;
}

.agw-tx-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius);
}

.agw-tx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.agw-tx-table th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--agw-border);
    color: var(--agw-muted);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.15);
}

.agw-tx-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--agw-border);
    color: var(--agw-text);
    white-space: nowrap;
}

.agw-tx-table tbody tr:last-child td {
    border-bottom: none;
}

.agw-tx-table tbody tr:hover {
    background: var(--agw-card-hover);
}

.agw-tx-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.agw-tx-status-sent,
.agw-tx-status-confirmed {
    background: rgba(0, 212, 170, 0.12);
    color: var(--agw-success);
}

.agw-tx-status-pending,
.agw-tx-status-submitted {
    background: rgba(255, 170, 0, 0.12);
    color: var(--agw-warning);
}

.agw-tx-status-failed,
.agw-tx-status-failed_onchain,
.agw-tx-status-dropped {
    background: rgba(255, 68, 102, 0.12);
    color: var(--agw-danger);
}

.agw-tx-link {
    color: var(--agw-accent);
    text-decoration: none;
}

.agw-tx-link:hover {
    text-decoration: underline;
}

.agw-tx-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* ─── Dashboard: Billing ────────────────────────────────────── */

.agw-billing-section {
    margin-bottom: 32px;
}

.agw-billing-section .agw-pricing-grid {
    max-width: 900px;
}

/* ─── Dashboard: MCP Setup ──────────────────────────────────── */

.agw-setup-section {
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius);
    padding: 28px 28px 32px;
    margin-bottom: 40px;
}

.agw-setup-section h2 {
    margin-bottom: 8px;
}

.agw-setup-section > p:first-of-type {
    margin-top: 0;
    margin-bottom: 24px;
}

.agw-setup-section h3 {
    font-size: 15px;
    margin: 24px 0 8px;
    color: var(--agw-text);
}

.agw-setup-section p {
    font-size: 14px;
    color: var(--agw-muted);
    line-height: 1.6;
}

.agw-setup-section a {
    color: var(--agw-accent);
    text-decoration: none;
}

.agw-setup-section a:hover {
    text-decoration: underline;
}

.agw-code-block {
    position: relative;
    background: var(--agw-code-bg);
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius-sm);
    margin: 8px 0 16px;
}

.agw-code-block pre {
    padding: 16px;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
    line-height: 1.5;
    color: var(--agw-text);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    white-space: pre;
}

.agw-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--agw-border);
    color: var(--agw-muted);
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 28px;
}

.agw-copy-btn:hover {
    background: var(--agw-accent);
    color: #000;
}

/* API Key Management */
.agw-create-key-form {
    margin: 16px 0 24px;
}

.agw-create-key-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.agw-create-key-row .agw-input {
    flex: 1;
    max-width: 340px;
}

.agw-key-hint {
    font-size: 13px;
    color: var(--agw-muted);
    margin-top: 8px;
}

.agw-keys-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}

.agw-key-item {
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius-sm);
    background: var(--agw-card);
    margin-bottom: 8px;
    overflow: hidden;
}

.agw-key-row {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
}

.agw-key-label {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agw-key-date {
    font-size: 13px;
    color: var(--agw-muted);
    white-space: nowrap;
}

.agw-key-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.agw-key-reveal-area {
    padding: 0 16px 16px;
}

.agw-key-display label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--agw-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agw-key-box {
    position: relative;
    background: var(--agw-code-bg);
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius-sm);
    padding: 14px 80px 14px 16px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    word-break: break-all;
    color: var(--agw-accent);
}

.agw-key-box .agw-copy-btn {
    top: 50%;
    transform: translateY(-50%);
}

.agw-key-tip {
    margin-top: 10px;
    font-size: 13px;
    color: var(--agw-muted);
}

@media (max-width: 600px) {
    .agw-create-key-row {
        flex-direction: column;
        align-items: stretch;
    }

    .agw-create-key-row .agw-input {
        max-width: 100%;
    }

    .agw-key-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .agw-key-date {
        order: 3;
        width: 100%;
    }

    .agw-key-actions {
        order: 2;
    }
}

.agw-config-blocks h3:first-child {
    margin-top: 0;
}

.agw-config-note {
    font-size: 13px;
    color: var(--agw-muted);
    margin: 0 0 4px;
}

.agw-billing-detail {
    font-size: 13px;
    color: var(--agw-muted);
    margin-top: 4px;
}

.agw-billing-btn-wrap {
    margin-top: 16px;
}

.agw-copyable {
    cursor: pointer;
    background: var(--agw-code-bg);
    padding: 2px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.agw-copyable:hover {
    background: var(--agw-border);
}

/* ─── Utility ───────────────────────────────────────────────── */

.agw-loading {
    text-align: center;
    color: var(--agw-muted);
    padding: 32px 20px;
    font-size: 14px;
}

.agw-empty {
    text-align: center;
    color: var(--agw-muted);
    padding: 48px 20px;
    font-size: 14px;
    line-height: 1.6;
}

.agw-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    color: var(--agw-text);
    padding: 14px 24px;
    border-radius: var(--agw-radius-sm);
    font-size: 14px;
    z-index: 10000;
    animation: agw-slide-up 0.3s ease;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.agw-toast-success {
    border-left: 3px solid var(--agw-success);
}

.agw-toast-error {
    border-left: 3px solid var(--agw-danger);
}

@keyframes agw-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ─── Pay-As-You-Go Pricing (Landing) ─────────────────────── */

.agw-paygo-pricing {
    max-width: 480px;
    margin: 0 auto;
}

.agw-paygo-card {
    background: var(--agw-card);
    border: 1px solid var(--agw-accent);
    border-radius: var(--agw-radius);
    padding: 36px 32px;
    text-align: center;
}

.agw-paygo-rate {
    margin-bottom: 24px;
}

.agw-paygo-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--agw-accent);
    display: block;
    line-height: 1.1;
}

.agw-paygo-label {
    font-size: 16px;
    color: var(--agw-muted);
}

.agw-paygo-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.agw-paygo-card li {
    font-size: 15px;
    color: var(--agw-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--agw-border);
}

.agw-paygo-card li:last-child {
    border-bottom: none;
}

.agw-paygo-card li strong {
    color: var(--agw-text);
}

.agw-paygo-note {
    font-size: 13px;
    color: var(--agw-muted);
    margin-top: 12px;
}

/* ─── Dashboard: Billing Info ─────────────────────────────── */

.agw-billing-info {
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius);
    padding: 24px 28px;
}

.agw-billing-rate {
    margin-bottom: 12px;
}

.agw-billing-rate strong {
    font-size: 28px;
    color: var(--agw-accent);
}

.agw-billing-rate span {
    font-size: 14px;
    color: var(--agw-muted);
}

.agw-billing-info p {
    font-size: 14px;
    color: var(--agw-muted);
    line-height: 1.6;
    margin: 0;
}

.agw-usage-detail {
    margin-top: 10px;
    font-size: 13px;
    color: var(--agw-muted);
    display: none;
}

.agw-usage-detail strong {
    color: var(--agw-accent);
}

.agw-billing-alert {
    color: #ef4444;
    font-weight: 600;
}

/* ─── Comparison Chart (Landing) ───────────────────────────── */

.agw-compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius);
}

.agw-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 440px;
}

.agw-compare-table th {
    text-align: left;
    padding: 14px 20px;
    border-bottom: 1px solid var(--agw-border);
    color: var(--agw-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.15);
}

.agw-compare-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--agw-border);
    color: var(--agw-text);
    white-space: nowrap;
}

.agw-compare-table tbody tr:last-child td {
    border-bottom: none;
}

.agw-compare-table tbody tr:hover {
    background: var(--agw-card-hover);
}

.agw-compare-ours {
    color: var(--agw-accent) !important;
    font-weight: 700;
}

.agw-compare-save {
    color: var(--agw-success) !important;
    font-weight: 700;
}

.agw-compare-note {
    text-align: center;
    font-size: 13px;
    color: var(--agw-muted);
    margin-top: 16px;
    line-height: 1.5;
}

/* ─── Quick Setup (Landing) ────────────────────────────────── */

.agw-quick-setup .agw-setup-examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 20px;
}

.agw-setup-example h3 {
    font-size: 15px;
    margin: 0 0 8px;
    color: var(--agw-text);
    text-align: left;
}

.agw-setup-note {
    text-align: center;
    font-size: 14px;
    color: var(--agw-muted);
}

.agw-setup-note a {
    color: var(--agw-accent);
    text-decoration: none;
    font-weight: 600;
}

.agw-setup-note a:hover {
    text-decoration: underline;
}

/* ─── Affiliate (Landing) ──────────────────────────────────── */

.agw-affiliate {
    text-align: center;
}

.agw-affiliate .agw-btn {
    margin-top: 8px;
}

/* ─── Bug Bounty (Landing) ─────────────────────────────────── */

.agw-bounty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.agw-bounty-card {
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius);
    padding: 28px 24px;
    text-align: center;
}

.agw-bounty-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--agw-accent);
    margin-bottom: 8px;
}

.agw-bounty-severity {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.agw-bounty-low {
    background: rgba(0, 212, 170, 0.12);
    color: var(--agw-accent);
}

.agw-bounty-medium {
    background: rgba(255, 170, 0, 0.12);
    color: var(--agw-warning);
}

.agw-bounty-critical {
    background: rgba(255, 68, 102, 0.12);
    color: var(--agw-danger);
}

.agw-bounty-card p {
    font-size: 14px;
    color: var(--agw-muted);
    line-height: 1.5;
    margin: 0;
}

.agw-bounty-rules {
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius);
    padding: 24px 28px;
}

.agw-bounty-rules h3 {
    font-size: 16px;
    margin: 0 0 12px;
    color: var(--agw-text);
}

.agw-bounty-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agw-bounty-rules li {
    font-size: 14px;
    color: var(--agw-muted);
    line-height: 1.6;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.agw-bounty-rules li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--agw-accent);
}

.agw-bounty-rules a {
    color: var(--agw-accent);
    text-decoration: none;
}

.agw-bounty-rules a:hover {
    text-decoration: underline;
}

/* ─── FAQ Section ─────────────────────────────────────────── */

.agw-faq {
    max-width: 900px;
    margin: 0 auto;
}

.agw-faq h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 32px;
}

.agw-faq-grid {
    display: grid;
    gap: 16px;
}

.agw-faq-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px 24px;
}

.agw-faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
}

.agw-faq-item p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.agw-faq-item code {
    background: rgba(99, 102, 241, 0.15);
    color: var(--agw-accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* ─── Getting Started (Dashboard) ─────────────────────────── */

.agw-getting-started {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(59, 130, 246, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
}

.agw-getting-started h2 {
    font-size: 20px;
    margin: 0 0 20px;
    color: #1e293b;
}

.agw-gs-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.agw-gs-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.agw-gs-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--agw-accent, #6366f1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.agw-gs-step strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 2px;
}

.agw-gs-step span {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* ─── Docs Bar (Dashboard) ────────────────────────────────── */

.agw-docs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.agw-docs-bar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.agw-docs-bar a:hover {
    background: #e2e8f0;
    border-color: var(--agw-accent, #6366f1);
    color: var(--agw-accent, #6366f1);
}

.agw-docs-bar a svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ─── What Counts Section (Dashboard) ─────────────────────── */

.agw-what-counts {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.agw-what-counts h3 {
    font-size: 15px;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 8px;
}

.agw-what-counts p {
    font-size: 13px;
    line-height: 1.6;
    color: #78350f;
    margin: 0 0 6px;
}

.agw-what-counts p:last-child {
    margin-bottom: 0;
}

.agw-what-counts code {
    background: rgba(146, 64, 14, 0.1);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12px;
}

@media (max-width: 600px) {
    .agw-faq h2 {
        font-size: 22px;
    }
    .agw-faq-item {
        padding: 16px;
    }
    .agw-gs-steps {
        grid-template-columns: 1fr;
    }
    .agw-docs-bar {
        flex-direction: column;
    }
    .agw-docs-bar a {
        justify-content: center;
    }
}

/* ─── Terms Acceptance Modal ───────────────────────────────── */

.agw-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: agw-fade-in 0.3s ease;
}

@keyframes agw-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes agw-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.agw-modal {
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius);
    max-width: 520px;
    width: 100%;
    padding: 32px;
    animation: agw-slide-up 0.3s ease;
}

.agw-modal h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--agw-text);
    text-align: left;
}

.agw-modal p {
    font-size: 14px;
    color: var(--agw-muted);
    line-height: 1.6;
    margin: 0 0 20px;
}

.agw-modal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    cursor: pointer;
}

.agw-modal-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    accent-color: var(--agw-accent);
    cursor: pointer;
}

.agw-modal-checkbox label {
    font-size: 14px;
    color: var(--agw-text);
    line-height: 1.5;
    cursor: pointer;
}

.agw-modal-checkbox a {
    color: var(--agw-accent);
    text-decoration: none;
}

.agw-modal-checkbox a:hover {
    text-decoration: underline;
}

.agw-modal-actions {
    display: flex;
    gap: 12px;
}

.agw-modal-actions .agw-btn {
    flex: 1;
}

.agw-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── Dashboard: x402 Paywalls ─────────────────────────────── */

.agw-paywall-section {
    margin-bottom: 32px;
}

/* Revenue Summary */
.agw-paywall-revenue {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.agw-revenue-stat {
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius-sm);
    padding: 16px 20px;
    min-width: 160px;
    flex: 1;
}

.agw-revenue-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--agw-muted);
    margin-bottom: 4px;
}

.agw-revenue-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--agw-accent);
}

.agw-revenue-line {
    margin-bottom: 8px;
}

.agw-revenue-line:last-child {
    margin-bottom: 0;
}

.agw-revenue-line .agw-revenue-value {
    font-size: 18px;
}

/* Create Paywall Form */
.agw-paywall-form {
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius);
    padding: 24px;
    margin-bottom: 20px;
}

.agw-paywall-form h3 {
    font-size: 16px;
    margin: 0 0 16px;
    color: var(--agw-text);
}

.agw-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.agw-form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agw-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--agw-muted);
}

.agw-form-field-full {
    grid-column: 1 / -1;
}

.agw-form-hint {
    font-size: 12px;
    color: var(--agw-muted);
    opacity: 0.7;
}

.agw-form-optional {
    font-weight: 400;
    opacity: 0.6;
}

.agw-pw-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agw-pw-price-row .agw-input {
    flex: 1;
}

.agw-pw-token-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--agw-accent);
    white-space: nowrap;
}

.agw-paywall-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* Paywall Cards (Accordion) */
.agw-paywalls-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agw-paywall-item {
    border-radius: var(--agw-radius-sm);
    overflow: hidden;
}

.agw-paywall-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-radius: var(--agw-radius-sm);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}

.agw-paywall-row:hover {
    background: var(--agw-card-hover);
    border-color: rgba(0, 212, 170, 0.2);
}

.agw-paywall-expanded .agw-paywall-row {
    border-color: var(--agw-accent);
    background: var(--agw-card-hover);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.agw-paywall-row-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--agw-text);
    white-space: nowrap;
    min-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agw-paywall-row-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--agw-accent);
    white-space: nowrap;
}

.agw-paywall-row-chain {
    font-size: 12px;
    color: var(--agw-muted);
    white-space: nowrap;
}

.agw-paywall-row-payments {
    font-size: 12px;
    color: var(--agw-muted);
    white-space: nowrap;
    margin-left: auto;
}

.agw-paywall-row-status {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.agw-pw-status-active {
    color: var(--agw-success);
    background: rgba(0, 212, 170, 0.12);
}

.agw-pw-status-inactive {
    color: var(--agw-danger);
    background: rgba(255, 68, 102, 0.12);
}

.agw-paywall-detail {
    background: var(--agw-card);
    border: 1px solid var(--agw-border);
    border-top: none;
    border-bottom-left-radius: var(--agw-radius-sm);
    border-bottom-right-radius: var(--agw-radius-sm);
    padding: 20px;
}

.agw-paywall-expanded .agw-paywall-detail {
    border-color: var(--agw-accent);
}

.agw-paywall-inactive .agw-paywall-row {
    opacity: 0.7;
}

.agw-paywall-desc {
    font-size: 14px;
    color: var(--agw-muted);
    margin: 0 0 16px;
    line-height: 1.5;
}

.agw-paywall-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.agw-paywall-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agw-paywall-info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--agw-muted);
}

.agw-paywall-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--agw-text);
}

.agw-paywall-access-url {
    margin-bottom: 16px;
}

.agw-paywall-url-box {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 12px;
    color: var(--agw-muted);
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    word-break: break-all;
    margin-top: 4px;
    transition: color 0.2s, background 0.2s;
}

.agw-paywall-url-box:hover {
    color: var(--agw-text);
    background: rgba(0, 0, 0, 0.35);
}

/* ─── Responsive: 768px (Tablet) ───────────────────────────── */

@media (max-width: 768px) {
    .agw-hero h1 {
        font-size: 28px;
    }

    .agw-hero-sub {
        font-size: 15px;
    }

    .agw-features-grid,
    .agw-security-grid,
    .agw-integration-grid,
    .agw-bounty-grid,
    .agw-quick-setup .agw-setup-examples {
        grid-template-columns: 1fr;
    }

    .agw-bounty-grid {
        max-width: 400px;
        margin: 0 auto 32px;
    }

    .agw-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .agw-chains-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .agw-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .agw-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .agw-create-form {
        width: 100%;
    }

    .agw-create-form .agw-input,
    .agw-create-form .agw-select {
        flex: 1;
        min-width: 0;
    }

    .agw-wallet-row-address {
        display: none;
    }

    .agw-usage-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .agw-usage-section {
        padding: 16px 18px;
    }

    .agw-wallet-search-wrap .agw-input {
        max-width: none;
    }

    .agw-form-grid {
        grid-template-columns: 1fr;
    }

    .agw-paywall-row-chain {
        display: none;
    }

    .agw-paywall-info-grid {
        grid-template-columns: 1fr;
    }

    .agw-paywall-revenue {
        flex-direction: column;
    }

    .agw-wallets-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .agw-pause-all-wrap {
        margin-left: 0;
        text-align: center;
    }

    .agw-setup-section {
        padding: 20px 18px 24px;
    }

    .agw-tx-table th,
    .agw-tx-table td {
        padding: 10px 12px;
    }
}

/* ─── Responsive: 480px (Phone) ────────────────────────────── */

@media (max-width: 480px) {
    .agw-landing,
    .agw-dashboard {
        padding: 0 12px 32px;
    }

    .agw-dashboard {
        padding-top: 16px;
    }

    .agw-hero {
        padding: 40px 0 24px;
    }

    .agw-hero h1 {
        font-size: 24px;
    }

    .agw-section {
        padding: 24px 0;
    }

    .agw-section h2,
    .agw-dashboard h2 {
        font-size: 20px;
    }

    .agw-create-form {
        flex-direction: column;
    }

    .agw-create-form .agw-input,
    .agw-create-form .agw-select,
    .agw-create-form .agw-btn {
        width: 100%;
    }

    .agw-chains-grid {
        grid-template-columns: 1fr;
    }

    .agw-wallet-detail {
        padding: 16px;
    }

    .agw-wallet-row {
        padding: 10px 12px;
        gap: 8px;
    }

    .agw-wallet-row-label {
        font-size: 13px;
        min-width: 70px;
    }

    .agw-wallet-row-balance {
        font-size: 12px;
    }

    .agw-wallet-actions {
        flex-direction: column;
    }

    .agw-wallet-actions .agw-btn {
        width: 100%;
    }

    .agw-send-chain {
        max-width: none;
    }

    .agw-send-token-fields {
        flex-direction: column;
    }

    .agw-send-decimals {
        max-width: none;
    }

    .agw-send-actions {
        flex-direction: column;
    }

    .agw-send-actions .agw-btn {
        width: 100%;
    }

    .agw-tx-table {
        font-size: 12px;
    }

    .agw-tx-table th,
    .agw-tx-table td {
        padding: 8px;
    }

    .agw-toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

    .agw-code-block pre {
        font-size: 11px;
        padding: 12px;
    }

    .agw-modal {
        padding: 24px 20px;
    }

    .agw-bounty-amount {
        font-size: 28px;
    }
}

/* ─── PWA Standalone Mode ──────────────────────────────────── */

@media (display-mode: standalone) {
    .agw-dashboard {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    .agw-landing {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    .agw-toast {
        bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    }
}
