:root {
    --primary: #2ECC71; /* Green */
    --primary-dark: #27AE60;
    --secondary: #F1C40F; /* Gold */
    --bg-dark: #0f171e;
    --text-main: #FFFFFF;
    --text-muted: #A0AAB2;
    --card-bg: rgba(15, 23, 30, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --gold: #FFD700;
    --gem: #00FFCC;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use a high quality golf course background */
    background: url('https://blog.en.uptodown.com/files/2018/04/golf-clash-bafta-featured.jpg') center/cover no-repeat;
    z-index: -1;
    filter: brightness(0.4) contrast(1.1);
}

.bg-layer::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15,23,30,0.2) 0%, rgba(15,23,30,0.9) 100%);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    min-height: 100vh;
    justify-content: center;
}

/* Header */
header {
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

.main-logo {
    max-width: 120px;
    height: auto;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 2px solid var(--border-color);
}

.subtitle {
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Glass Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
}

.step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step.active {
    display: block;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-align: center;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Step 1 Inputs */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

input[type="text"] {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px 15px 15px 45px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.3);
}

.platform-selection {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.platform-btn {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.platform-btn.active {
    background: rgba(46, 204, 113, 0.2);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
}

/* Action Button */
.action-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(46, 204, 113, 0.4);
}

.action-btn:active {
    transform: translateY(1px);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Step 2 Resources */
.resource-selector {
    margin-bottom: 30px;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.resource-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.res-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.res-icon.coins { background: rgba(241, 196, 15, 0.2); color: var(--gold); }
.res-icon.gems { background: rgba(0, 255, 204, 0.2); color: var(--gem); }

.res-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.res-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 15px 0;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 10px var(--primary);
}

/* Step 3 Console */
.console-box {
    background: #000;
    border-radius: 10px;
    padding: 15px;
    height: 200px;
    overflow-y: hidden;
    font-family: monospace;
    font-size: 0.9rem;
    color: #0f0;
    margin-bottom: 20px;
    border: 1px solid #333;
    position: relative;
}

.console-box::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50px;
    background: linear-gradient(to top, #000, transparent);
}

#console-output {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

#console-output li {
    margin-bottom: 5px;
    animation: typeIn 0.2s ease-out;
}

.progress-container {
    width: 100%;
    height: 15px;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 15px 15px;
    animation: moveStripes 1s linear infinite;
}

/* Step 4 Verification */
.verification-header {
    text-align: center;
    margin-bottom: 20px;
}

.shield-icon {
    font-size: 3.5rem;
    color: #E74C3C;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.verify-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.generated-summary {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.05);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-item .coins { color: var(--gold); }
.summary-item .gems { color: var(--gem); }

.verify-btn {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.verify-btn:hover {
    box-shadow: 0 15px 25px rgba(231, 76, 60, 0.4);
}

.secure-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 15px;
}

/* Live Activity */
.live-activity {
    padding: 20px;
}

.live-activity h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-feed {
    height: 150px;
    overflow: hidden;
    position: relative;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    animation: slideInUp 0.4s ease-out;
}

.activity-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
}

.act-details {
    flex: 1;
}

.act-user {
    font-weight: 600;
    font-size: 0.9rem;
}

.act-res {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: bold;
}

.act-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes shimmer {
    100% { left: 100%; }
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes moveStripes {
    0% { background-position: 0 0; }
    100% { background-position: 15px 0; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

/* Responsive */
@media (max-width: 480px) {
    .container { padding: 15px; }
    .main-logo { max-width: 100px; }
    .glass-card { padding: 20px; }
}
