/* public/assets/css/style.css */
:root {
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --dark-bg: #0f0f23;
            --card-bg: #1a1a2e;
            --accent-blue: #4f46e5;
            --accent-purple: #9333ea;
            --text-primary: #e2e8f0;
            --text-secondary: #94a3b8;
            --success-green: #10b981;
            --warning-orange: #f59e0b;
            --error-red: #ef4444;
        }
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
 body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--dark-bg);
            color: var(--text-primary);
            line-height: 1.6;
        }
body.ai-dark {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 40%, #000 100%);
    color: #e5e7eb;
    min-height: 100vh;
}

a {
    color: #38bdf8;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 80px auto 40px;
    padding: 0 16px;
}

/* Top nav */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(15,23,42,0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid rgba(148,163,184,0.3);
    z-index: 50;
}

.top-nav .logo {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e5e7eb;
}
.top-nav .logo span {
    color: #22c55e;
}

.top-nav nav a {
    margin-left: 18px;
    font-size: 14px;
    color: #cbd5f5;
}
.top-nav nav a:hover {
    color: #ffffff;
}

/* Alerts */

.alert {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.5);
    color: #fecaca;
}
.alert-success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.5);
    color: #bbf7d0;
}
  /* Header Styles */
        header {
            background: rgba(26, 26, 46, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
            padding: 1rem 0;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
            align-items: center;
        }

        nav a {
            color: var(--text-primary);
            text-decoration: none;
            transition: color 0.3s;
            font-weight: 500;
        }

        nav a:hover {
            color: var(--accent-blue);
        }

        .btn {
            padding: 0.7rem 1.5rem;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
        }

        .btn-primary {
            background: var(--primary-gradient);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
        }

        .btn-secondary {
            background: transparent;
            border: 2px solid var(--accent-blue);
            color: var(--accent-blue);
        }

        .btn-secondary:hover {
            background: var(--accent-blue);
            color: white;
        }

 /* Hero Section */
        .hero {
            padding: 5rem 0;
            text-align: center;
            background: radial-gradient(circle at 50% 0%, rgba(102, 126, 234, 0.15), transparent 50%);
        }

        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero p {
            font-size: 1.3rem;
            color: var(--text-secondary);
            max-width: 700px;
            margin: 0 auto 2rem;
        }

        .search-bar {
            max-width: 600px;
            margin: 2rem auto;
            position: relative;
        }

        .search-bar input {
            width: 100%;
            padding: 1rem 3rem 1rem 1.5rem;
            background: var(--card-bg);
            border: 2px solid rgba(102, 126, 234, 0.3);
            border-radius: 12px;
            color: var(--text-primary);
            font-size: 1rem;
        }

        .search-bar input:focus {
            outline: none;
            border-color: var(--accent-blue);
        }

        .search-bar button {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--primary-gradient);
            border: none;
            padding: 0.7rem 1.5rem;
            border-radius: 8px;
            color: white;
            cursor: pointer;
        }

/* Buttons */

.btn,
.btn-primary {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    background: #1f2937;
    color: #e5e7eb;
}
.btn-primary {
    background: linear-gradient(135deg,#22c55e,#38bdf8);
    color: #020617;
}
.btn:hover,
.btn-primary:hover {
    opacity: 0.9;
}

/* Cards / grids */
/* App Cards Grid */
        .apps-section {
            padding: 4rem 0;
        }

        .section-title {
            font-size: 2.5rem;
            margin-bottom: 2rem;
            text-align: center;
        }

        .apps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .app-card {
            background: var(--card-bg);
            border-radius: 16px;
            padding: 1.5rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s;
            cursor: pointer;
        }

        .app-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent-blue);
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
        }

        .app-icon {
            width: 80px;
            height: 80px;
            background: var(--primary-gradient);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            margin-bottom: 1rem;
        }

        .app-title {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
        }

        .app-description {
            color: var(--text-secondary);
            margin-bottom: 1rem;
            font-size: 0.95rem;
        }

        .app-price {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--accent-blue);
            margin: 1rem 0;
        }

        .app-links {
            display: flex;
            gap: 1rem;
            margin: 1rem 0;
        }

        .app-links a {
            flex: 1;
            text-align: center;
            padding: 0.5rem;
            background: rgba(79, 70, 229, 0.2);
            border-radius: 8px;
            color: var(--accent-blue);
            text-decoration: none;
            font-size: 0.9rem;
        }

        .app-links a:hover {
            background: var(--accent-blue);
            color: white;
        }

        .card-actions {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .card-actions button {
            flex: 1;
        }
/* App detail */

.app-detail {
    background: radial-gradient(circle at top,#020617,#0b1120);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(148,163,184,0.3);
}
.app-detail .tagline {
    color: #9ca3af;
    margin-bottom: 8px;
}
.app-detail .meta a {
    margin-right: 10px;
    font-size: 13px;
}
.app-detail .price-box {
    margin: 16px 0;
    padding: 12px;
    border-radius: 10px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(59,130,246,0.4);
}
.app-detail .description {
    margin-bottom: 16px;
    color: #d1d5db;
}

/* Tables */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}
.table th,
.table td {
    border-bottom: 1px solid #1f2937;
    padding: 8px 6px;
    font-size: 13px;
}
.table th {
    text-align: left;
    background: #020617;
}

/* Forms */

form label {
    display: block;
    margin: 8px 0 4px;
    font-size: 13px;
}
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form select,
form textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #e5e7eb;
    font-size: 14px;
}
form textarea {
    resize: vertical;
}

