/* TablePlus Theme - Prefix: w55b1- */
/* Colors: #141414 bg | #36454F secondary | #95A5A6 accent | #F5F5F5 text */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #141414;
    color: #F5F5F5;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: #95A5A6; text-decoration: none; transition: color 0.3s; }
a:hover { color: #F5F5F5; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Header === */
.w55b1-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, #141414 0%, rgba(20,20,20,0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(149,165,166,0.15);
    padding: 0 16px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.w55b1-logo {
    font-size: 20px;
    font-weight: 800;
    color: #F5F5F5;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.w55b1-logo span { color: #95A5A6; }
.w55b1-header-actions { display: flex; gap: 8px; align-items: center; }
.w55b1-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.w55b1-btn-register {
    background: linear-gradient(135deg, #95A5A6 0%, #7f8c8d 100%);
    color: #141414;
}
.w55b1-btn-register:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(149,165,166,0.4); }
.w55b1-btn-login {
    background: transparent;
    color: #F5F5F5;
    border: 1.5px solid #95A5A6;
}
.w55b1-btn-login:hover { background: rgba(149,165,166,0.1); }

/* === Desktop Navigation === */
.w55b1-desktop-nav {
    display: none;
    gap: 24px;
    align-items: center;
}
.w55b1-desktop-nav a {
    color: #95A5A6;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}
.w55b1-desktop-nav a:hover { color: #F5F5F5; }
.w55b1-desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #95A5A6;
    transition: width 0.3s;
}
.w55b1-desktop-nav a:hover::after { width: 100%; }

/* === Mobile Menu === */
.w55b1-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
}
.w55b1-menu-overlay.w55b1-active { display: block; opacity: 1; }
.w55b1-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #1a1a1a;
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 70px 20px 20px;
    overflow-y: auto;
}
.w55b1-mobile-menu.w55b1-active { right: 0; }
.w55b1-mobile-menu a {
    display: block;
    padding: 14px 0;
    color: #F5F5F5;
    font-size: 15px;
    border-bottom: 1px solid rgba(149,165,166,0.1);
    transition: padding-left 0.3s, color 0.3s;
}
.w55b1-mobile-menu a:hover { padding-left: 10px; color: #95A5A6; }
.w55b1-close-menu {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #F5F5F5;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}
.w55b1-no-scroll { overflow: hidden; }
.w55b1-hamburger {
    background: none;
    border: none;
    color: #F5F5F5;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

/* === Main Content === */
.w55b1-main {
    padding-top: 56px;
    min-height: 100vh;
}
@media (max-width: 768px) {
    .w55b1-main { padding-bottom: 80px; }
}

/* === Carousel === */
.w55b1-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16/7;
    background: #36454F;
}
.w55b1-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.w55b1-slide.w55b1-active { opacity: 1; }
.w55b1-slide img { width: 100%; height: 100%; object-fit: cover; }
.w55b1-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.w55b1-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(245,245,245,0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}
.w55b1-dot.w55b1-active { background: #95A5A6; transform: scale(1.2); }

/* === Section Titles === */
.w55b1-section {
    padding: 30px 16px;
    max-width: 430px;
    margin: 0 auto;
}
.w55b1-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #F5F5F5;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.w55b1-section-title i { color: #95A5A6; font-size: 20px; }
.w55b1-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(149,165,166,0.4), transparent);
}

/* === Game Tabs === */
.w55b1-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    scrollbar-width: none;
}
.w55b1-tabs::-webkit-scrollbar { display: none; }
.w55b1-tab-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(149,165,166,0.3);
    background: transparent;
    color: #95A5A6;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}
.w55b1-tab-btn.w55b1-active {
    background: #95A5A6;
    color: #141414;
    border-color: #95A5A6;
}

/* === Game Grid === */
.w55b1-game-panel { display: none; }
.w55b1-game-panel.w55b1-active { display: block; }
.w55b1-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.w55b1-game-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    background: #36454F;
    aspect-ratio: 1/1.1;
}
.w55b1-game-card:hover { transform: translateY(-3px); }
.w55b1-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.w55b1-game-card:hover img { transform: scale(1.05); }
.w55b1-game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 4px;
    background: linear-gradient(transparent, rgba(20,20,20,0.9));
    color: #F5F5F5;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === Promo Banner === */
.w55b1-promo-banner {
    background: linear-gradient(135deg, #36454F 0%, #141414 100%);
    border: 1px solid rgba(149,165,166,0.2);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    margin: 20px 16px;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
}
.w55b1-promo-banner h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #F5F5F5;
}
.w55b1-promo-banner p {
    color: #95A5A6;
    font-size: 14px;
    margin-bottom: 16px;
}
.w55b1-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #95A5A6, #7f8c8d);
    color: #141414;
    font-size: 14px;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}
.w55b1-promo-btn:hover { box-shadow: 0 6px 20px rgba(149,165,166,0.4); transform: translateY(-2px); }

