/* -------------------------------------------------- */
/* Compact Additions                                  */
/* -------------------------------------------------- */

/* Reveal animation base */
.reveal { opacity: 0; transform: translateY(22px) scale(.985); transition: opacity .7s cubic-bezier(.4,.0,.2,1), transform .7s cubic-bezier(.4,.0,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }

/* Ultra-compact utility classes */
.text-xs { font-size: 0.65rem !important; }
.p-tight { padding: 0.4rem !important; }
.mb-tight { margin-bottom: 0.4rem !important; }
.compact-input { padding: 0.45rem 0.55rem !important; font-size: 0.72rem !important; }
.compact-label { font-size: 0.65rem !important; margin-bottom: 0.3rem !important; }
.compact-btn { padding: 0.55rem 0.7rem !important; font-size: 0.75rem !important; min-height: 30px !important; }

@media (max-width: 420px) {
    .swap-card { padding: 0.85rem 0.75rem; }
    .swap-title { font-size: 1.15rem; }
    .swap-subtitle { font-size: 0.7rem; }
    .form-group select, .form-group input { padding: 0.5rem 0.55rem; font-size: 0.72rem; }
    .btn-create { padding: 0.6rem; font-size: 0.8rem; }
    .amount-summary { padding: 0.45rem 0.55rem; }
    .summary-value { font-size: 0.7rem; }
    .benefit-card { padding: 1.25rem; }
    .benefit-card h3 { font-size: 1rem; }
    .benefit-card p { font-size: 0.7rem; }
}
/* HHO Cash - Simplified Frontend Styles */

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

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --background: #0f0f0f;
    --surface: #1a1a1a;
    --surface-light: #2a2a2a;
    --border: #333333;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --radius: 8px;
    --shadow: 0 2px 4px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 8px 12px -3px rgb(0 0 0 / 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--background);
    font-size: 14px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    margin-bottom: 14px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

/* Enhance main logo visibility on dark background */
/* Make logo pure white for visibility */
.nav-logo.main-logo {
    filter: brightness(0) invert(1) contrast(1.1);
    padding: 2px;
    border-radius: 8px;
    background: none;
    box-shadow: none;
}

/* High DPI tweak */
@media (min-resolution: 2dppx) {
    .nav-logo.main-logo { filter: brightness(0) invert(1) contrast(1.15); }
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.wallet-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.wallet-info span {
    padding: 6px 10px;
    background: var(--surface);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 35px 0 30px 0;
    background: var(--background);
    color: white;
    border-radius: 0;
    box-shadow: none;
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff, #e5e7eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.header p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.header-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
}

.header-features {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 18px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Info Banner (MetaMask notice) */
.info-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border: 1px solid #3b82f6;
    border-radius: 8px;
    margin: 0 auto 25px;
    max-width: 900px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    position: relative;
}

.info-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
}

.info-text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #e5e7eb;
}

.info-text strong {
    color: #ffffff;
    font-weight: 600;
}

.info-text a {
    color: #60a5fa;
    text-decoration: underline;
    transition: color 0.2s;
}

.info-text a:hover {
    color: #93c5fd;
}

.info-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
    line-height: 1;
}

.info-close:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .info-banner {
        margin: 0 15px 20px;
    }
    
    .info-content {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .info-icon {
        font-size: 1.2rem;
    }
    
    .info-text {
        font-size: 0.8rem;
    }
    
    .info-close {
        font-size: 1.3rem;
        width: 20px;
        height: 20px;
    }
}

.trade-header {
    text-align: center;
    padding: 18px;
    margin-bottom: 0;
}

