:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-color: #f1f5f9;
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --border-color: rgba(148, 163, 184, 0.2);
    --input-bg: rgba(15, 23, 42, 0.6);
}

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

body {
    background: linear-gradient(to bottom, #0f172a, #1e1b4b);
    color: var(--text-color);
    font-size: 14px;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Meteor Animation */
.meteor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.meteor-container span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 1);
    animation: meteor 3s linear infinite;
}

.meteor-container span::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

@keyframes meteor {
    0% {
        transform: rotate(215deg) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(215deg) translateX(-1000px);
        opacity: 0;
    }
}

.meteor-container span:nth-child(1) { top: 0; right: 0; left: initial; animation-delay: 0s; animation-duration: 1s; }
.meteor-container span:nth-child(2) { top: 0; right: 80px; left: initial; animation-delay: 0.2s; animation-duration: 3s; }
.meteor-container span:nth-child(3) { top: 80px; right: 0; left: initial; animation-delay: 0.4s; animation-duration: 2s; }
.meteor-container span:nth-child(4) { top: 0; right: 180px; left: initial; animation-delay: 0.6s; animation-duration: 1.5s; }
.meteor-container span:nth-child(5) { top: 0; right: 400px; left: initial; animation-delay: 0.8s; animation-duration: 2.5s; }
.meteor-container span:nth-child(6) { top: 0; right: 600px; left: initial; animation-delay: 1s; animation-duration: 3s; }
.meteor-container span:nth-child(7) { top: 300px; right: 0; left: initial; animation-delay: 1.2s; animation-duration: 1.75s; }
.meteor-container span:nth-child(8) { top: 0; right: 700px; left: initial; animation-delay: 1.4s; animation-duration: 1.25s; }
.meteor-container span:nth-child(9) { top: 0; right: 900px; left: initial; animation-delay: 0.75s; animation-duration: 2.25s; }
.meteor-container span:nth-child(10) { top: 0; right: 450px; left: initial; animation-delay: 2.75s; animation-duration: 2.25s; }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.menu-icon {
    font-size: 1.5rem;
    color: #cbd5e0;
    cursor: pointer;
    transition: color 0.3s;
}

.menu-icon:hover {
    color: #fff;
}

.nav-controls {
    display: flex;
    align-items: center;
}

.menu-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 15px;
    background: transparent;
    border: none;
    color: #cbd5e0;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    text-align: left;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.menu-item i {
    width: 20px;
    color: #ef4444;
}

.menu-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.2);
    margin: 5px 0;
}

.menu-item-form {
    padding: 10px 15px;
    color: #cbd5e0;
    font-size: 0.85rem;
}

.menu-item-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.input-group-sm {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    padding: 4px 8px;
}

.currency-symbol {
    color: #94a3b8;
    margin-right: 5px;
    font-weight: 600;
}

.form-input-sm {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.recording-controls {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 999;
    border: 1px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.recording-controls.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.blink-dot {
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.btn-stop-record {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-stop-record:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.container {
    padding: 20px;
    max-width: 480px; /* Mobile width constraint */
    margin: 0 auto;
    padding-bottom: 60px;
    position: relative;
    z-index: 1;
}

.game-header {
    text-align: center;
    margin: 30px 0 40px;
    position: relative;
}

.game-header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    z-index: -1;
    filter: blur(20px);
}

.game-logo {
    width: 250px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    background-color: transparent;
    padding: 0;
    filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.game-logo:hover {
    transform: rotate(0deg) scale(1.05);
}

.game-title h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.game-title p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.section-title {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #cbd5e0;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    margin-right: 10px;
    border-radius: 2px;
}

.card {
    background-color: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(to right, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border-bottom: 1px solid var(--border-color);
}

.step-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 15px;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5);
}

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f8fafc;
}

.card-body {
    padding: 25px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: white;
    font-size: 1rem;
    margin-bottom: 8px;
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background-color: rgba(30, 41, 59, 0.8);
}

.helper-text {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 8px;
    margin-left: 5px;
}

.grid-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.option-item {
    background-color: var(--input-bg);
    padding: 10px 5px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #cbd5e0;
    min-height: 80px;
}

.option-item:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.option-item.selected {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

.robux-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.6);
}

.btn-icon-robux {
    width: 24px;
    height: 24px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1e293b;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header i {
    font-size: 1.5rem;
    color: #f59e0b;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
    color: #cbd5e0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.highlight {
    color: #38bdf8;
    font-weight: 600;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    justify-content: flex-end;
}

.btn-close {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
    width: 100%;
}

.btn-close:hover {
    background: rgba(148, 163, 184, 0.1);
    color: white;
}

/* Custom Select Style */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.8em auto;
    cursor: pointer;
}

select.form-input option {
    background-color: #1e293b;
    color: white;
    padding: 10px;
}