/* ================================================
   TaskinShop – Main Store Stylesheet
   Dark Glass Premium Design
   ================================================ */

:root {
    --accent: #8B5CF6;
    --accent-glow: #8B5CF655;
    --bg: #080910;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #f1f5f9;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --success: #10b981;
    --error: #f43f5e;
    --warning: #f59e0b;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── HEADER ──────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 9, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.brand-icon {
    font-size: 24px;
}

.brand-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}

/* ── ANNOUNCEMENT ─────────────────────────── */
.announcement {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.15));
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    color: #c4b5fd;
}

/* ── HERO ────────────────────────────────── */
.hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -200px;
    left: -150px;
    animation: float1 8s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #6366f1;
    bottom: -150px;
    right: -100px;
    animation: float2 10s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #06b6d4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.12;
    animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 20px) scale(1.05); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -30px) scale(1.03); }
}
@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-48%, -52%) scale(1.1); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease both;
}

.hero-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.6s 0.1s ease both;
}

.hero-sub {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 500px;
    margin-bottom: 48px;
    animation: fadeInDown 0.6s 0.2s ease both;
}

/* ── KEY CARD ─────────────────────────────── */
.key-card {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
    animation: fadeInUp 0.7s 0.3s ease both;
}

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

.key-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 14px;
}

.key-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.key-card-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

.key-input-wrap {
    display: flex;
    gap: 10px;
}

.key-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text);
    font-size: 15px;
    font-family: 'Inter', monospace;
    font-weight: 500;
    letter-spacing: 1px;
    outline: none;
    transition: all 0.25s;
}

.key-input::placeholder {
    color: #475569;
    letter-spacing: 2px;
}

.key-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(0, 0, 0, 0.5);
}

.key-input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2);
}

.key-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.key-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

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

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

.key-btn.loading .btn-text::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

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

.key-error {
    font-size: 13px;
    color: var(--error);
    margin-top: 12px;
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── RESULT CARD ──────────────────────────── */
.result-card {
    width: 100%;
    max-width: 600px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    animation: fadeInUp 0.5s ease both;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(16, 185, 129, 0.1);
}

.result-header {
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(16, 185, 129, 0.08);
}

.result-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--success);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-category::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--success);
    border-radius: 50%;
    font-size: 10px;
    color: #fff;
}

.result-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.result-body {
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.result-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.result-info {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px 18px;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.9;
    word-break: break-all;
    white-space: pre-wrap;
}

.result-notes {
    padding: 16px 28px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.result-notes-text {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.7;
    background: rgba(245, 158, 11, 0.07);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
}

.result-actions {
    padding: 16px 28px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
}

.copy-btn {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
}

.copy-btn:hover {
    background: rgba(139, 92, 246, 0.25);
}

.copy-btn.copied {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.result-uses {
    padding: 0 28px 18px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ── CATEGORIES SECTION ───────────────────── */
.categories-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}

.section-sub {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.cat-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    cursor: default;
    overflow: hidden;
    transition: all 0.3s;
}

.cat-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.cat-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: inherit;
}

.cat-card:hover .cat-glow {
    opacity: 1;
}

.cat-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.cat-initial {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    margin: 0 auto 10px;
    position: relative;
    z-index: 1;
}

.cat-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    position: relative;
    z-index: 1;
}

.cat-badge.cat-empty {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
}

.cat-dot {
    width: 5px;
    height: 5px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

/* ── HOW IT WORKS ─────────────────────────── */
.how-section {
    padding: 60px 0 80px;
    background: rgba(255,255,255,0.015);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 240px;
    transition: all 0.3s;
}

.step-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-3px);
}

.step-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
}

.step-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.step-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-arrow {
    font-size: 22px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ── FOOTER ──────────────────────────────── */
.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
}

.footer-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── TOAST ──────────────────────────────── */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e2235;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    z-index: 9999;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── ANIMATIONS ──────────────────────────── */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 50px 0 70px; }
    .hero-sub { font-size: 15px; }
    .key-input-wrap { flex-direction: column; }
    .key-btn { width: 100%; justify-content: center; }
    .step-arrow { display: none; }
    .steps-grid { flex-direction: column; align-items: stretch; }
    .step-card { max-width: 100%; }
    .header-badge { font-size: 11px; padding: 5px 10px; }
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .key-card { padding: 20px; }
    .result-header, .result-body, .result-actions { padding-left: 18px; padding-right: 18px; }
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
