/* =====================================================
   ROOT VARIABLES (PREMIUM SYSTEM)
===================================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --accent: #22c55e;
    --accent-soft: #ecfdf5;

    --bg-page: #eef2f7;
    --bg-box: #ffffff;
    --bg-soft: #f8fafc;

    --text-dark: #0f172a;
    --text-muted: #64748b;

    --border-light: #e5e7eb;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;

    --shadow-soft: 0 10px 28px rgba(0,0,0,.08);
    --shadow-light: 0 4px 12px rgba(0,0,0,.06);
    --shadow-hover: 0 14px 34px rgba(0,0,0,.12);
}

/* =====================================================
   BASE RESET & BODY
===================================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, sans-serif;
    background: var(--bg-page);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* =====================================================
   LINKS
===================================================== */

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* =====================================================
   NAVBAR (MODERN PREMIUM)
===================================================== */

.navbar {
    background: var(--bg-box);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1055;
    border-bottom: 1px solid var(--border-light);
}

.navbar > .container {
    max-width: 1280px;
}

.navbar-brand img {
    height: 52px;
}

.navbar-nav .nav-link {
    padding: 10px 14px;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
}

.navbar-nav .nav-link:hover {
    background: var(--bg-soft);
    color: var(--primary);
}

/* Highlight high RPM section */
.navbar-nav .nav-link.text-success,
.navbar-nav .nav-link.nav-earning {
    background: var(--accent-soft);
    color: #15803d !important;
}

/* Dropdown */
.dropdown-menu {
    z-index: 1060 !important;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    padding: 10px;
    min-width: 240px;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: #f2f6ff;
}

/* Prevent clipping */
.navbar,
.navbar .container,
.navbar-collapse {
    overflow: visible !important;
}

/* Mobile nav */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg-box);
        padding: 16px;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-soft);
        margin-top: 12px;
    }
}

/* =====================================================
   WIDE BOXED LAYOUT
===================================================== */

.container {
    max-width: 1280px;
}

body > .container {
    margin-top: 30px;
}

/* Main content box */
main {
    background: var(--bg-box);
    border-radius: var(--radius-lg);
    padding: 10px;
    box-shadow: var(--shadow-soft);
}

/* Sidebar (ads only) */
.sidebar {
    background: transparent;
}

.sidebar .ad-box {
    background: var(--bg-box);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-light);
}

/* =====================================================
   HEADINGS & TYPOGRAPHY
===================================================== */

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -.02em;
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.4rem;
    margin-top: 36px;
}

h3 {
    font-size: 1.18rem;
    margin-top: 24px;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* =====================================================
   CARDS & CALCULATORS
===================================================== */

.card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-light);
    transition: box-shadow .25s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.border.bg-light {
    background: var(--bg-soft) !important;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

/* Inputs */
input[type="number"],
input[type="text"],
select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    padding: 10px 12px;
    font-size: 15px;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
    outline: none;
}

/* Result fields */
input[readonly] {
    background: #eef2ff;
    font-weight: 700;
    color: var(--primary-dark);
}

/* =====================================================
   BUTTONS
===================================================== */

.btn {
    border-radius: var(--radius);
    font-weight: 600;
    padding: 9px 20px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
}

.btn-primary:hover {
    opacity: .95;
}

/* =====================================================
   LISTS & SEO CONTENT
===================================================== */

section {
    margin-top: 44px;
}

section ul {
    padding-left: 0;
    list-style: none;
}

section ul li {
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
}

section ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* =====================================================
   ADSENSE SAFE ZONES
===================================================== */

.ad-box {
    margin: 28px 0;
    text-align: center;
    min-height: 90px;
}

iframe,
ins.adsbygoogle {
    max-width: 100% !important;
}

/* =====================================================
   FOOTER (PREMIUM CLEAN)
===================================================== */

footer {
    background: var(--bg-box);
    border-top: 1px solid var(--border-light);
    margin-top: 70px;
    padding: 36px 0;
    font-size: 14px;
}

footer .container {
    max-width: 1280px;
}

footer a {
    color: var(--text-muted);
}

footer a:hover {
    color: var(--primary);
}

/* =====================================================
   RESPONSIVE TUNING
===================================================== */

@media (max-width: 768px) {
    main {
        padding: 22px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .navbar-brand img {
        height: 46px;
    }
}


.list-group-item.text-danger a {
    color: #dc2626;
    font-weight: 600;
}

.list-group-item.text-danger a:hover {
    color: #b91c1c;
}

.breadcrumb-modern {
  --bs-breadcrumb-divider: "›";
}

.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
  color: #999;
  font-weight: 600;
}

.breadcrumb-modern a {
  text-decoration: none;
  color: #0d6efd;
}

.breadcrumb-modern a:hover {
  text-decoration: underline;
}

.calculator-card {
  transition: all .2s ease;
}

.calculator-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}
