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

:root {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --primary-glow: rgba(14, 165, 233, 0.3);
    --secondary: #f59e0b;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: rgba(15, 23, 42, 0.6);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --success: #10b981;
    --danger: #ef4444;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Glassmorphism */
.glass {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

/* Header */
header {
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(12px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 5% 3rem;
    position: relative;
    background: radial-gradient(circle at top, rgba(14, 165, 233, 0.15), transparent 60%);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Filter Controls */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0 5%;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.filter-btn:hover {
    color: var(--text-main);
    border-color: rgba(255,255,255,0.2);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Product Cards Grid */
.main-content {
    flex: 1;
    padding: 0 5% 5rem;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-card {
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.demo-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.15);
}

.card-banner-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #0f172a;
    overflow: hidden;
}

.card-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.demo-card:hover .card-banner {
    transform: scale(1.05);
}

.card-logo-container {
    position: absolute;
    bottom: -24px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 4px;
    background: var(--bg-darker);
    border: 2px solid var(--primary);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.card-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.card-body {
    padding: 2.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    color: #fff;
}

.card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.platform-icons {
    display: flex;
    gap: 0.6rem;
    color: var(--text-muted);
}

.platform-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.platform-icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.platform-icon:hover {
    color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    grid-column: 1 / -1;
    padding: 5rem 2rem;
    background: var(--glass);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    fill: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 4rem 5% 2rem;
    background: #020617;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-logo span {
    color: #fff;
}

.footer-info {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-info p {
    margin-bottom: 0.4rem;
}

.footer-info a {
    color: var(--primary);
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.5);
}

/* Admin Dashboard layout */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 5%;
    width: 100%;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-title-section h2 {
    font-size: 2rem;
}

.admin-title-section p {
    color: var(--text-muted);
}

.admin-nav {
    display: flex;
    gap: 0.8rem;
}

.admin-card {
    border-radius: 16px;
    padding: 2rem;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

/* Alert Boxes */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #a7f3d0;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

/* Admin Form Controls */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px dashed var(--glass-border);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
}

.form-group input[type="file"]:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.03);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.checkbox-item:hover {
    border-color: var(--primary);
    background: rgba(255,255,255,0.05);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-item span {
    font-size: 0.95rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

/* Data Table Grid */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: var(--bg-card);
}

.admin-table th {
    background: rgba(15, 23, 42, 0.8);
    padding: 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--glass-border);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.95rem;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.thumb-banner {
    width: 80px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
}

.thumb-logo {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: #fff;
}

.action-links {
    display: flex;
    gap: 0.6rem;
}

.form-preview-img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    margin-top: 0.5rem;
    display: block;
}

/* Login Page Spec */
.login-body {
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, rgba(2,6,23,1) 80%);
}

.login-card {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand h1 {
    font-size: 2rem;
    color: var(--primary);
}

.login-brand h1 span {
    color: #fff;
}

.login-brand p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.lock-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Tooltip */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsive CSS */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.05rem;
    }
    .filter-container {
        gap: 0.5rem;
    }
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    .demo-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn {
        width: 100%;
    }
}

/* Placeholders for optional Banner and Logo */
.placeholder-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

.placeholder-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.thumb-logo-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--primary);
    text-transform: uppercase;
}

.thumb-banner-placeholder {
    width: 80px;
    height: 45px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.55rem;
    text-transform: uppercase;
}

/* Device Mockup Shell Styles */
.mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

/* Mobile Frame */
.phone-frame {
    width: 300px;
    height: 600px;
    border-radius: 40px;
    border: 12px solid #1e1b29;
    background: #000;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.25),
                0 0 40px rgba(14, 165, 233, 0.1);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-notch {
    width: 120px;
    height: 22px;
    background: #1e1b29;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

/* Browser Frame */
.browser-frame {
    width: 100%;
    max-width: 560px;
    border-radius: 12px;
    background: #1e293b;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8),
                0 0 30px rgba(14, 165, 233, 0.1);
}

.browser-header {
    padding: 0.8rem 1rem;
    background: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.browser-address {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.2rem 1rem;
    text-align: center;
    margin: 0 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browser-screen {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    background: var(--bg-darker);
    overflow: hidden;
}

.browser-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Landing Pages Features Grids */
.features-section {
    padding: 6rem 8% 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

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

.btn-group {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}


