:root {
    --bg-dark: #0a0f0d;
    --bg-card: #131c17;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --accent-primary: #00c9ff;
    --accent-secondary: #92fe9d;
    --gradient-main: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%);
    --border-color: #22382c;
    --font-base: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-base); background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color var(--transition-speed); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0f1713;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: #2a3f35;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Global Blob Background */
.blob-bg-right, .blob-bg-left {
    position: fixed; border-radius: 50%; z-index: -1; pointer-events: none; opacity: 0.25;
}
.blob-bg-right { top: 5%; right: -10%; width: 700px; height: 700px; background: var(--gradient-main); filter: blur(140px); }
.blob-bg-left { bottom: 5%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,201,255,0.3) 0%, transparent 70%); filter: blur(100px); }

/* Navigation */
.navbar { position: fixed; top: 0; width: 100%; background: rgba(10, 15, 13, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); z-index: 1000; padding: 15px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; color: #fff; }
.logo img { border-radius: 8px; width: 40px; height: 40px; object-fit: cover; }
.header-search-form { flex: 1; max-width: 400px; margin: 0 20px; }
.search-input-wrapper { position: relative; width: 100%; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.header-search-input { width: 100%; padding: 10px 15px 10px 42px; border-radius: 30px; border: 1px solid var(--border-color); background: #18241e; color: #fff; font-size: 0.9rem; transition: border-color 0.2s; }
.header-search-input:focus { outline: none; border-color: var(--accent-primary); }

/* Buttons & Actions */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 22px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all var(--transition-speed); text-align: center; border: none; }
.btn-primary { background: var(--gradient-main); color: #0a0f0d; }
.btn-primary:hover { box-shadow: 0 0 20px rgba(0, 201, 255, 0.4); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-outline:hover { border-color: var(--accent-primary); background: rgba(0, 201, 255, 0.05); }

/* Admin Profile Dropdown */
.admin-profile-menu { position: relative; display: inline-block; }
.admin-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; cursor: pointer; border: 2px solid var(--accent-primary); transition: transform 0.2s; }
.admin-avatar:hover { transform: scale(1.05); }
.admin-dropdown { display: none; position: absolute; right: 0; top: 55px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); min-width: 140px; overflow: hidden; z-index: 1010; }
.admin-dropdown a { display: block; padding: 12px 20px; color: #ff5c5c; font-size: 0.9rem; font-weight: 600; transition: background 0.2s; }
.admin-dropdown a:hover { background: rgba(255, 92, 92, 0.1); }
.admin-profile-menu.active .admin-dropdown { display: block; }

/* Product Cards */
.unified-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; width: 100%; }
.pro-card { display: flex; flex-direction: column; background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; text-decoration: none; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 8px 24px rgba(0,0,0,0.35); text-align: left; position: relative; height: 100%; overflow: hidden; }
.pro-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.pro-card-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; border: 1px solid var(--border-color); }
.pro-card-btn { padding: 6px 14px; border: 1px solid var(--accent-primary); color: var(--accent-primary); border-radius: 6px; font-weight: 600; font-size: 0.85rem; transition: all 0.3s ease; }
.pro-card-title { color: #fff; font-size: 1.15rem; margin-bottom: 8px; font-weight: 700; }
.pro-card-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pro-card:hover { border-color: var(--accent-primary); box-shadow: 0 15px 40px rgba(0,201,255,0.15); transform: translateY(-5px); }
.pro-card:hover .pro-card-btn { background: var(--gradient-main); color: #0a0f0d; border-color: transparent; }

/* Admin Panel */
.admin-login-wrapper { max-width: 450px; margin: 40px auto; text-align: center; background: var(--bg-card); padding: 50px 40px; border-radius: 24px; border: 1px solid var(--border-color); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.admin-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
.admin-search { width: 100%; max-width: 300px; padding: 12px 20px; border-radius: 20px; border: 1px solid var(--border-color); background: #18241e; color: #fff; }
.admin-table-wrapper { overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.admin-table th, .admin-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 0.95rem; }
.admin-table th { background: rgba(0,0,0,0.3); color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; }
.action-buttons-inline { display: flex; gap: 10px; align-items: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.icon-btn.edit-btn:hover { color: var(--accent-primary); border-color: var(--accent-primary); }
.icon-btn.delete-btn:hover { color: #ff5c5c; border-color: #ff5c5c; }

/* Landscape Desktop Modal */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 2000; justify-content: center; align-items: center; padding: 20px; overflow-y: auto; }
.modal-overlay.show { display: flex; }
.modal-content { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; width: 100%; max-width: 950px; padding: 35px; position: relative; box-shadow: 0 25px 70px rgba(0,0,0,0.6); max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 20px; right: 25px; background: none; border: none; color: var(--text-muted); font-size: 2rem; cursor: pointer; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
@media (max-width: 768px) { .modal-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.form-group input[type="text"], .form-group input[type="url"], .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border-radius: 8px; border: 1px solid var(--border-color); background-color: #18241e; color: var(--text-main); font-family: var(--font-base); font-size: 0.95rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-primary); }

/* Logo Preview Container with Cross Icon */
.logo-preview-wrapper {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 60px;
}
.logo-preview-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}
.logo-remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #ff5c5c;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: transform 0.2s;
}
.logo-remove-btn:hover {
    transform: scale(1.1);
}

/* Footer */
.footer { background-color: var(--bg-card); padding: 30px 0; border-top: 1px solid var(--border-color); text-align: center; }
.footer p { color: var(--text-muted); font-size: 0.85rem; }

/* Review Items inside Edit Modal */
.review-mgmt-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 10px; background: #18241e; border-radius: 8px; border: 1px solid var(--border-color); gap: 15px; }
.review-mgmt-text { color: #ccc; font-size: 0.88rem; flex: 1; word-break: break-word; }
.review-mgmt-controls { display: flex; align-items: center; gap: 12px; white-space: nowrap; }

/* Product Page Review Cards */
.review-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 22px 25px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; gap: 20px; transition: all 0.3s ease; }
.review-card.copied-review { opacity: 0.55; background: #0f1713; border-style: dashed; }
.review-text { font-size: 1.02rem; color: #e2e8f0; line-height: 1.5; flex: 1; }
.copy-btn { background: rgba(0, 201, 255, 0.1); border: 1px solid var(--accent-primary); color: var(--accent-primary); padding: 10px 18px; border-radius: 8px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; white-space: nowrap; }
.copy-btn:hover { background: var(--gradient-main); color: #0a0f0d; border-color: transparent; }