:root {
    --primary: #ef4444; /* YouTube Red */
    --primary-hover: #dc2626;
    --bg-base: #020617;
    --bg-surface: rgba(15, 23, 42, 0.6);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.08);
}

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

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

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Background Effects */
.background-elements {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.blob {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 15s infinite ease-in-out alternate;
}

.blob-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #ef4444, #7f1d1d);
    top: -200px; left: -100px;
}

.blob-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #1d4ed8, #0f172a);
    bottom: -100px; right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #a855f7, #4c1d95);
    top: 40%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    opacity: 0.2;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 80px) scale(1.1); }
}

/* Navigation */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    background: rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    padding-right: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--primary);
    font-size: 28px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    transition: all 0.3s;
    cursor: pointer;
    font-family: inherit;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Main & Hero */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 24px 60px;
    text-align: center;
}

.hero-content {
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out forwards;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.glow-text {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ef4444 0%, #fca5a5 30%, #ffffff 50%, #fca5a5 70%, #ef4444 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s linear infinite;
    filter: drop-shadow(0 0 30px rgba(239, 68, 68, 0.4));
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Container */
.search-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.glass-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    text-align: left;
}

/* Premium 3D Glass Card with Pulsing Glow */
@keyframes borderPulse3D {
    0% {
        box-shadow: 
            0 30px 60px -10px rgba(0, 0, 0, 0.8),
            0 15px 30px -15px rgba(0, 0, 0, 0.5),
            0 0 10px rgba(239, 68, 68, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        border-color: rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 
            0 30px 60px -10px rgba(0, 0, 0, 0.8),
            0 15px 30px -15px rgba(0, 0, 0, 0.5),
            0 0 25px rgba(239, 68, 68, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
        border-color: rgba(239, 68, 68, 0.8);
    }
    100% {
        box-shadow: 
            0 30px 60px -10px rgba(0, 0, 0, 0.8),
            0 15px 30px -15px rgba(0, 0, 0, 0.5),
            0 0 10px rgba(239, 68, 68, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        border-color: rgba(239, 68, 68, 0.3);
    }
}

.premium-glow-card {
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    animation: borderPulse3D 3s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
}

.premium-glow-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 40px 80px -10px rgba(0, 0, 0, 0.9),
        0 20px 40px -15px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(239, 68, 68, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(239, 68, 68, 1) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.search-header {
    margin-bottom: 24px;
}

.search-header h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.search-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.search-box {
    display: flex;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 6px;
    position: relative;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.search-box .icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 20px;
}

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

.search-box .clear-icon {
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 12px;
    transition: color 0.2s;
}

.search-box .clear-icon:hover {
    color: #ef4444;
}

.search-box .clear-icon.hidden {
    display: none;
}

.search-box input::placeholder {
    color: #475569;
}

.search-box button {
    background: linear-gradient(135deg, #ef4444, #f43f5e, #ff4b2b, #ef4444);
    background-size: 300% 100%;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.search-box button:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px -5px rgba(239, 68, 68, 0.6);
}

.search-box button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.search-history {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    list-style: none;
    padding: 8px 0;
    z-index: 50;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.search-history li {
    padding: 10px 20px 10px 50px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-history li i {
    color: var(--primary);
    font-size: 14px;
}

.search-history li:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Loading & Results */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    color: var(--text-secondary);
    gap: 12px;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.hidden {
    display: none !important;
}

.result-container {
    margin-top: 24px;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 16px;
    padding: 24px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.badge-active { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-pending { background: rgba(234, 179, 8, 0.15); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.3); }
.badge-expired { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-notfound { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }
.badge-error { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.result-content {
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.result-content .link { color: #60a5fa; text-decoration: none; word-break: break-all; }
.result-content .link:hover { text-decoration: underline; }

.truncate-link {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

@keyframes border-glow {
    0% {
        box-shadow: 0 0 5px #ff4b2b, inset 0 0 2px #ff4b2b;
        border-color: #ff4b2b;
        color: #ffca28;
    }
    50% {
        box-shadow: 0 0 20px #ff416c, inset 0 0 8px #ff416c;
        border-color: #ff416c;
        color: #fff;
    }
    100% {
        box-shadow: 0 0 5px #ff4b2b, inset 0 0 2px #ff4b2b;
        border-color: #ff4b2b;
        color: #ffca28;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both !important;
}

.copy-btn {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.copy-btn.highlight-copy {
    animation: border-glow 1.5s infinite;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.copy-btn.copied {
    animation: none;
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

.guide-btn {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.5px;
}

.guide-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.5);
}

/* Blog/Guide List Styles */
.blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.blog-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.blog-info {
    flex: 1;
    cursor: pointer;
}

.blog-info h3 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-info p {
    color: var(--text-secondary);
    font-size: 13px;
}

.blog-copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    margin-left: 16px;
}

.blog-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.blog-copy-btn.copied {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 20px rgba(59, 130, 246, 0.2);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast i {
    font-size: 18px;
    color: #60a5fa;
}

/* Features Section */
.features {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--border-light);
    padding: 30px;
    border-radius: 20px;
    text-align: left;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(15, 23, 42, 0.5);
    transform: translateY(-5px);
    border-color: rgba(239, 68, 68, 0.3);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */
footer {
    background: rgba(2, 6, 23, 0.8);
    border-top: 1px solid var(--border-light);
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-secondary);
}

.footer-logo i {
    color: var(--primary);
    font-size: 24px;
}

.footer-content p {
    color: #475569;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 20px;
    transition: color 0.2s;
}

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

/* Contact Modal Luxury Styling */
.contact-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.5);
}

.contact-card:hover::before {
    transform: translateX(100%);
}

.contact-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-card.facebook .contact-icon { background: linear-gradient(135deg, #1877F2, #0A58CA); color: white; box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3); }
.contact-card.messenger .contact-icon { background: linear-gradient(135deg, #00B2FF, #006AFF); color: white; box-shadow: 0 5px 15px rgba(0, 106, 255, 0.3); }
.contact-card.zalo .contact-icon { background: linear-gradient(135deg, #0068FF, #0045B2); color: white; box-shadow: 0 5px 15px rgba(0, 104, 255, 0.3); }

.contact-info {
    flex: 1;
    text-align: left;
}

.contact-info h3 {
    margin: 0 0 4px 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.contact-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.contact-card .arrow {
    font-size: 20px;
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-card:hover .arrow {
    transform: translateX(4px);
    color: var(--text-primary);
}

/* Modal & Products */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(0) scale(1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.hidden .modal-container {
    transform: translateY(20px) scale(0.95);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: rgba(2, 6, 23, 0.5);
    border-radius: 24px 24px 0 0;
}

.modal-header h2 {
    font-size: 20px;
    flex: 1;
    text-align: center;
}

.modal-close-btn, .modal-back-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover, .modal-back-btn:hover {
    color: white;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
}

.product-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
    color: white;
    background: linear-gradient(135deg, #334155, #0f172a);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.product-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Product Detail */
.product-detail {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.detail-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.detail-title h3 {
    font-size: 24px;
    margin-bottom: 4px;
}

.detail-title p {
    color: var(--text-secondary);
    font-size: 15px;
}

.detail-content {
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.6;
}

.detail-content h4 {
    color: var(--text-primary);
    font-size: 16px;
    margin: 16px 0 8px;
}

.detail-content ul {
    list-style-position: inside;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.detail-content li {
    margin-bottom: 8px;
}

.buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 24px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .glow-text { font-size: 36px; margin-bottom: 12px; }
    .hero { padding: 40px 20px 30px; }
    .hero-content { margin-bottom: 30px; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 480px) {
    .navbar { padding: 12px 0; }
    .nav-content { flex-direction: column; gap: 12px; }
    .nav-top { padding-right: 0; width: 100%; margin-bottom: 8px; }
    .nav-actions { width: 100%; justify-content: center; gap: 8px; }
    .nav-btn, .contact-btn { flex: 1; justify-content: center; padding: 8px 4px; font-size: 12px; white-space: nowrap; }
    .logo { font-size: 18px; }
    
    .hero { padding: 20px 16px; }
    .hero-content { margin-bottom: 20px; }
    .badge { padding: 4px 12px; font-size: 11px; margin-bottom: 12px; }
    .glow-text { font-size: 28px; margin-bottom: 8px; }
    .subtitle { font-size: 13px; line-height: 1.4; }
    
    .glass-card { padding: 20px; border-radius: 20px; }
    .premium-glow-card { 
        transform: none; /* Disable hover float on mobile */
        animation: borderPulse3D 3s ease-in-out infinite; 
    }
    .search-header { margin-bottom: 16px; }
    .search-header h2 { font-size: 18px; margin-bottom: 4px; }
    .search-header p { font-size: 12px; }
    
    .search-box { flex-direction: row; padding: 5px; gap: 4px; background: rgba(2, 6, 23, 0.6); border: 1px solid var(--border-light); border-radius: 14px; }
    .search-box input { background: transparent; border: none; padding: 12px 10px 12px 40px; font-size: 13px; border-radius: 0; }
    .search-box .icon { top: 50%; left: 16px; transform: translateY(-50%); font-size: 18px; }
    .search-box button { padding: 0 16px; border-radius: 10px; justify-content: center; font-size: 13px; height: auto; }
    
    .search-history { top: calc(100% + 6px); z-index: 100; }
    .search-history li { padding: 10px 16px 10px 45px; font-size: 13px; }
    
    .result-container { margin-top: 16px; padding: 16px; border-radius: 12px; }
    .status-badge { font-size: 11px; padding: 4px 10px; margin-bottom: 12px; }
    .result-content { font-size: 13px; margin-bottom: 16px; line-height: 1.5; }
    .copy-btn { padding: 10px; font-size: 13px; }
}