/* === Features Grid === */
.w55b1-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.w55b1-feature-card {
    background: #1e1e1e;
    border: 1px solid rgba(149,165,166,0.1);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s;
}
.w55b1-feature-card:hover { border-color: rgba(149,165,166,0.3); transform: translateY(-2px); }
.w55b1-feature-card i { font-size: 28px; color: #95A5A6; margin-bottom: 10px; display: block; }
.w55b1-feature-card h4 { font-size: 14px; color: #F5F5F5; margin-bottom: 6px; }
.w55b1-feature-card p { font-size: 12px; color: #95A5A6; line-height: 1.4; }

/* === Bottom Nav === */
.w55b1-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(20,20,20,0.95) 0%, #141414 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(149,165,166,0.15);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    padding: 0 4px;
}
.w55b1-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 60px;
    min-height: 52px;
    background: none;
    border: none;
    color: #95A5A6;
    cursor: pointer;
    transition: all 0.3s;
    padding: 4px;
    border-radius: 8px;
    position: relative;
}
.w55b1-bottom-btn i, .w55b1-bottom-btn .material-icons { font-size: 22px; transition: transform 0.2s; }
.w55b1-bottom-btn span { font-size: 10px; font-weight: 600; letter-spacing: 0.3px; }
.w55b1-bottom-btn:hover { color: #F5F5F5; }
.w55b1-bottom-btn:hover i, .w55b1-bottom-btn:hover .material-icons { transform: scale(1.15); }
.w55b1-bottom-btn.w55b1-current { color: #F5F5F5; }
.w55b1-bottom-btn.w55b1-current::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #95A5A6;
    border-radius: 0 0 3px 3px;
}
@media (min-width: 769px) {
    .w55b1-bottom-nav { display: none; }
    .w55b1-hamburger { display: none; }
    .w55b1-desktop-nav { display: flex; }
    .w55b1-section { max-width: 960px; }
    .w55b1-game-grid { grid-template-columns: repeat(5, 1fr); }
    .w55b1-promo-banner { max-width: 960px; }
    .w55b1-features { grid-template-columns: repeat(4, 1fr); }
}

/* === Footer === */
.w55b1-footer {
    background: #0d0d0d;
    border-top: 1px solid rgba(149,165,166,0.1);
    padding: 30px 16px 20px;
    margin-top: 40px;
}
.w55b1-footer-inner { max-width: 430px; margin: 0 auto; }
.w55b1-footer-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}
.w55b1-footer-partners img {
    height: 28px;
    opacity: 0.5;
    transition: opacity 0.3s;
    filter: grayscale(1);
}
.w55b1-footer-partners img:hover { opacity: 0.8; }
.w55b1-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}
.w55b1-footer-links a {
    font-size: 12px;
    color: #95A5A6;
    transition: color 0.3s;
}
.w55b1-footer-links a:hover { color: #F5F5F5; }
.w55b1-footer-copy {
    text-align: center;
    font-size: 11px;
    color: rgba(149,165,166,0.5);
    margin-top: 12px;
}

/* === Back to Top === */
.w55b1-back-top {
    position: fixed;
    bottom: 72px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #36454F;
    border: 1px solid rgba(149,165,166,0.3);
    color: #F5F5F5;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
}
.w55b1-back-top.w55b1-visible { opacity: 1; transform: translateY(0); }
.w55b1-back-top:hover { background: #95A5A6; color: #141414; }

/* === Help Page Styles === */
.w55b1-content-page { padding: 56px 0 0; }
.w55b1-content-inner {
    max-width: 430px;
    margin: 0 auto;
    padding: 24px 16px;
}
.w55b1-content-page h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #F5F5F5;
}
.w55b1-content-page h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 12px;
    color: #F5F5F5;
    border-left: 3px solid #95A5A6;
    padding-left: 12px;
}
.w55b1-content-page h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 18px 0 10px;
    color: #F5F5F5;
}
.w55b1-content-page p {
    font-size: 14px;
    line-height: 1.7;
    color: #95A5A6;
    margin-bottom: 14px;
}
.w55b1-content-page ul, .w55b1-content-page ol {
    padding-left: 20px;
    margin-bottom: 14px;
}
.w55b1-content-page li {
    font-size: 14px;
    color: #95A5A6;
    line-height: 1.7;
    margin-bottom: 6px;
    list-style: disc;
}
.w55b1-content-page ol li { list-style: decimal; }
.w55b1-content-page strong { color: #F5F5F5; }
.w55b1-cta-box {
    background: linear-gradient(135deg, #36454F, #1a1a1a);
    border: 1px solid rgba(149,165,166,0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}
.w55b1-cta-box p { margin-bottom: 14px; }
.w55b1-cta-box .w55b1-promo-btn { font-size: 13px; padding: 10px 28px; }

/* === Responsive Tweaks === */
@media (max-width: 768px) {
    .w55b1-header { padding: 0 12px; }
    .w55b1-section { padding: 24px 12px; }
    .w55b1-promo-banner { margin: 16px 12px; }
    .w55b1-game-grid { gap: 8px; }
    .w55b1-game-name { font-size: 9px; }
}
@media (max-width: 360px) {
    .w55b1-game-grid { grid-template-columns: repeat(3, 1fr); }
}
