/* ======================================================================================
        SN DEVELOPER STOREFRONT - CUSTOM VANILLA CSS DESIGN SYSTEM (ORANGE THEME)
        ====================================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Aldrich&display=swap');

/* Variables & Base Styles */
:root {
    --bg-color: #1a1b1e;
    --bg-darker: #121316;
    --card-bg: rgba(36, 37, 44, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    /* Cyber Neon Colors */
    --neon-cyan: #0099FF; /* Cyber Blue Accent (Lighter/Softer) */
    --neon-purple: #bc34fa;
    --neon-green: #00ff88; /* Green Accent */
    --neon-yellow: #f59e0b;
    --accent-blue: #0077CC; /* Cyber Blue Dark (Sky 600) */
    
    /* Glow Effects */
    --glow-cyan: 0 0 15px rgba(0, 153, 255, 0.35);
    --glow-purple: 0 0 15px rgba(188, 52, 250, 0.35);
    --glow-green: 0 0 15px rgba(0, 255, 136, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Aldrich', 'Kanit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .brand-font {
    font-family: 'Aldrich', 'Kanit', sans-serif;
    letter-spacing: 0.05em;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-red {
    background: linear-gradient(135deg, #ffffff 40%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

/* Layout Elements */
header {
    background-color: rgba(18, 19, 22, 0.75);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-badge {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-cyan);
}

.logo-badge i {
    color: #fff;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--neon-cyan);
    background-color: rgba(0, 240, 255, 0.05);
}

/* Hero Section */
.hero {
    padding: 5rem 2rem 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 500px;
    height: 250px;
    background: radial-gradient(circle, rgba(188, 52, 250, 0.15) 0%, rgba(0, 240, 255, 0.05) 50%, transparent 100%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.hero h2 {
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

/* Glassmorphism Containers */
.glassmorphism {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

/* Grid & Cards */
.catalog-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 5rem 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--neon-cyan), var(--neon-purple));
    border-radius: 2px;
}

.grid-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.script-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.script-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.05);
}

.card-glow-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 80%);
    pointer-events: none;
}

.card-badge {
    align-self: flex-start;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.badge-cyan {
    background-color: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.badge-purple {
    background-color: rgba(188, 52, 250, 0.1);
    color: var(--neon-purple);
    border: 1px solid rgba(188, 52, 250, 0.2);
}

.card-image-placeholder {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    background: linear-gradient(135deg, #101625, #080b12);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.02);
    overflow: hidden;
    position: relative;
}

.card-image-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
    transition: transform 0.4s ease;
}

.script-card:hover .card-image-placeholder i {
    transform: scale(1.15) rotate(-5deg);
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.card-image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(6, 9, 14, 0.8) 100%);
}

.script-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.script-card p.description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.price-tag {
    font-family: 'Aldrich', 'Kanit', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.25);
}

.price-currency {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 0.25rem;
    font-family: 'Aldrich', 'Kanit', sans-serif;
    font-weight: 500;
}

/* Custom Buttons */
.btn {
    font-family: 'Aldrich', 'Kanit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.btn-cyan {
    background: linear-gradient(135deg, var(--neon-cyan), var(--accent-blue));
    color: #ffffff;
    box-shadow: var(--glow-cyan);
}

.btn-cyan:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}

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

.btn-outline {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--text-secondary);
    color: #fff;
}

.btn-disabled {
    background-color: #1e293b !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: rgba(3, 5, 8, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    width: 100%;
    max-width: 500px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

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

.modal-header {
    background-color: var(--bg-darker);
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.15rem;
    color: #fff;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 1.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    outline: none;
}

.form-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.form-input::placeholder {
    color: #334155;
}

/* Checkout Success State */
.success-screen {
    text-align: center;
}

.success-icon-container {
    width: 64px;
    height: 64px;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: var(--glow-green);
    color: var(--neon-green);
}

.success-screen h4 {
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.success-screen p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.result-box {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.result-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.result-row:last-child {
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
}

.result-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.result-value {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.result-value.key-value {
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

/* Copy Action */
.copy-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy-mini {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-mini:hover {
    background-color: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
}

.setup-guide-box {
    background-color: rgba(188, 52, 250, 0.05);
    border: 1px solid rgba(188, 52, 250, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.setup-guide-box strong {
    color: #fff;
}

.code-snippet {
    background-color: var(--bg-darker);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    color: var(--neon-purple);
    font-family: monospace;
    font-size: 0.75rem;
    display: block;
    margin-top: 0.25rem;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

/* Features Grid */
.features-section {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 2rem;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    text-align: center;
}

.feature-icon-wrapper {
    width: 54px;
    height: 54px;
    background-color: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    color: var(--neon-cyan);
}

.feature-item h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Toast System */
#shop-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

#shop-toast.active {
    transform: translateX(0);
}

.toast-success {
    background-color: rgba(16, 185, 129, 0.95);
    color: #fff;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.toast-error {
    background-color: rgba(244, 63, 94, 0.95);
    color: #fff;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

/* Footer styling */
footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 2rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    .nav-links {
        display: none; /* simple responsive fallback */
    }
    .hero h2 {
        font-size: 2rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Discord OAuth & Personal Dashboard Styling */
.btn-discord {
    background-color: #5865F2 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.3) !important;
    border-radius: 50px !important;
    transition: all 0.25s ease !important;
}

.btn-discord:hover {
    background-color: #4752c4 !important;
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.5) !important;
    transform: translateY(-2px);
}

.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 0.25rem 0.85rem 0.25rem 0.25rem;
}

.user-avatar-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--neon-purple);
    object-fit: cover;
}

.user-details-nav {
    display: flex;
    flex-direction: column;
}

.user-name-nav {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.user-logout-nav {
    font-size: 0.65rem;
    color: var(--neon-purple);
    text-decoration: none;
    font-weight: 500;
    text-align: left;
}

.user-logout-nav:hover {
    text-decoration: underline;
    color: #ff3366;
}

/* Personal Licenses Section */
.personal-licenses-section {
    max-width: 1200px;
    margin: 0 auto 5rem auto;
    padding: 0 2rem;
}

.personal-keys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.personal-key-card {
    padding: 1.25rem;
    border: 1px solid rgba(188, 52, 250, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.personal-key-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-purple), var(--neon-cyan));
}

.personal-key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.personal-key-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.personal-key-row {
    display: flex;
    justify-content: space-between;
}

.personal-key-label {
    color: var(--text-secondary);
}

.personal-key-value {
    color: #fff;
    font-weight: 600;
}

.personal-key-value.key {
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
}

.personal-key-actions {
    display: flex;
    gap: 0.5rem;
}

/* Helper Utilities */
.hidden {
    display: none !important;
}

