/*
 * ARCHIE TECH NEXUS - MASTERPIECE THEME
 * =====================================
 * Theme: Penguin Empire (Dark, Glassmorphism, Neon Blue)
 * Author: Archie Tech (via Gemini)
 * Date: 2026
 */

:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #38bdf8; /* Sky Blue (Penguin) */
    --primary-glow: rgba(56, 189, 248, 0.5);
    --secondary: #818cf8; /* Indigo */
    --accent: #f472b6; /* Pink/Rose */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(129, 140, 248, 0.1) 0%, transparent 40%);
}

/* Background Animation */
.penguin-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 100 100' fill='%2338bdf8'%3E%3Cpath d='M50 0C22.4 0 0 22.4 0 50s22.4 50 50 50 50-22.4 50-50S77.6 0 50 0zm0 90c-22.1 0-40-17.9-40-40S27.9 10 50 10s40 17.9 40 40-17.9 40-40 40z' opacity='0.05'/%3E%3C/svg%3E");
    background-repeat: repeat;
    animation: slideBg 60s linear infinite;
}

@keyframes slideBg {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.logo i {
    font-size: 2rem;
    animation: wobble 3s infinite ease-in-out;
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.btn-nav {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-nav:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border);
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px 0 rgba(56, 189, 248, 0.15);
}

/* Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Styles */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input, select {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.method-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.method-option:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.method-option.active {
    opacity: 1;
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.method-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(56, 189, 248, 0.4);
}

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

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Trust Badges */
.trust-badges {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0.6;
    filter: stdDeviation(0.5);
}

.trust-badges img {
    height: 24px;
    object-fit: contain;
}

/* Footer Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    background: rgba(255,255,255,0.03);
    border-radius: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid var(--glass-border);
}

.btn-link i {
    margin-right: 0.5rem;
}

.btn-link:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-main);
    border-color: var(--primary);
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.2);
}

/* Status Modal */
.status-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--primary);
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.2);
    z-index: 100;
    text-align: center;
    max-width: 400px;
    width: 90%;
    display: none;
}

.status-modal.active {
    display: block;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

/* Helper Text */
.helper-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Custom Payment Button (Link to separate page) */
.custom-service-section {
    margin: 1.5rem 0;
    text-align: center;
}

.btn-custom-service {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(244, 114, 182, 0.2) 100%);
    border: 2px dashed var(--secondary);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.btn-custom-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(244, 114, 182, 0.3) 100%);
    border-style: solid;
}

.btn-custom-service i:last-child {
    transition: transform 0.3s ease;
}

.btn-custom-service:hover i:last-child {
    transform: translateX(5px);
}

.custom-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.custom-amount-wrapper {
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid var(--secondary);
    border-radius: 1rem;
    padding: 1rem;
    margin: 1rem 0;
    animation: slideIn 0.3s ease;
}

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

.btn-cancel-custom {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
}

.btn-cancel-custom:hover {
    background: var(--danger);
    color: white;
}
