/* ===================================================
   615 Stars — Bold & Branded Design System
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background: #EEF1F8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1E293B;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1 { font-size: 28px; font-weight: 800; margin: 0 0 8px 0; color: #152255; }
h2 { font-size: 20px; font-weight: 700; margin: 0 0 6px 0; color: #152255; line-height: 1.4; }
h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px 0; color: #334155; }

/* --- Links --- */
a {
    color: #3D83E5;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: #152255;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    text-decoration: none;
}

/* --- Logo --- */
.site-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fff;
}
.site-logo-num {
    color: #3D83E5;
}

/* --- Navbar (Logged-in) --- */
.site-navbar {
    background: #152255;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 10000;
    box-shadow: 0 2px 12px rgba(21, 34, 85, 0.3);
}

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

.navbar {
    padding: 4px;
}

.navbar a, .navbarindex a {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.navbar a:hover, .navbarindex a:hover {
    color: #93B4F0;
}

/* Legacy navbar table compat */
.navbar-table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Nav links */
.nav-link {
    color: #C8D6F0 !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px;
    transition: all 0.15s ease !important;
    display: inline-block;
}
.nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}
.nav-link-active {
    color: #fff !important;
    background: rgba(255,255,255,0.15);
}
.nav-link-upgrade {
    color: #FFB347 !important;
    border: 1px solid rgba(255,179,71,0.4);
}
.nav-link-upgrade:hover {
    color: #fff !important;
    background: #FF9900 !important;
    border-color: #FF9900;
}

/* Account Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-dropdown-toggle {
    color: #C8D6F0 !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px;
    transition: all 0.15s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    line-height: 1;
}
.nav-dropdown-toggle:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}
.nav-dropdown-toggle .nav-caret {
    font-size: 10px;
    transition: transform 0.2s ease;
}
.nav-dropdown.open .nav-caret {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(21,34,85,0.18), 0 2px 8px rgba(21,34,85,0.08);
    border: 1px solid rgba(21,34,85,0.08);
    padding: 6px 0;
    z-index: 10001;
    animation: dropdownFadeIn 0.15s ease;
}
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}
@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.12s ease;
}
.nav-dropdown-menu a:hover {
    background: #F1F5F9;
    color: #152255;
}
.nav-dropdown-menu a .dd-icon {
    width: 18px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
}
.nav-dropdown-divider {
    height: 1px;
    background: #EEF1F8;
    margin: 6px 0;
}
.nav-dropdown-menu a.dd-admin {
    color: #FFB347;
}
.nav-dropdown-menu a.dd-admin:hover {
    background: #FFF7ED;
}
.nav-dropdown-menu a.dd-logout {
    color: #94A3B8;
}
.nav-dropdown-menu a.dd-logout:hover {
    color: #EF4444;
    background: #FEF2F2;
}

/* Mobile nav account section */
.mobile-nav-section {
    padding: 8px 24px 4px 24px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748B;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 4px;
}

/* Navbar Index (Public) */
.navbarindex {
    background: #152255;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Hamburger / Mobile Nav --- */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 26px;
    color: #fff;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    transition: background 0.15s ease;
    line-height: 1;
}
.hamburger:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-nav {
    display: none;
    background: #0E1A42;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.08);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
    display: block;
    color: #C8D6F0;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 24px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all 0.15s ease;
}
.mobile-nav a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

@media (max-width: 820px) {
    .desktop-nav { display: none !important; }
    .hamburger { display: block; }
}

/* --- Main Body Layout --- */
.mainbody {
    padding-top: 88px;
    padding-bottom: 24px;
    padding-left: 16px;
    padding-right: 16px;
    flex: 1;
}

.mainbodyloggedin {
    padding-top: 88px;
    padding-bottom: 24px;
    padding-left: 16px;
    padding-right: 16px;
}

