:root {
    --bg-main: #07090e;
    --bg-card: #0d121c;
    --bg-card-hover: #121927;
    --border-color: rgba(0, 240, 255, 0.22);
    --border-hover: #00f0ff;
    --cyan: #00f0ff;
    --cyan-glow: rgba(0, 240, 255, 0.35);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --green: #22c55e;
    --red: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.glow-bg {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(13, 18, 28, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 28px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background-color: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.logo-title {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1.5px;
    color: var(--cyan);
    text-shadow: 0 0 12px var(--cyan-glow);
}

.badge-status {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--cyan);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.hero-section {
    text-align: center;
    margin-bottom: 32px;
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    letter-spacing: -0.5px;
}

.hero-title span {
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 620px;
    margin: 0 auto;
}

.marquee-bar {
    background: rgba(13, 18, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.marquee-tag {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: var(--green);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 10px;
    white-space: nowrap;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.tool-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 240, 255, 0.18);
}

.tool-card.selected {
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.tool-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.tool-logo-img {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 240, 255, 0.35);
    object-fit: cover;
    background: #000;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
    flex-shrink: 0;
}

.tool-meta h3 {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.tool-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tool-logo-fallback {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 240, 255, 0.35);
    background: #0d121c;
    color: var(--cyan);
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
    flex-shrink: 0;
}

.tool-desc-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

.tool-features {
    list-style: none;
    margin-bottom: 18px;
    flex: 1;
}

.tool-features li {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tool-features li::before {
    content: "•";
    color: var(--cyan);
    font-weight: bold;
}

.btn-getkey {
    width: 100%;
    background: linear-gradient(135deg, #0284c7 0%, #00f0ff 100%);
    color: #000;
    font-weight: 800;
    font-size: 13px;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.btn-getkey:hover {
    box-shadow: 0 0 18px var(--cyan-glow);
    transform: scale(1.02);
}

.btn-getkey:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.steps-section {
    background: rgba(13, 18, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}

.steps-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.step-box {
    background: rgba(18, 24, 38, 0.6);
    border-left: 3px solid var(--cyan);
    padding: 12px 14px;
    border-radius: 0 8px 8px 0;
}

.step-num {
    font-size: 11px;
    font-weight: 800;
    color: var(--cyan);
    margin-bottom: 4px;
}

.step-box p {
    font-size: 12px;
    color: var(--text-secondary);
}

.result-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin-bottom: 32px;
}

.card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    max-width: 580px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.card-error {
    border-color: rgba(239, 68, 68, 0.5);
}

.card-success {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.2);
}

.card-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
}

.card-icon-box.success {
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid var(--green);
    color: var(--green);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.card-icon-box.error {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid var(--red);
    color: var(--red);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.card-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.text-cyan { color: var(--cyan); }
.text-green { color: var(--green); }
.text-danger { color: var(--red); }

.card-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
}

.key-display-box {
    display: flex;
    background: #06090e;
    border: 1.5px solid var(--cyan);
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 20px;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.key-display-box input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    padding: 8px 12px;
    width: 100%;
    outline: none;
    letter-spacing: 1px;
}

.btn-copy {
    background: var(--cyan);
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #38bdf8;
    box-shadow: 0 0 10px var(--cyan);
}

.key-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.info-item {
    background: rgba(18, 24, 38, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 8px;
}

.info-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.info-value {
    font-size: 12px;
    font-weight: 700;
}

.guide-box {
    background: rgba(13, 18, 28, 0.7);
    border-left: 3px solid var(--cyan);
    border-radius: 0 8px 8px 0;
    padding: 14px;
    text-align: left;
    margin-bottom: 24px;
}

.guide-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--cyan);
    margin-bottom: 6px;
}

.guide-list {
    margin-left: 18px;
    font-size: 12px;
    color: var(--text-secondary);
}

.guide-list li {
    margin-bottom: 4px;
}

.meta-row {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    justify-content: space-around;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.meta-row b { color: var(--text-primary); }

.action-row {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--cyan);
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 0 16px var(--cyan);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.site-footer {
    text-align: center;
    padding: 20px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: var(--text-muted);
}

.site-footer .copyright {
    margin-top: 4px;
    font-size: 11px;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #0c1018;
    border: 1.5px solid var(--cyan);
    box-shadow: 0 0 35px var(--cyan-glow);
    border-radius: 14px;
    padding: 28px;
    max-width: 440px;
    width: 90%;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 240, 255, 0.2);
    border-top-color: var(--cyan);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

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

@media (max-width: 600px) {
    .site-header { flex-direction: column; gap: 10px; text-align: center; }
    .hero-title { font-size: 20px; }
    .key-info-grid { grid-template-columns: 1fr; }
}
