/* Software Everything - 4D Studio Dark & Grey Theme */
:root {
    --bg-dark: #0f1115;
    --bg-card: #181b21;
    --bg-card-alt: #1e222a;
    --bg-input: #121419;
    --border-color: #2b303c;
    --border-focus: #3b82f6;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #60a5fa;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    color: var(--text-main);
}

.nav-logo-img {
    height: 38px;
    width: 38px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card-alt);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #282d38;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.25;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-desc {
    max-width: 680px;
    margin: 0 auto 36px;
    color: var(--text-muted);
    font-size: 1.15rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    max-width: 700px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-alt {
    background: #14161c;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 1.05rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-focus);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-info { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s;
}

.price-card:hover {
    border-color: var(--accent);
}

.price-card.popular {
    border-color: var(--primary);
    background: linear-gradient(180deg, #1f2533, #181b21);
    transform: scale(1.02);
}

.popular-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.price-header h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.price-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.price-val {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
}

.price-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.price-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Download Box */
.download-box {
    background: linear-gradient(135deg, #181b21, #1e222a);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.download-info h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.download-info p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.download-notes {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--warning);
    padding: 8px 12px;
    border-radius: 4px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.modal-lg {
    max-width: 900px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
}

.close-btn:hover {
    color: var(--text-main);
}

.modal-sub {
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.input-control {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-control:focus {
    border-color: var(--border-focus);
}

/* QR Code */
.qr-container {
    text-align: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.qr-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.qr-box {
    background: white;
    padding: 12px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 12px;
}

.qr-box img {
    width: 180px;
    height: 180px;
    display: block;
}

.qr-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #10b981;
}

.qr-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Spinner & Success State */
.modal-state {
    text-align: center;
    padding: 30px 10px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.success-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.key-card {
    background: #111827;
    border: 1px dashed #3b82f6;
    border-radius: 10px;
    padding: 16px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.key-display {
    font-family: monospace;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #60a5fa;
}

.key-help {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-align: left;
}

/* Admin Dashboard Table */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.admin-box h4 {
    margin-bottom: 12px;
}

.admin-create-row {
    display: flex;
    gap: 12px;
}

.admin-create-row select {
    width: 180px;
}

.table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-table th, .admin-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-input);
    color: var(--text-muted);
}
