/* payment.css - Red Mycelium Crypto Payment Theme */

:root {
    --primary-red: #8b0000;
    --primary-red-hover: #a50000;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --card-border: #333;
    --text-primary: #ffffff;
    --text-secondary: #aaa;
    --text-muted: #666;
    --success-green: #28a745;
    --warning-yellow: #ffc107;
    --danger-red: #dc3545;
    --info-blue: #17a2b8;
    --shadow-red: rgba(139, 0, 0, 0.15);
    --gradient-red: linear-gradient(125deg, #8b0000 6.42%, #a50000 84.24%);
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    animation: fadeIn 0.5s ease forwards;
}

/* Header Section */
.payment-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.payment-header h1 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(139, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.payment-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-red);
    border-radius: 2px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Payment Form */
.payment-form {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px var(--shadow-red);
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.payment-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-red);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0;
    background: #2a2a2a;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.2);
}

.form-control {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    min-width: 0;
}

.form-control:focus {
    outline: none;
}

.input-group-text {
    padding: 1rem 1.5rem;
    background: #333;
    color: var(--text-primary);
    font-weight: 600;
    min-width: 70px;
    text-align: center;
    border-left: 1px solid #444;
}

/* Token Selector */
.token-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.token-option {
    background: #2a2a2a;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.token-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.token-option:hover {
    transform: translateY(-3px);
    border-color: var(--primary-red);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.15);
}

.token-option:hover::before {
    background: var(--gradient-red);
}

.token-option.active {
    background: rgba(139, 0, 0, 0.1);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.2), 0 6px 20px rgba(139, 0, 0, 0.15);
}

.token-option.active::before {
    background: var(--gradient-red);
}

.token-symbol {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.token-option small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: block;
}

/* Generate Button */
#generate-qr-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

/* Payment Container */
.payment-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px var(--shadow-red);
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.payment-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-red);
}

/* QR Code Section */
.qr-code-container {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code-container h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.qr-code-container h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gradient-red);
}

.qr-code-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    display: inline-block;
    margin: 1rem 0;
    border: 1px solid #444;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.qr-code-img {
    max-width: 280px;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.qr-code-img:hover {
    transform: scale(1.02);
}

/* Payment Info */
.payment-info {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid #333;
    height: 100%;
}

.payment-info h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.payment-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-red);
}

.info-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #333;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.info-item code,
.info-item span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    word-break: break-all;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.copy-btn {
    background: #333;
    color: var(--text-primary);
    border: 1px solid #444;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.copy-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red-hover);
    transform: translateY(-1px);
}

/* Countdown Timer */
.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--danger-red);
    background: rgba(220, 53, 69, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    margin-top: 0.5rem;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Status Indicator */
.status-indicator {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    animation: pulse 2s infinite;
}

.status-pending {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-yellow);
    border-color: rgba(255, 193, 7, 0.3);
}

.status-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-green);
    border-color: rgba(40, 167, 69, 0.3);
    animation: none;
}

.status-failed {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-red);
    border-color: rgba(220, 53, 69, 0.3);
    animation: none;
}

/* Instructions */
.payment-instructions {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    border-left: 3px solid var(--primary-red);
}

.payment-instructions h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.payment-instructions ol {
    padding-left: 1.5rem;
    margin: 0;
}

.payment-instructions li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    position: relative;
}

.payment-instructions li::marker {
    color: var(--primary-red);
    font-weight: bold;
}
#payment-amount{
    color: var(--danger-red);
    font-size:  2.1rem;;
}
.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: var(--warning-yellow);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* Payment Actions */
.payment-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.payment-actions .btn {
    min-width: 160px;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Supported Networks */
.supported-networks {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px var(--shadow-red);
    margin-top: 3rem;
}

.supported-networks h2 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 0.75rem;
}

.supported-networks h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-red);
}

.network-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.network-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-red);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.network-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.15);
}

.network-card:hover::before {
    opacity: 1;
}

.network-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

.network-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.network-card li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.network-card li:last-child {
    border-bottom: none;
}

.network-card li::before {
    content: '✓';
    color: var(--primary-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Buttons - Updated to match account.css */
.btn {
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    letter-spacing: -0.01em;
    min-width: 160px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: var(--primary-red);
    color: white;
    border: 1px solid var(--primary-red-hover);
}

.btn-primary:hover {
    background: var(--primary-red-hover);
}

.btn-secondary {
    background: #333;
    color: #ffffff;
    border: 1px solid #444;
}

.btn-secondary:hover {
    background: #444;
    border-color: #555;
}

.btn-success {
    background: var(--success-green);
    color: white;
    border: 1px solid #218838;
}

.btn-success:hover {
    background: #218838;
}

.btn-info {
    background: var(--info-blue);
    color: white;
    border: 1px solid #138496;
}

.btn-info:hover {
    background: #138496;
}

.btn-danger {
    background: #333;
    color: #ff4444;
    border: 1px solid #444;
}

.btn-danger:hover {
    background: #444;
    color: #ff6666;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        max-width: 95%;
        padding: 0 1rem;
    }

    .token-selector {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        margin: 1rem auto;
    }

    .payment-header h1 {
        font-size: 2rem;
    }

    .payment-form,
    .payment-container,
    .supported-networks {
        padding: 1.5rem;
    }

    .qr-code-img {
        max-width: 220px;
    }

    .payment-actions {
        flex-direction: column;
        align-items: center;
    }

    .payment-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .token-selector {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .btn {
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.75rem;
    }

    .payment-header h1 {
        font-size: 1.7rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .payment-form,
    .payment-container,
    .supported-networks {
        padding: 1.25rem 1rem;
    }

    .qr-code-img {
        max-width: 200px;
    }

    .token-selector {
        grid-template-columns: 1fr 1fr;
    }

    .info-item code,
    .info-item span {
        font-size: 0.9rem;
    }

    .countdown-timer {
        font-size: 1.5rem;
    }
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
    .qr-code-wrapper {
        background: #2a2a2a;
        border-color: #444;
    }

    .payment-instructions {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-red);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success animation */
@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
}

.status-success {
    animation: successPulse 2s ease-in-out infinite;
}

/* Notification styles for JavaScript */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
.row{
    align-items: center;
    align-content: center;
    justify-content: space-around;
}
