/* ========================================
   XPRES PAGOS — Style Sheet
   Dark & Gold Premium Design
   ======================================== */

:root {
    --bg: #0d0d0d;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --gold: #FFD700;
    --gold-dim: #b8960f;
    --gold-glow: rgba(255, 215, 0, 0.3);
    --white: #ffffff;
    --gray: #aaaaaa;
    --gray-dark: #666666;
    --success: #00e676;
    --error: #ff5252;
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background: var(--bg);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Particle Canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px;
    min-height: 100vh;
}

/* Header */
.header {
    text-align: center;
    padding: 20px 0 10px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 12px;
    box-shadow: 0 0 30px var(--gold-glow);
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
}

.header .subtitle {
    color: var(--gray);
    font-size: 14px;
    margin-top: 4px;
}

.gold {
    color: var(--gold);
}

/* Price Ticker */
.price-ticker {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.ticker-item {
    display: flex;
    flex-direction: column;
}

.ticker-label {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
}

.ticker-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
}

.ticker-update {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.ticker-update span:first-child {
    font-size: 11px;
    color: var(--gray-dark);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 24px 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.card h2 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group input::placeholder {
    color: var(--gray-dark);
}

/* Amount input group */
.amount-input-group {
    display: flex;
    gap: 8px;
}

.amount-input-group select {
    padding: 12px 10px;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-width: 90px;
}

.amount-input-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.amount-input-group input {
    flex: 1;
}

/* Discount Grid */
.discount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.discount-btn {
    padding: 10px 8px;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.discount-btn:hover {
    border-color: var(--gold);
}

.discount-btn.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    font-weight: 700;
}

/* Exchange Rate Reference */
.exchange-rate-ref {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--gold);
    text-align: center;
    font-weight: 500;
}

.quote-impact-ref {
    margin-bottom: 16px;
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.28);
    color: #86efac;
}

.quote-details {
    color: #86efac !important;
    line-height: 1.45;
}

.quote-impact-ref.high-impact,
.quote-details.high-impact {
    color: #ffd6d6 !important;
    background: rgba(190, 35, 35, 0.2);
    border-color: rgba(255, 90, 90, 0.55);
    font-weight: 700;
}

/* Equivalents */
.equivalents {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.equiv-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.equiv-item:last-child {
    border-bottom: none;
}

.equiv-item.highlight {
    padding: 12px 0;
}

.equiv-item.highlight .equiv-value {
    font-size: 18px;
    color: var(--gold);
    font-weight: 700;
}

.equiv-label {
    font-size: 13px;
    color: var(--gray);
}

.equiv-value {
    font-size: 15px;
    font-weight: 600;
}

.discount-row {
    background: rgba(255, 215, 0, 0.05);
    border-radius: var(--radius-sm);
    padding: 10px 12px !important;
    margin-top: 8px;
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #f0c800 100%);
    color: #000;
}

.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-large {
    padding: 16px 20px;
    font-size: 16px;
}

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

.btn-outline:hover {
    background: rgba(255, 215, 0, 0.1);
}

.btn-link {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.btn-copy {
    padding: 12px 16px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-copy:hover {
    box-shadow: 0 2px 10px var(--gold-glow);
}

/* Merchant Info */
.merchant-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
}

/* QR Display */
.qr-display {
    text-align: center;
    padding: 20px 0;
}

.qr-amount-summary {
    margin-bottom: 20px;
}

.qr-amount-summary p {
    margin: 4px 0;
}

.qr-amount-summary .small {
    font-size: 13px;
    color: var(--gray);
}

.discount-badge {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 6px 14px;
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--gold);
}

#qr-code {
    display: inline-block;
    padding: 16px;
    background: #ffffff;
    border-radius: var(--radius);
    margin: 16px 0;
}

#qr-code canvas {
    display: block;
}

.qr-instruction {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

/* Wallet Copy */
.wallet-copy {
    margin: 20px 0;
}

.wallet-copy label {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.copy-group {
    display: flex;
    gap: 8px;
}

.copy-group input {
    flex: 1;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 12px;
    font-family: monospace;
}

.copy-status {
    font-size: 12px;
    color: var(--success);
    margin-top: 4px;
    display: block;
    min-height: 18px;
}

/* Status Messages */
.status-msg {
    margin-top: 12px;
    font-size: 13px;
    min-height: 20px;
}

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

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

/* Share Payment Link */
.share-section {
    margin: 16px 0;
    text-align: center;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.btn-share-wa {
    flex: 2;
    padding: 12px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-share-wa:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-share-copy {
    flex: 1;
    padding: 12px;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-share-copy:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

/* Payment Confirmation Section */
.confirmation-section {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 20px 0;
}

.confirmation-section h3 {
    color: var(--gold);
    font-size: 14px;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.confirmation-instruction {
    color: var(--gray);
    font-size: 12px;
    margin: 0 0 12px 0;
}

.tx-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tx-input {
    flex: 1;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 12px;
    font-family: monospace;
}

.tx-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.tx-input::placeholder {
    color: var(--gray-dark);
}

.tx-status {
    font-size: 13px;
    min-height: 20px;
    margin-top: 8px;
}

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

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

.tx-status.loading {
    color: var(--gray);
}

.confirmation-success {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--success);
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0 20px;
    font-size: 13px;
    color: var(--gray-dark);
}

.footer .small {
    font-size: 11px;
    margin-top: 4px;
}

/* Utilities */
.hidden {
    display: none !important;
}

.small {
    font-size: 12px;
}

/* Responsive */
@media (max-width: 380px) {
    .container {
        padding: 16px 12px;
    }
    
    .discount-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ticker-item {
        flex: 1;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 40px 20px;
    }
    
    .header h1 {
        font-size: 36px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
}

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

.card {
    animation: fadeIn 0.4s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-dark);
    border-radius: 3px;
}
