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

:root {
    --primary-color: #3b82f6;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

.btn-primary, .btn-secondary, .btn-danger {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

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

.btn-secondary:hover {
    background: var(--border-color);
}

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

.btn-danger:hover {
    background: #dc2626;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    display: block;
    width: 100%;
}

.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

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

.data-table th {
    background: var(--bg-light);
    font-weight: 600;
}

.data-table a {
    color: var(--primary-color);
    text-decoration: none;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.website-page {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
}

.hero-section {
    padding: 40px 0 80px;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.top-nav .logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

.hero-content {
    text-align: center;
    padding: 80px 0;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.features-section, .templates-section, .pricing-section, .contact-section {
    padding: 80px 0;
}

.features-section h2, .templates-section h2, .pricing-section h2, .contact-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
}

.features-grid, .templates-grid, .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card, .template-card, .pricing-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature-card:hover, .template-card:hover, .pricing-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3, .template-card h3, .pricing-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.feature-card p, .template-card p {
    color: var(--text-light);
}

.template-preview {
    height: 200px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.default-preview {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.dark-preview {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.modern-preview {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

.pricing-card {
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card .badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: white;
}

.pricing-card .price {
    font-size: 48px;
    font-weight: 700;
    margin: 20px 0;
    color: var(--primary-color);
}

.pricing-card ul {
    list-style: none;
    margin: 24px 0;
}

.pricing-card li {
    padding: 8px 0;
    color: var(--text-color);
}

.contact-section {
    text-align: center;
}

.contact-section p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
}

.contact-icon {
    font-size: 28px;
}

.footer {
    background: var(--white);
    padding: 40px 0;
    text-align: center;
    color: var(--text-light);
}

.default-template, .modern-template {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
    min-height: 100vh;
}

.dark-template {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    color: #e2e8f0;
}

.dark-template .logo, .dark-template .category-title {
    color: #e2e8f0;
}

.dark-template .subtitle, .dark-template .nav-desc {
    color: #94a3b8;
}

.dark-template .search-wrapper, .dark-template .nav-card {
    background: #1e293b;
    border-color: #334155;
}

.dark-template .search-input {
    color: #e2e8f0;
}

.dark-template .nav-name {
    color: #e2e8f0;
}

.header {
    text-align: center;
    padding: 50px 20px 30px;
}

.time-display {
    font-size: 56px;
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.date-display {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.logo {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 15px;
    color: var(--text-light);
    letter-spacing: 1px;
}

.search-container {
    max-width: 650px;
    margin: 35px auto;
}

.search-wrapper {
    display: flex;
    gap: 12px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.search-wrapper:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.1);
}

.search-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.2);
}

.search-engine {
    display: flex;
    gap: 6px;
    padding: 8px;
}

.engine-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.engine-btn:hover, .engine-btn.active {
    background: #dbeafe;
    transform: scale(1.08);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 16px;
    outline: none;
    padding: 10px;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 14px;
    cursor: pointer;
    font-size: 22px;
    transition: all 0.3s;
    color: white;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.quick-tools {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.quick-tool {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-tool:hover {
    background: #f0f9ff;
    border-color: #93c5fd;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.main-content {
    padding: 10px 0 40px;
}

.category {
    margin-bottom: 40px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.category-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 1px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.nav-card {
    position: relative;
    background: var(--white);
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-card:hover {
    transform: translateY(-6px);
    border-color: #dbeafe;
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.15);
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
}

.nav-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #dbeafe 0%, #d1fae5 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s;
}

.nav-card:hover .nav-icon {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.nav-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-color);
}

.nav-desc {
    font-size: 12px;
    color: var(--text-light);
}

.default-template footer, .modern-template footer {
    text-align: center;
    padding: 35px 20px;
    color: var(--text-light);
    font-size: 14px;
}

.dark-template footer {
    text-align: center;
    padding: 35px 20px;
    color: #94a3b8;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--primary-color);
}

.admin-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-box h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-light);
    margin-bottom: 32px;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.login-footer {
    margin-top: 24px;
}

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

.admin-page {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    margin-bottom: 40px;
}

.sidebar-header h2 {
    font-size: 24px;
}

.sidebar-header p {
    color: #94a3b8;
    font-size: 14px;
}

.sidebar-nav {
    flex: 1;
}

.nav-link {
    display: block;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    background: rgba(59, 130, 246, 0.2);
    color: white;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-footer .btn-primary, .sidebar-footer .btn-secondary {
    text-align: center;
}

.admin-main {
    flex: 1;
    background: var(--bg-light);
    padding: 24px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-header h1 {
    font-size: 28px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.license-key {
    font-family: monospace;
    font-size: 14px;
}

@media (max-width: 768px) {
    .time-display {
        font-size: 42px;
    }

    .logo {
        font-size: 28px;
    }

    .nav-grid {
        grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
        gap: 12px;
    }

    .nav-card {
        padding: 18px 12px;
    }

    .nav-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .search-wrapper {
        flex-direction: column;
    }

    .search-engine {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .admin-page {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