/* --- Card System --- */
.card {
    background: #FFFFFF;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.card-default {
    box-shadow: 0 1px 4px rgba(21, 34, 85, 0.08), 0 4px 16px rgba(21, 34, 85, 0.04);
    border: 1px solid rgba(21, 34, 85, 0.06);
}
.card-focus {
    box-shadow: 0 1px 4px rgba(61, 131, 229, 0.1), 0 4px 16px rgba(61, 131, 229, 0.06);
    border: 1px solid rgba(61, 131, 229, 0.1);
}
.card-header {
    font-size: 20px;
    font-weight: 800;
    color: #152255;
    padding: 20px 24px 14px 24px;
    border-bottom: 2px solid #EEF1F8;
    background: linear-gradient(135deg, #FAFBFF 0%, #F5F7FD 100%);
    letter-spacing: -0.01em;
    text-align: center;
}
.card-header-focus {
    color: #3D83E5;
    border-bottom-color: #EBF2FD;
    background: linear-gradient(135deg, #F5F9FF 0%, #EBF2FD 100%);
}
.card-body {
    padding: 20px 24px;
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
}
.card-body a { font-size: inherit; }
.card-body a:hover { color: #152255; }

/* Legacy class compat (for any remaining table-based usage) */
.maintable, .mainfocus {
    background: #FFFFFF;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}
.maintable { box-shadow: 0 1px 4px rgba(21, 34, 85, 0.08); border: 1px solid rgba(21, 34, 85, 0.06); }
.mainfocus { box-shadow: 0 1px 4px rgba(61, 131, 229, 0.1); border: 1px solid rgba(61, 131, 229, 0.1); }
.maintableheader {
    font-size: 20px; font-weight: 800; color: #152255;
    padding: 20px 24px 14px 24px; border-bottom: 2px solid #EEF1F8;
    background: linear-gradient(135deg, #FAFBFF 0%, #F5F7FD 100%);
}
.mainfocusheader {
    font-size: 20px; font-weight: 800; color: #3D83E5;
    padding: 20px 24px 14px 24px; border-bottom: 2px solid #EBF2FD;
    background: linear-gradient(135deg, #F5F9FF 0%, #EBF2FD 100%);
}
.maintablebody, .mainfocusbody { padding: 20px 24px; }
.maintable td, .mainfocus td { border: 0; color: #334155; font-family: inherit; font-size: 15px; }
.mainfocus td a { font-size: 1em; }
.mainfocus td a:hover { color: #152255; }

/* --- General Table Cells --- */
table tr td {
    color: #334155;
    font-family: inherit;
    font-size: 15px;
    text-decoration: none;
}

/* --- Forms --- */
input, select, textarea {
    font-family: inherit;
    font-size: 15px;
    color: #1E293B;
    background: #FFFFFF;
    border: 2px solid #D5DCE8;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 4px 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: #3D83E5;
    box-shadow: 0 0 0 3px rgba(61, 131, 229, 0.15);
}

textarea {
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

input[type=submit] {
    cursor: pointer;
    text-decoration: none;
    padding: 12px 24px;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #3D83E5 0%, #2563EB 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    width: 100%;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}
input[type=submit]:hover {
    cursor: pointer;
    text-decoration: none;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
    color: #fff;
}
input[type=submit]:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
}

/* --- Buttons --- */
.greenbutton {
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    margin: 4px;
    padding: 10px 20px;
    text-align: center;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
    transition: all 0.2s ease;
}
.greenbutton:hover {
    color: #fff;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.4);
    transform: translateY(-1px);
    font-size: 14px;
}

.graybutton {
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    margin: 4px;
    padding: 10px 20px;
    text-align: center;
    background: #64748B;
    border: none;
    border-radius: 8px;
    color: #fff;
    transition: all 0.2s ease;
}
.graybutton:hover {
    color: #fff;
    background: #475569;
    font-size: 14px;
}

.biggreenbutton {
    width: 300px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    transition: all 0.2s ease;
}
.biggreenbutton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

.viewhistory {
    background: linear-gradient(135deg, #3D83E5 0%, #2563EB 100%);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    position: relative;
    display: inline-block;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.viewhistory:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.followbutton {
    cursor: pointer;
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 5px 0;
    padding: 8px 0;
    text-align: center;
    width: 80px;
    background: linear-gradient(135deg, #10B981, #059669);
    border: none;
    border-radius: 6px;
    color: #fff;
    transition: all 0.2s ease;
}
.followbutton:hover {
    color: #fff;
    background: linear-gradient(135deg, #059669, #047857);
    font-size: 13px;
}

.buybutton {
    cursor: pointer;
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin: 5px 0;
    padding: 10px 0;
    text-align: center;
    width: 200px;
    background: linear-gradient(135deg, #10B981, #059669);
    border: none;
    border-radius: 8px;
    color: #fff;
    transition: all 0.2s ease;
}
.buybutton:hover {
    color: #fff;
    background: linear-gradient(135deg, #059669, #047857);
    font-size: 14px;
}

/* --- Footer --- */
footer {
    margin-top: auto;
    flex-shrink: 0;
}

.site-footer {
    background: #0C1437;
    padding: 48px 24px 0 24px;
}
.footer-inner {
    max-width: 960px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand p {
    color: #6B7AA1;
    font-size: 14px;
    line-height: 1.7;
    margin: 8px 0 0 0;
}
.footer-col h4 {
    color: #C8D6F0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 14px 0;
}
.footer-col a {
    display: block;
    color: #6B7AA1 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 4px 0;
    transition: color 0.15s ease;
    text-decoration: none;
}
.footer-col a:hover {
    color: #C8D6F0 !important;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    color: #4A5578;
    font-size: 13px;
}
.footer-bottom a {
    color: #6B7AA1 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none;
}
.footer-bottom a:hover {
    color: #C8D6F0 !important;
}

/* Legacy footer compat */
.footer {
    width: 100%;
    background: #0C1437;
    padding: 24px 0;
}
.footer td {
    color: #8B92B3;
    font-size: 14px;
    line-height: 1.8;
}
.footer a {
    color: #93A3D1 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: color 0.15s ease;
}
.footer a:hover {
    color: #C8D6F0 !important;
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* --- Cards / Follow Items --- */
.follow, .followp {
    position: static;
    float: left;
    width: 13.5%;
    border-radius: 8px;
    margin: 4px;
    padding: 8px;
    text-align: center;
    transition: all 0.15s ease;
}
.follow {
    border: 1px solid #E2E8F0;
    background-color: #fff;
}
.follow:hover {
    border-color: #CBD5E1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.followp {
    border: 2px solid #059669;
    background-color: #F0FDF4;
}

.followfooter {
    position: static;
    float: left;
    width: 100%;
    text-align: center;
}

.cards, .cardsp, .follow, .followp {
    border-radius: 8px;
}

/* --- Search Submit --- */
.searchsubmit {
    cursor: pointer;
    text-decoration: none;
    border: none;
    padding: 8px 20px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
    width: auto !important;
    transition: all 0.2s ease;
}
.searchsubmit:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.4);
}

/* --- Share Links --- */
.shareLink {
    background-repeat: no-repeat;
    display: block;
    height: 22px;
    overflow: hidden;
    text-indent: -1000px;
    width: 150px;
}
.shareLink:hover { background-position: 0 -24px; }
.shareLink:active { background-position: 0 -48px; }

/* --- Alert --- */
.alert {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    padding: 12px 20px;
}
.alerttext, .alerttext:hover {
    color: #fff;
    font-size: 14px;
}

/* --- Title styles --- */
.h1title {
    font-size: 20px;
    font-weight: 800;
    color: #152255;
}

#report, .report {
    color: #DC2626;
}

/* --- Misc Legacy --- */
.navi {
    color: #3D83E5;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.navi:hover {
    color: #152255;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
}

.indexlink { color: #334155; font-size: 14px; }
.indexlink:hover { color: #152255; font-size: 14px; }

.number { color: #94A3B8; }

.logo, .logo:hover {
    color: #152255;
    font-family: inherit;
    font-size: 30px;
    font-weight: 800;
    text-decoration: none;
}

.navibar {
    text-align: center;
    background-color: #fff;
}

.main { background-color: #fff; }

.topbar {
    background: #fff;
    border-radius: 12px 12px 0 0;
}

.getpoints { text-align: center; }

.servicesh2 { font-size: 14px; line-height: 1.4; }

#services td { padding: 4px; }

/* --- Dropdown Nav (primary_nav_wrap) --- */
#primary_nav_wrap { margin: 0; }
#primary_nav_wrap ul {
    list-style: none;
    position: relative;
    float: left;
    margin: 0;
    padding: 0;
}
#primary_nav_wrap ul a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    line-height: 42px;
    width: 142.5px;
    text-align: center;
    font-family: inherit;
    transition: background 0.15s ease;
}
#primary_nav_wrap ul ul a {
    display: block;
    color: #C8D6F0;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
    padding: 10px 18px;
    text-align: left;
    width: 220px;
    font-family: inherit;
}
#primary_nav_wrap ul li {
    position: relative;
    float: left;
    margin: 0;
    padding: 0;
    width: 14.2%;
}
#primary_nav_wrap ul li.current-menu-item { background: rgba(255,255,255,0.1); }
#primary_nav_wrap ul li:hover { background: rgba(255,255,255,0.08); }
#primary_nav_wrap ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0E1A42;
    padding: 4px 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
#primary_nav_wrap ul ul li { float: none; width: 220px; }
#primary_nav_wrap ul ul a { line-height: 1.4; padding: 10px 18px; }
#primary_nav_wrap ul ul ul { top: 0; left: 100%; }
#primary_nav_wrap ul li:hover > ul { display: block; }

/* --- Captcha --- */
.funcaptcha { width: 144px; overflow: hidden; float: left; margin-right: 15px; }
.funcaptcha a { display: inline-block; background: url(images/ticktack-boxes_03.gif); margin: 2px 2px 0 0; float: left; }
.funcaptcha a.circle { background-position: 0 -55px; }
.funcaptcha a.cross { background-position: -55px -155px; }
.funcaptcha a.empty { background-position: 0 0; }
.funcaptcha a.marked, .funcaptcha a:hover { background-position: -55px 0; }
.funcaptcha .box { display: block; cursor: pointer; overflow: hidden; width: 46px; height: 46px; }

/* --- Google Translate Override --- */
.goog-te-banner-frame.skiptranslate { display: none !important; }

/* --- Image Links --- */
a:link img.follower { opacity: 1; border: none; }
a:link:hover img.follower, a:visited img.follower, a:visited:hover img.follower {
    opacity: 0.7;
    border: none;
}

/* --- Content Area --- */
#content {
    border-radius: 0 0 8px 8px;
}

/* --- Utility --- */
center { text-align: center; }

/* --- Responsive --- */
@media (max-width: 600px) {
    .maintableheader, .mainfocusheader {
        font-size: 18px;
        padding: 16px 16px 10px 16px;
    }
    .maintablebody, .mainfocusbody {
        padding: 16px;
    }
    .mainbody, .mainbodyloggedin {
        padding-top: 80px;
        padding-left: 8px;
        padding-right: 8px;
    }
    .follow, .followp {
        width: 45%;
    }
}