/* Footer */

.footer {
    text-align: center;
    padding: 18px 0 24px;
    color: #6b7280;
    font-size: 12px;
    border-top: 1px solid #111827;
    margin-top: 40px;
}

/* Admin layout */

.admin-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
}
.admin-sidebar {
    background: #020617;
    border-radius: 10px;
    border: 1px solid #111827;
    padding: 12px;
}
.admin-sidebar h3 {
    font-size: 14px;
    margin-bottom: 10px;
}
.admin-sidebar a {
    display: block;
    font-size: 13px;
    padding: 4px 0;
}
.admin-content {
    background: #020617;
    border-radius: 10px;
    border: 1px solid #111827;
    padding: 16px;
}

/* Small */
 /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: var(--card-bg);
            border-radius: 16px;
            padding: 2rem;
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            border: 1px solid rgba(102, 126, 234, 0.3);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .modal-header h2 {
            font-size: 1.8rem;
        }

        .close-modal {
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 2rem;
            cursor: pointer;
            line-height: 1;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 0.8rem;
            background: rgba(15, 15, 35, 0.5);
            border: 2px solid rgba(102, 126, 234, 0.3);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 1rem;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--accent-blue);
        }

        .form-group textarea {
            min-height: 100px;
            resize: vertical;
        }

        /* Price Calculator */
        .calculator-section {
            background: var(--card-bg);
            padding: 2rem;
            border-radius: 16px;
            margin-top: 2rem;
        }

        .calculator-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }

        .option-card {
            background: rgba(79, 70, 229, 0.1);
            border: 2px solid transparent;
            border-radius: 12px;
            padding: 1.5rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }

        .option-card.selected {
            border-color: var(--accent-blue);
            background: rgba(79, 70, 229, 0.2);
        }

        .option-card:hover {
            border-color: var(--accent-blue);
        }

        .calculated-price {
            font-size: 2.5rem;
            font-weight: 700;
            text-align: center;
            margin: 2rem 0;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Profile Section */
        .profile-section {
            padding: 4rem 0;
        }

        .profile-grid {
            display: grid;
            grid-template-columns: 300px 1fr;
            gap: 2rem;
            margin-top: 2rem;
        }

        .profile-card {
            background: var(--card-bg);
            border-radius: 16px;
            padding: 2rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .profile-avatar {
            width: 120px;
            height: 120px;
            background: var(--primary-gradient);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            margin: 0 auto 1rem;
        }

        .orders-list {
            background: var(--card-bg);
            border-radius: 16px;
            padding: 2rem;
        }

        .order-item {
            background: rgba(79, 70, 229, 0.1);
            padding: 1.5rem;
            border-radius: 12px;
            margin-bottom: 1rem;
            border: 1px solid rgba(102, 126, 234, 0.3);
        }

        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .status-badge {
            padding: 0.3rem 1rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .status-completed {
            background: rgba(16, 185, 129, 0.2);
            color: var(--success-green);
        }

        .status-pending {
            background: rgba(245, 158, 11, 0.2);
            color: var(--warning-orange);
        }

        /* Admin Panel */
        .admin-panel {
            padding: 4rem 0;
        }

        .admin-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .stat-card {
            background: var(--card-bg);
            padding: 2rem;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
        }

        .stat-value {
            font-size: 3rem;
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .stat-label {
            color: var(--text-secondary);
            margin-top: 0.5rem;
        }

        .data-table {
            width: 100%;
            background: var(--card-bg);
            border-radius: 16px;
            overflow: hidden;
        }

        .data-table table {
            width: 100%;
            border-collapse: collapse;
        }

        .data-table th,
        .data-table td {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .data-table th {
            background: rgba(79, 70, 229, 0.2);
            font-weight: 600;
            color: var(--accent-blue);
        }

        .action-buttons {
            display: flex;
            gap: 0.5rem;
        }

        .btn-small {
            padding: 0.4rem 0.8rem;
            font-size: 0.85rem;
        }

        .btn-success {
            background: var(--success-green);
            color: white;
        }

        .btn-danger {
            background: var(--error-red);
            color: white;
        }

        /* Footer */
        footer {
            background: var(--card-bg);
            padding: 3rem 0;
            margin-top: 5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
        }

        footer p {
            color: var(--text-secondary);
        }

@media (max-width: 768px) {
    .top-nav {
        padding: 0 16px;
    }
    .top-nav nav a {
        margin-left: 10px;
        font-size: 12px;
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
}
