:root {
    --bg-body: #12132b;
    --bg-sidebar: #1a1b38;
    --bg-header: rgba(26, 27, 56, 0.95);
    --border-color: #2a2b4a;
    --primary-blue: #3b3cff;
    --accent-pink: #ff4757;
    --promo-gradient: linear-gradient(90deg, #ff9900, #ff5e00);
    --hero-gradient: linear-gradient(135deg, #2b1055 0%, #7597de 100%);
    --text-white: #ffffff;
    --text-muted: #8f90a6;
    --success-green: #00d27a;
    --sidebar-width: 80px;
    --sidebar-hover: 260px;
    --glass-bg: #1a1b38;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(20px);
}

50% {
    transform: translate(30px, 50px);
}

100% {
    transform: translate(0, 0);
}
}

.glass-panel {
    background: var(--glass-bg);
    -webkit-border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

.text-gradient {
    background: linear-gradient(90deg, #fff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

.promo-bar {
    background: linear-gradient(90deg, #ff9900 0%, #ff5e00 100%);
    color: white;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
}

.sale-tag {
    background-color: #ffd700;
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
    margin-right: 5px;
}

.buy-now-btn {
    background-color: #ffd700;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.close-promo {
    cursor: pointer;
    margin-left: 10px;
}

.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.main-content {
    flex: 1;
    background-color: transparent;
    padding-bottom: 50px;
    z-index: 5;
    position: relative;
    margin-left: 80px;
}

.sidebar {
    width: 80px;
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    border-right: 1px solid var(--glass-border);
    transition: width 0.3s ease;
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    will-change: width;
}

.sidebar:hover {
    width: 240px;
    align-items: flex-start;
}

.sidebar-logo-icon {
    color: #fff;
    font-size: 24px;
    margin-bottom: 0px;
    width: 100%;
    text-align: center;
}

.sidebar:hover .sidebar-logo-icon {
    text-align: left;
    padding-left: 25px;
}

.sidebar-menu {
    width: 100%;
    margin-top: -10px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    color: #8f90a6;
    text-decoration: none;
    padding: 15px 0;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    white-space: nowrap;
}

.sidebar-menu a:first-child.sidebar-link {
    padding-top: 0px;
}

.sidebar-link i {
    min-width: 80px;
    text-align: center;
}

.sidebar-link span {
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s;
}

.sidebar:hover .sidebar-link span {
    opacity: 1;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border-left: 3px solid #ff4757;
}

.sidebar-link i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.sidebar-link:hover i,
.sidebar-link.active i {
    background: linear-gradient(135deg, #fff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
    transform: scale(1.15) rotate(5deg);
}

.sidebar-logo-icon i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.5));
    animation: pulse-icon 3s infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.5));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 25px rgba(37, 99, 235, 0.8));
    }
}

.top-header {
    background-color: #1a1b38;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    transition: transform 0.3s ease-in-out;
}

.top-header.header-hidden {
    transform: translateY(-150%) !important;
}

.brand-name {
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

.brand-icon {
    color: #4facfe;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.search-container {
    position: relative;
    width: 35%;
}

.search-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 12px 15px 12px 42px;
    border-radius: 10px;
    color: #333333;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    outline: none;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.currency-badge {
    background-color: #3b3cff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #1a1b38;
    border: 1px solid #2a2b4a;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    overflow: hidden;
    z-index: 100;
}

.search-results-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.result-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: 0.2s;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
}

.result-item:hover {
    background: rgba(59, 60, 255, 0.1);
    color: #fff;
}

.result-icon {
    width: 24px;
    text-align: center;
    color: #a5b4fc;
}

.hero-banner {
    margin: 30px;
    height: 180px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2b1055 0%, #7597de 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 60px;
    overflow: hidden;
}

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

.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.filter-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 12px;
    color: #a0a0b0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-container {
    padding: 0 30px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 40px;
}

.tool-card {
    background: var(--glass-bg);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: #3b3cff;
}

.card-header-area {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 15px;
}

.tool-logo {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.badge {
    position: absolute;
    top: 0;
    right: 15px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge.new {
    background-color: #2ecc71;
    color: #000;
}

.badge.bonus {
    background-color: #ff5e00;
    color: #fff;
}

.badge.trending {
    background-color: #00d2d3;
    color: #000;
}

.badge.hot {
    background-color: #ff4757;
    color: #fff;
}

.card-body {
    padding: 15px 20px;
    text-align: left;
}

.tool-meta {
    font-size: 9px;
    color: #ff4757;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tool-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.tool-desc {
    font-size: 11px;
    color: #a0a0b0;
    line-height: 1.5;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.access-btn {
    display: block;
    width: 100%;
    margin-top: 15px;
    background: linear-gradient(90deg, #ff4757 0%, #ff6b81 100%);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

.access-btn:hover {
    opacity: 0.9;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.active-status {
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    padding: 3px 8px;
    border-radius: 4px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #2ecc71;
    border-radius: 50%;
}

.fav-btn {
    background: #e0e0e0;
    color: #333;
    border: none;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fav-btn.favorited {
    background: #fff;
    color: #ffcc00;
}

.footer-banner {
    margin: 30px;
    background: linear-gradient(90deg, #0052d4 0%, #4364f7 100%);
    padding: 20px 40px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guide-btn {
    background: #fff;
    color: #3b3cff;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.download-btn {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    margin-left: 10px;
}

.empty-state {
    background: #1a1b38;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    border: 2px dashed #2a2b4a;
    color: #888;
}

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

.modal-content {
    background: #1a1b38;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #3b3cff;
    color: #fff;
    width: 500px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #6366f1 100%);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(59, 60, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 200px;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 60, 255, 0.5);
    opacity: 1;
}

.contact-btn:active {
    transform: translateY(-1px);
}

.contact-btn.btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.contact-btn.btn-gold:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}