.trade-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.trade-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.trade-features {
    display: flex;
    gap: 12px;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.offer-form-card {
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    padding: 20px;
    border-radius: var(--radius);
    margin: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.min-amount {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: normal;
}

.price-info {
    margin: 12px 0;
    text-align: left;
}

.price-info small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.btn-large {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-full {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.offer-form-card .form-group input,
.offer-form-card .form-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.offer-form-card .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.offer-form-card .form-group label {
    color: rgba(255, 255, 255, 0.9);
}

.offer-form-card .form-group input:focus,
.offer-form-card .form-group select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.hidden {
    display: none !important;
}

.tabs {
    display: flex;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.tab {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab:hover {
    background: var(--surface-light);
    color: var(--text-secondary);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--surface-light);
}

.tab-content {
    display: none;
    padding: 32px;
}

.tab-content.active {
    display: block;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}

.card h2 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    background: var(--surface-light);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.15);
    background: var(--surface);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.fee-info {
    background: var(--surface-light);
    padding: 12px;
    border-radius: var(--radius);
    margin: 18px 0;
    border-left: 4px solid var(--primary-color);
}

.fee-info p {
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.fee-info p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 36px;
}

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

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover:not(:disabled) {
    background: var(--surface-light);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    margin-top: 8px;
    width: 100%;
}

.claim-expired-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-expired {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-accepted {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-cancelled {
    background: rgba(107, 114, 128, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.status-expired {
    background: #fef3c7;
    color: #d97706;
}

.status-accepted {
    background: #dbeafe;
    color: #2563eb;
}

.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.offer-details {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    margin: 15px 0;
}

.offer-sell,
.offer-buy {
    text-align: center;
}

.offer-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.token-amount {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.token-symbol {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.offer-meta {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    min-width: 500px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

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

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background: var(--surface);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px 30px;
    border-top: 1px solid var(--border);
}

.qr-container {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius);
}

.qr-container h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.qr-container canvas {
    margin: 15px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.qr-container p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
}

.error {
    background: #fee2e2;
    color: #dc2626;
    padding: 15px;
    border-radius: var(--radius);
    margin: 15px 0;
    border-left: 4px solid #dc2626;
}

.success {
    background: #dcfce7;
    color: #16a34a;
    padding: 15px;
    border-radius: var(--radius);
    margin: 15px 0;
    border-left: 4px solid #16a34a;
}

/* Inline Status Message Styles (below form) */
.inline-status-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

.inline-status-message.hidden {
    display: none;
}

.inline-status-message.error {
    background: #fee2e2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.inline-status-message.success {
    background: #dcfce7;
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

.inline-status-message.loading {
    background: #dbeafe;
    color: #2563eb;
    border-left: 4px solid #2563eb;
    text-align: center;
}

.inline-status-message.info {
    background: #f3f4f6;
    color: #4b5563;
    border-left: 4px solid #6b7280;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Offer Success Modal Styles */
.offer-link-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    align-items: center;
}

.offer-link-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
}

.offer-link-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    margin: 20px 0;
}

.qr-code-container canvas {
    max-width: 100%;
    height: auto;
}

.success-message {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.share-buttons {
    margin-top: 15px;
}

.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .wallet-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        text-align: center;
    }
    
    .offer-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .offer-arrow {
        transform: rotate(90deg);
    }
    
    .modal-content {
        min-width: auto;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
}

/* Landing Content Styles */
.landing-content {
    margin: 80px 0;
}

.landing-content section {
    margin-bottom: 80px;
}

.landing-content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* New Swap Form Styles */
.swap-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.swap-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 0 auto;
}

.swap-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    text-align: center;
    line-height: 1.2;
}

.swap-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.3;
}

.swap-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tag {
    background: var(--surface-light);
    color: var(--text-secondary);
    padding: 0.25rem 0.65rem;
    border-radius: 16px;
    font-size: 0.75rem;
    border: 1px solid var(--border);
}

.form-section-title {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.swap-tokens-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.swap-tokens-section .form-group {
    flex: 1;
}

.swap-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
}

.arrow-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    background: var(--surface-light);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.arrow-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

.amounts-section,
.expiration-section {
    margin-bottom: 1.25rem;
}

.amounts-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Amount Summary Block */
.amount-summary {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    display: none; /* Hidden by default */
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.85rem;
}

.summary-row:last-child {
    padding-bottom: 0;
}

.summary-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.summary-value {
    color: var(--text-primary);
    font-weight: 500;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
}

.fee-value {
    color: var(--warning-color);
}

.summary-highlight {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    margin-top: 0.35rem;
}

.summary-highlight .summary-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.summary-highlight .summary-value {
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.05rem;
}

.label-hint {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85rem;
}

.price-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 1.5rem 0;
    padding: 0.75rem;
    background: var(--surface-light);
    border-radius: 8px;
}

.info-icon {
    color: var(--primary-color);
    font-weight: 700;
}

.btn-create {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Token option styles */
.token-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.token-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Custom Select Styles */
.custom-select {
    position: relative;
    width: 100%;
}

.selected-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.selected-option::after {
    content: "⌄";
    position: absolute;
    right: 1rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.custom-select.open .selected-option::after {
    transform: rotate(180deg);
}

.selected-option:hover,
.selected-option:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.selected-option .placeholder {
    color: var(--text-secondary);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-select.open .dropdown-options {
    display: block;
}

.dropdown-options .option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-options .option:last-child {
    border-bottom: none;
}

.dropdown-options .option:hover {
    background: rgba(59, 130, 246, 0.1);
}

.dropdown-options .option.selected {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
}

.dropdown-options .token-icon {
    width: 24px;
    height: 24px;
}

.selected-option .token-icon {
    width: 24px;
    height: 24px;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input[readonly] {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.min-amount,
.rate-info {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.price-info {
    background: var(--surface-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row span:first-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-row span:last-child {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-swap {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-swap:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-swap:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-swap:hover:before {
    left: 100%;
}

@media (max-width: 768px) {
    .swap-tokens-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .swap-arrow {
        transform: rotate(90deg);
        padding: 0.5rem 0;
    }
    
    .amounts-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .swap-card {
        padding: 1.5rem;
    }
    
    .swap-form-container {
        padding: 1rem;
    }
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Horizontal benefit card layout */
.benefit-card { display: flex; align-items: flex-start; gap: 1.1rem; padding: 1.4rem 1.6rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform .25s ease, box-shadow .25s ease; }
.benefit-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px -4px rgba(0,0,0,0.55); }
.benefit-card h3 { font-size: 1rem; margin: 0 0 0.4rem 0; color: #ffffff; line-height: 1.2; }
.benefit-card p { color: var(--text-secondary); line-height: 1.35; font-size: 0.72rem; margin: 0; }
.benefit-text {display:flex;flex-direction:column;gap:4px;}
.benefit-text h3{margin:0;font-size:0.88rem;line-height:1.15;font-weight:600;}
.benefit-text p{margin:0;font-size:0.72rem;line-height:1.1;opacity:.72;}

/* Compact icon */
.benefit-icon { width:56px; height:56px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.06); border-radius:14px; padding:10px; flex-shrink:0; transition:background .25s ease, transform .25s ease, border-color .25s ease; }

/* Make icon monochrome white */
/* Recolor icons to brand blue tone (approx) */
/* Technique: start from original dark icon -> invert -> hue shift via combination of sepia/hue-rotate/saturate */
.benefit-icon img { width:100%; height:100%; object-fit:contain; filter:invert(55%) sepia(85%) saturate(380%) hue-rotate(185deg) brightness(92%) contrast(98%); }

/* Hover sharpen */
.benefit-card:hover .benefit-icon { background:rgba(255,255,255,0.09); border-color:rgba(255,255,255,0.18); }
.benefit-card:hover .benefit-icon img { filter:invert(60%) sepia(95%) saturate(520%) hue-rotate(190deg) brightness(100%) contrast(105%); }

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.35) 100%);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 4px 10px -2px rgba(0,0,0,0.6);
}

/* Subtle constant elevation & brighter base for benefit icon */
.benefit-icon {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 2px 8px -2px rgba(0,0,0,0.55);
    backdrop-filter: blur(3px) saturate(1.2);
}

.benefit-card h3 {
    font-size: 1.1rem; /* compact */
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.78rem;
}

/* How It Works Section */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem auto;
    color: white;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Comparison Table */
.comparison-table {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface-light);
}

.comparison-header > div {
    padding: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: var(--text-primary);
}

.comparison-header > div:first-child {
    border-right: 1px solid var(--border);
    background: #1e1e1e;
}

.comparison-header > div:last-child {
    background: #1e1e1e;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
}

.comparison-row > div {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.comparison-row > div:first-child {
    border-right: 1px solid var(--border);
    background: #121212;
}

.comparison-row > div:last-child {
    background: #121212;
    font-weight: 500;
    color: #ffffff;
}

/* Tokens Section */
.tokens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.token-status {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}

.token-status h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.token-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.token-tag {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.token-tag.available {
    background: rgba(59,130,246,0.12);
    color: #76b8ff;
    border: 1px solid rgba(59,130,246,0.55);
    box-shadow: 0 0 0 1px rgba(59,130,246,0.25), inset 0 0 0 1px rgba(255,255,255,0.04);
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.token-tag.available:hover { background: rgba(59,130,246,0.22); color: #a8d4ff; border-color: rgba(59,130,246,0.8); }

.token-tag.coming {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.token-status p {
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: var(--surface);
    padding: 4rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-top: 4rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Responsive Design for Landing Content */
@media (max-width: 768px) {
    .landing-content h2 {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-header > div,
    .comparison-row > div {
        padding: 1rem;
    }
    
    .tokens-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 3rem 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}

/* Tab Navigation Styles */
.offers-section {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius);
}

.tab-navigation {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
    gap: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--surface-light);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-panel {
    animation: fadeIn 0.3s ease;
    min-height: 200px; /* Ensure visibility for Playwright tests */
    padding: 20px 0;
}

.tab-panel.hidden {
    display: none;
}

.tab-panel h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

#offersList,
#myOffersList {
    min-height: 200px;
    padding: 1rem;
}

.offer-item {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.offer-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

/* ==================== MOBILE OPTIMIZATION ==================== */

/* Small phones (portrait) */
@media (max-width: 480px) {
    /* Navigation */
    .top-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-brand {
        justify-content: center;
    }
    
    .nav-links {
        display: none; /* Hide on very small screens */
    }
    
    .wallet-section {
        width: 100%;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }
    
    /* Header */
    .header {
        padding: 2rem 1rem;
    }
    
    .header h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .header p {
        font-size: 0.9rem;
    }
    
    .header-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .btn-large {
        width: 100%;
        font-size: 1rem;
    }
    
    .header-features {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Swap Card Form */
    .swap-card {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .form-section-title {
        font-size: 1.25rem;
    }
    
    .form-group label {
        font-size: 0.875rem;
    }
    
    .custom-select {
        font-size: 0.875rem;
    }
    
    .selected-option {
        padding: 0.75rem;
    }
    
    .token-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Amount Summary */
    .amount-summary {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    /* Benefits Section */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-card {
        padding: 1.25rem;
    }
    
    .benefit-icon {
        width: 48px;
        height: 48px;
        padding: 8px;
    }
    
    .benefit-card h3 {
        font-size: 1.1rem;
    }
    
    .benefit-card p {
        font-size: 0.875rem;
    }
    
    /* Steps Section */
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step {
        padding: 1rem;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
    
    .step h3 {
        font-size: 1rem;
    }
    
    .step p {
        font-size: 0.85rem;
    }
    
    /* Modal adjustments */
    .modal-content {
        min-width: auto;
        width: 95%;
        max-width: 95vw;
        margin: 1rem;
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    /* QR Code in modal */
    #offerQrCode {
        max-width: 200px;
    }
    
    /* Comparison table */
    .comparison-header,
    .comparison-row {
        font-size: 0.75rem;
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    
    .comparison-header > div,
    .comparison-row > div {
        padding: 0.5rem;
    }
}

/* Medium phones and small tablets (landscape) */
@media (min-width: 481px) and (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .swap-card {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .custom-select .option {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .tab {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .benefit-card:hover .benefit-icon {
        transform: none;
    }
    
    .offer-item:hover {
        transform: none;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        padding: 1.5rem 1rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .benefit-icon img,
    .token-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Created Offer Section - Shown Below Form After Creation */
.created-offer-section {
    margin-top: 2rem;
    animation: slideDown 0.3s ease-out;
}

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

.offer-success-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 2px solid var(--success-color);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.offer-success-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.offer-success-header h3 {
    color: var(--success-color);
    font-size: 1.5rem;
}

.offer-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.timer-icon {
    font-size: 1.25rem;
}

#timerText {
    font-weight: 600;
    color: var(--warning-color);
}

.offer-share-section {
    margin-bottom: 1.5rem;
}

.offer-share-section h4 {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.offer-link-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.offer-link-input {
    flex: 1;
    padding: 0.875rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.qr-code-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.qr-code-section canvas {
    max-width: 256px;
    height: auto;
}

.btn-share {
    width: 100%;
}

.offer-details-summary {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.offer-details-summary h4 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.status-accepted {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.status-expired {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.status-cancelled {
    background: rgba(107, 114, 128, 0.2);
    color: var(--text-muted);
}

.offer-actions {
    display: flex;
    gap: 1rem;
}

.offer-actions button {
    flex: 1;
}

@media (max-width: 768px) {
    .offer-success-card {
        padding: 1.5rem;
    }
    
    .offer-success-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .offer-link-container {
        flex-direction: column;
    }
    
    .offer-actions {
        flex-direction: column;
    }
}

/* Buyer View Page - Shown when accessing ?offer=TOKEN */
.buyer-view-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.buyer-offer-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.buyer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.buyer-header h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
}

.offer-info-section {
    margin-bottom: 2rem;
}

.offer-info-card {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.offer-info-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.swap-visual {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2rem 1rem;
    background: var(--background);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.token-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.token-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.token-symbol {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    background: var(--surface);
    border-radius: 6px;
}

.swap-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.offer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--background);
    border-radius: 6px;
}

.meta-label {
    color: var(--text-muted);
    font-weight: 500;
}

.meta-value {
    color: var(--text-primary);
    font-weight: 600;
}

.meta-value.mono {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.security-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.security-info h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.security-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-info li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.security-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.buyer-actions {
    display: flex;
    gap: 1rem;
}

.buyer-actions button {
    flex: 1;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .buyer-offer-card {
        padding: 1.5rem;
    }
    
    .buyer-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .swap-visual {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .swap-arrow {
        transform: rotate(90deg);
    }
    
    .buyer-actions {
        flex-direction: column;
    }
    
    .meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}