:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --surface: #f8f9fa;
    --card-shadow: 0 2px 12px rgba(0,0,0,.08);
}

body { background: var(--surface); font-family: 'Inter', system-ui, sans-serif; }

/* Navbar */
.gp-navbar {
    background: #fff;
    box-shadow: 0 1px 8px rgba(0,0,0,.08);
    padding: 0 1rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.gp-brand { font-size: 1.3rem; font-weight: 700; color: var(--primary); text-decoration: none; letter-spacing: -.5px; }
.gp-brand span { color: #f59e0b; }
.gp-nav-actions a { font-size: 0.88rem; }

/* Hero */
.gp-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: #fff;
    text-align: center;
    padding: 3rem 1rem 2.5rem;
}
.gp-hero h1 { font-size: 1.9rem; font-weight: 700; margin-bottom: .5rem; }
.gp-hero p { opacity: .85; font-size: 1rem; margin: 0; }

/* Game Cards */
.gp-section { padding: 2rem 0 3rem; }
.gp-section-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.25rem; color: #374151; }
.game-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.game-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.13); color: inherit; }
.game-card-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.game-card-body { padding: 1rem; }
.game-card-name { font-weight: 600; font-size: .95rem; margin-bottom: .2rem; }
.game-card-currency { font-size: .78rem; color: #6b7280; }
.game-card-badge { font-size: .7rem; background: #ede9fe; color: var(--primary); border-radius: 4px; padding: 2px 6px; }

/* Package Cards */
.pkg-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: #fff;
}
.pkg-card:hover { border-color: var(--primary); }
.pkg-card.selected { border-color: var(--primary); background: #ede9fe; }
.pkg-card-amount { font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.pkg-card-price { font-size: .85rem; color: #374151; }

/* Order Box */
.gp-order-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
}

/* Transfer Box */
.transfer-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 1.25rem;
}
.transfer-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; font-size: .9rem; }
.transfer-row:last-child { margin-bottom: 0; }
.transfer-label { color: #6b7280; }
.transfer-value { font-weight: 600; }
.copy-btn { background: none; border: none; color: var(--primary); cursor: pointer; padding: 2px 6px; font-size: .8rem; }
.copy-btn:hover { text-decoration: underline; }

/* Btn */
.btn-primary-gp {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .65rem 1.5rem;
    font-size: .92rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background .15s;
}
.btn-primary-gp:hover:not(:disabled) { background: var(--primary-hover); }
.btn-primary-gp:disabled { opacity: .6; cursor: not-allowed; }

/* Status Badge */
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 500; }
.status-pending  { background: #fef9c3; color: #854d0e; }
.status-paid     { background: #dcfce7; color: #166534; }
.status-cancelled{ background: #fee2e2; color: #991b1b; }

/* Toast */
.gp-toast-wrap { position: fixed; top: 1rem; right: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.gp-toast {
    background: #1f2937;
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 8px;
    font-size: .88rem;
    min-width: 220px;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    animation: slideIn .2s ease;
}
.gp-toast.success { border-left: 4px solid #22c55e; }
.gp-toast.error   { border-left: 4px solid #ef4444; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Spinner overlay */
.gp-loading { display: flex; align-items: center; justify-content: center; min-height: 160px; }
.spinner { width: 36px; height: 36px; border: 3px solid #e5e7eb; border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.gp-footer { background: #1f2937; color: #9ca3af; text-align: center; padding: 1.25rem; font-size: .82rem; margin-top: auto; }

/* Responsive */
@media (max-width: 576px) {
    .gp-hero h1 { font-size: 1.5rem; }
}
