/* Numeri-Lotto.com - Main Stylesheet v2.0 */

/* === RESET & BASE === */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --primary:#1a56db;--primary-dark:#1442a8;--primary-light:#3b82f6;
  --primary-bg:#eff6ff;--green:#008C45;--red:#CD212A;
  --white:#fff;--g50:#f9fafb;--g100:#f3f4f6;--g200:#e5e7eb;
  --g300:#d1d5db;--g400:#9ca3af;--g500:#6b7280;--g600:#4b5563;
  --g700:#374151;--g800:#1f2937;--g900:#111827;
  --radius:0.5rem;--radius-lg:0.75rem;--shadow:0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.04);
  --shadow-md:0 4px 6px -1px rgba(0,0,0,.07),0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-lg:0 10px 15px -3px rgba(0,0,0,.07),0 4px 6px -2px rgba(0,0,0,.03);
  --font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--font);font-size:1rem;line-height:1.6;color:var(--g800);background:var(--white);-webkit-font-smoothing:antialiased}
a{color:var(--primary);text-decoration:none;transition:color .2s}
a:hover{color:var(--primary-dark)}
img{max-width:100%;height:auto;display:block}
ul,ol{list-style:none}
button,input,select,textarea{font-family:inherit;font-size:inherit}
button{cursor:pointer;border:none;background:none}
h1,h2,h3,h4{line-height:1.3;color:var(--g900)}
h3{margin-bottom:1.5rem}

/* === LAYOUT === */
.nl-container{max-width:1200px;margin:0 auto;padding:0 1rem;text-align:center}
.nl-main{min-height:60vh;padding-bottom:2rem}
.nl-text-center{text-align:center}
.nl-mt-1{margin-top:0.5rem}
.nl-mt-2{margin-top:1rem}
.nl-grid-2{display:grid;grid-template-columns:1fr;gap:1.5rem}
.nl-grid-4{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
.nl-grid-content-sidebar{display:grid;grid-template-columns:1fr;gap:2rem}
@media(min-width:768px){
  .nl-container{padding:0 1.5rem}
  .nl-grid-2{grid-template-columns:repeat(2,1fr)}
  .nl-grid-4{grid-template-columns:repeat(4,1fr)}
  .nl-grid-content-sidebar{grid-template-columns:1fr 300px}
}

/* === TOPBAR === */
.nl-topbar{background:var(--g900);color:var(--white);padding:0.5rem 0;font-size:0.8rem;position:relative;overflow:hidden}
.nl-topbar::before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,var(--green) 33%,var(--white) 33% 66%,var(--red) 66%)}
.nl-topbar-inner{display:flex;justify-content:center;align-items:center}
.nl-topbar-text{display:flex;align-items:center;gap:0.5rem}
@media(min-width:768px){.nl-topbar-inner{justify-content:space-between}}
.nl-topbar-date{display:none}
@media(min-width:768px){.nl-topbar-date{display:block;color:var(--g400)}}
.nl-live-dot{width:8px;height:8px;background:#22c55e;border-radius:50%;display:inline-block;animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}

/* === HEADER === */
.nl-header{background:var(--white);border-bottom:1px solid var(--g200);position:sticky;top:0;z-index:100}
.nl-header-main{padding:0.75rem 0}
.nl-header-inner{display:flex;align-items:center;justify-content:space-between}
.nl-logo{display:flex;align-items:center;gap:0.5rem;color:var(--g900);text-decoration:none}
.nl-logo:hover{color:var(--g900)}
.nl-logo-text{display:flex;align-items:center;gap:0.5rem}
.nl-logo-text strong{font-size:1.1rem;display:block}
.nl-logo-text small{font-size:0.7rem;color:var(--g500);display:block}
.nl-logo-icon{flex-shrink:0}
.nl-logo-ball-img{width:44px;height:44px;flex-shrink:0;object-fit:contain}

/* === NAVIGATION === */
.nl-nav{display:none}
.nl-nav.is-open{display:block;position:absolute;top:100%;left:0;right:0;background:var(--white);border-bottom:1px solid var(--g200);box-shadow:var(--shadow-lg);z-index:99}
.nl-nav-list{display:flex;flex-direction:column}
.nl-nav-list li a{display:block;padding:0.75rem 1rem;color:var(--g700);font-size:0.9rem;font-weight:500;border-bottom:1px solid var(--g100);transition:background .2s,color .2s}
.nl-nav-list li a:hover{background:var(--primary-bg);color:var(--primary)}
@media(min-width:768px){
  .nl-nav{display:block!important;position:static}
  .nl-nav-list{flex-direction:row;gap:0;flex-wrap:wrap}
  .nl-nav-list li a{padding:0.4rem 0.5rem;border:none;font-size:0.78rem;border-radius:var(--radius)}
  .nl-menu-toggle{display:none!important}
}
@media(min-width:1024px){
  .nl-nav-list li a{padding:0.5rem 0.7rem;font-size:0.85rem}
}

/* === MOBILE MENU TOGGLE === */
.nl-menu-toggle{display:flex;flex-direction:column;gap:5px;padding:0.5rem;width:40px;height:40px;justify-content:center;align-items:center}
.nl-menu-toggle span{width:22px;height:2px;background:var(--g700);border-radius:2px;transition:transform .3s}
.nl-menu-toggle.is-active span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.nl-menu-toggle.is-active span:nth-child(2){opacity:0}
.nl-menu-toggle.is-active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}

/* === BREADCRUMBS === */
.nl-breadcrumbs{max-width:1200px;margin:0 auto;padding:0.75rem 1rem;font-size:0.85rem;color:#70757a;border-bottom:1px solid #e8eaed}
.nl-breadcrumbs ol{display:flex;align-items:center;gap:0.5rem;flex-wrap:wrap}
.nl-breadcrumbs li::after{content:'›';margin-left:0.5rem;color:var(--g400)}
.nl-breadcrumbs li:last-child::after{display:none}
.nl-breadcrumbs a{color:var(--g500)}
.nl-breadcrumbs a:hover{color:var(--primary)}

/* === HERO SECTION === */
.nl-hero{background:linear-gradient(135deg,#1e40af 0%,#1a56db 50%,#3b82f6 100%);color:var(--white);padding:3rem 0;text-align:center}
.nl-hero h1{font-size:1.75rem;font-weight:800;margin-bottom:0.75rem;color:var(--white)}
.nl-hero-subtitle{font-size:1rem;opacity:0.9;max-width:600px;margin:0 auto 2rem}
.nl-cd-date{font-size:0.9rem;opacity:0.8;margin-top:1rem;text-align:center}
@media(min-width:768px){.nl-hero{padding:4rem 0}.nl-hero h1{font-size:2.5rem}}

/* === COUNTDOWN === */
.nl-countdown{display:flex;justify-content:center;gap:0.75rem;max-width:360px;margin:0 auto}
.nl-countdown-item{border:2px solid #e0e0e0;border-radius:8px;padding:12px 16px;background:#fff;min-width:60px;text-align:center}
.nl-cd-num{display:block;font-size:1.5rem;font-weight:800;font-variant-numeric:tabular-nums;color:#000}
.nl-cd-label{display:block;font-size:0.65rem;text-transform:uppercase;letter-spacing:0.05em;margin-top:0.25rem;color:#000}

/* === SECTIONS === */
.nl-section{padding:2.5rem 0}
.nl-section-alt{background:var(--g50)}
.nl-section-header{text-align:center;margin-bottom:2rem}
.nl-section-title{font-size:1.5rem;font-weight:700;margin-bottom:1.25rem}
.nl-section-subtitle{color:var(--g500);font-size:0.95rem}
@media(min-width:768px){.nl-section{padding:3rem 0}.nl-section-title{font-size:1.75rem}}

/* === PAGE HEADER === */
.nl-page-header{background:linear-gradient(135deg,#1e40af,#3b82f6);color:var(--white);padding:2.5rem 0;text-align:center}
.nl-page-header h1{font-size:1.5rem;font-weight:800;margin-bottom:0.5rem;color:var(--white)}
.nl-page-header p,.nl-page-subtitle{color:rgba(255,255,255,.85);font-size:0.95rem;max-width:700px;margin:0 auto}
@media(min-width:768px){.nl-page-header{padding:3.5rem 0}.nl-page-header h1{font-size:2rem}}

/* === CARDS === */
.nl-card{background:var(--white);border:1px solid var(--g200);border-radius:var(--radius-lg);padding:1.75rem 2rem;margin-top:1.5rem;margin-bottom:1rem;text-align:center;box-shadow:var(--shadow)}
.nl-card:hover{box-shadow:var(--shadow-md)}
.nl-card h3{font-size:1.05rem;font-weight:700;margin-bottom:0.5rem;color:var(--g900)}
.nl-card p{font-size:0.9rem;color:var(--g600);line-height:1.6;margin-bottom:0.5rem}
.nl-card .nl-content-text{text-align:left}
.nl-card .nl-content-text ul,.nl-card .nl-content-text ol{text-align:left}
.nl-card-image{border-radius:var(--radius-lg) var(--radius-lg) 0 0;overflow:hidden;margin:-1.75rem -2rem 1.25rem}
.nl-card-image img{width:100%;object-fit:cover}
.nl-card-content{padding:0}
.nl-card-meta{font-size:0.8rem;color:var(--g500);margin-bottom:0.5rem}
@media(max-width:640px){.nl-card{padding:1.25rem 1rem}.nl-card-image{margin:-1.25rem -1rem 1rem}}

/* === LOTTERY BALLS === */
.nl-ball{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;color:var(--white);font-weight:700;font-size:0.9rem;text-shadow:0 1px 2px rgba(0,0,0,.2);box-shadow:inset 0 -2px 4px rgba(0,0,0,.15),0 2px 4px rgba(0,0,0,.1);margin:3px;line-height:1;flex-shrink:0}
.nl-ball-small,.nl-ball.nl-ball-small{width:30px;height:30px;font-size:0.7rem;margin:2px}
.nl-ball-normal{width:42px;height:42px}
.nl-ball-large{width:56px;height:56px;font-size:1.25rem}
.nl-ball-separator{display:inline-flex;align-items:center;font-weight:700;color:var(--g400);margin:0 0.25rem;font-size:1.2rem}
.nl-ball-label{font-size:0.65rem;color:var(--g500);font-weight:600;margin-left:-0.25rem;margin-right:0.5rem}

/* === RESULTS GRID === */
.nl-results-grid{display:grid;grid-template-columns:1fr;gap:1rem}
@media(min-width:640px){.nl-results-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.nl-results-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1200px){.nl-results-grid{grid-template-columns:repeat(4,1fr)}}

/* === RUOTA CARD === */
.nl-ruota-card{background:var(--white);border:1px solid var(--g200);border-radius:var(--radius-lg);overflow:hidden;transition:box-shadow .2s}
.nl-ruota-card:hover{box-shadow:var(--shadow-md)}
.nl-ruota-header{padding:0.5rem 0.75rem;color:var(--white);font-weight:700;font-size:0.85rem}
.nl-ruota-name{font-weight:700}
.nl-ruota-numbers{padding:0.75rem;display:flex;flex-wrap:wrap;gap:4px;justify-content:center}
.nl-ruota-numbers-small .nl-ball{width:28px;height:28px;font-size:0.65rem;margin:1px}

/* === SUPERENALOTTO CARD === */
.nl-superenalotto-card{background:var(--white);border:1px solid var(--g200);border-radius:var(--radius-lg);padding:1.5rem;text-align:center;border-top:4px solid #f59e0b}
.nl-superenalotto-card h3{font-size:1.25rem;margin-bottom:1rem}
.nl-superenalotto-extra{margin-top:1rem;display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}

/* === 10ELOTTO CARD === */
.nl-diecielotto-card{background:var(--white);border:1px solid var(--g200);border-radius:var(--radius-lg);padding:1.5rem;text-align:center;border-top:4px solid #22c55e}
.nl-diecielotto-card h3{font-size:1.25rem;margin-bottom:1rem}
.nl-diecielotto-extra{margin-top:1rem;display:flex;gap:1.5rem;justify-content:center;font-size:0.9rem;color:var(--g600)}
.nl-diecielotto-extra strong{color:var(--g900)}

/* === JACKPOT === */
.nl-jackpot-display{text-align:center;margin:1rem 0}
.nl-jackpot-label{font-size:0.8rem;color:var(--g500);text-transform:uppercase;letter-spacing:0.05em;font-weight:600}
.nl-jackpot-amount{font-size:2rem;font-weight:800;color:var(--primary);display:block;margin:0.25rem 0}
@media(min-width:768px){.nl-jackpot-amount{font-size:2.5rem}}

/* === QUICK LINKS === */
.nl-quick-links{display:grid;grid-template-columns:1fr;gap:1rem}
@media(min-width:640px){.nl-quick-links{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.nl-quick-links{grid-template-columns:repeat(3,1fr)}}
.nl-quick-link-card{display:flex;flex-direction:column;align-items:center;text-align:center;background:var(--white);border:1px solid var(--g200);border-radius:var(--radius-lg);padding:1.5rem;transition:all .2s;text-decoration:none;color:var(--g700)}
.nl-quick-link-card:hover{border-color:var(--primary-light);box-shadow:var(--shadow-md);transform:translateY(-2px);color:var(--g700)}
.nl-quick-link-card h3{font-size:1rem;color:var(--g900);margin:0.75rem 0 0.5rem}
.nl-quick-link-card p{font-size:0.85rem;color:var(--g500);margin:0;line-height:1.5}
.nl-ql-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:var(--primary-bg);border-radius:var(--radius);flex-shrink:0;margin-left:0.75rem}

/* === RUOTE LINKS === */
.nl-ruote-links{display:flex;flex-wrap:wrap;gap:0.5rem;justify-content:center;margin-top:1rem}
.nl-ruota-link{display:inline-flex;align-items:center;gap:0.5rem;padding:0.5rem 1rem;border:2px solid;border-radius:var(--radius);font-weight:600;font-size:0.85rem;transition:all .2s;text-decoration:none;color:var(--g700)}
.nl-ruota-link:hover{background:var(--primary-bg);color:var(--primary)}
.nl-ruota-link-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.nl-ruota-badge{display:inline-block;padding:0.15rem 0.5rem;border-radius:var(--radius);font-size:0.75rem;font-weight:600;color:#000}

/* === BUTTONS === */
.nl-btn{display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;padding:0.625rem 1.25rem;border-radius:var(--radius);font-weight:600;font-size:0.9rem;transition:all .2s;border:2px solid transparent;min-height:44px;text-decoration:none;cursor:pointer;line-height:1.4}
.nl-btn-primary{background:var(--primary);color:var(--white);border-color:var(--primary);margin-top:1.5rem}
.nl-btn-primary:hover{background:var(--primary-dark);border-color:var(--primary-dark);color:var(--white)}
.nl-btn-outline{background:transparent;color:var(--primary);border-color:var(--primary)}
.nl-btn-outline:hover{background:var(--primary);color:var(--white)}
.nl-btn-sm{padding:0.375rem 0.75rem;font-size:0.8rem;min-height:36px}

/* === TABLES === */
.nl-table{width:100%;border-collapse:collapse;font-size:0.875rem;text-align:center;margin:0 auto;table-layout:fixed;border:1px solid var(--g200);border-radius:var(--radius)}
.nl-table thead th{background:var(--primary);padding:0.75rem;text-align:center;font-weight:600;color:var(--white);border-bottom:2px solid var(--primary-dark);border-right:1px solid rgba(255,255,255,.15);white-space:nowrap;cursor:default;font-size:0.8rem;text-transform:uppercase;letter-spacing:0.03em}
.nl-table thead th:last-child{border-right:none}
.nl-table thead th[data-sort]{cursor:pointer}
.nl-table thead th[data-sort]:hover{background:var(--primary-dark)}
.nl-table tbody td{padding:0.75rem;border-bottom:1px solid var(--g200);border-right:1px solid var(--g100);vertical-align:middle;text-align:center}
.nl-table tbody td:last-child{border-right:none}
.nl-table tbody tr:nth-child(even){background:var(--g50)}

.nl-table tbody tr:hover{background:var(--g50)}
.nl-table-sortable th{cursor:pointer;user-select:none}
.nl-table-spia{max-width:600px;margin-left:auto;margin-right:auto}
.nl-status-published{color:var(--green);font-weight:600;font-size:0.8rem}

/* === STATS === */
.nl-stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-top:2rem}
@media(min-width:768px){.nl-stats-grid{grid-template-columns:repeat(4,1fr)}}
.nl-stats-grid>:first-child:nth-last-child(1){grid-column:2/4}
.nl-stats-grid>:first-child:nth-last-child(2){grid-column:2}
.nl-stats-grid>:first-child:nth-last-child(2)+*{grid-column:3}
.nl-stat-card{background:var(--white);border:1px solid var(--g200);border-radius:var(--radius-lg);padding:1.25rem;text-align:center}
.nl-stat-card-number,.nl-stat-card .nl-stat-freq{font-size:1.75rem;font-weight:800;color:var(--primary)}
.nl-stat-card-label{font-size:0.8rem;color:var(--g500);margin-top:0.25rem}
.nl-stat-ball{margin:0 auto 0.5rem}
.nl-stat-rank{font-size:0.75rem;font-weight:700;color:var(--g400);text-transform:uppercase}
.nl-stat-freq{font-size:1.5rem;font-weight:800;color:var(--primary)}
.nl-stat-detail{font-size:0.8rem;color:var(--g500);margin-top:1rem}
.nl-stat-info{font-size:0.8rem;color:var(--g500);margin-top:0.25rem}

/* === FREQUENCY BAR === */
.nl-freq-bar,.nl-freq-bar-inline{height:8px;background:var(--g100);border-radius:4px;overflow:hidden;flex:1}
.nl-freq-bar-fill{height:100%;background:var(--primary);border-radius:4px;transition:width .3s}

/* === HEATMAP === */
.nl-heatmap-low{background-color:#dcfce7;color:#166534}
.nl-heatmap-mid{background-color:#fef9c3;color:#854d0e}
.nl-heatmap-high{background-color:#fecaca;color:#991b1b}
.nl-heat-label{font-size:0.7rem;font-weight:600;padding:0.15rem 0.4rem;border-radius:var(--radius);display:inline-block}

/* === TABS === */
.nl-tabs,.nl-tabs-nav{display:flex;border-bottom:2px solid var(--g200);overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:0}
.nl-tabs::-webkit-scrollbar,.nl-tabs-nav::-webkit-scrollbar{display:none}
.nl-tab{padding:0.75rem 1rem;font-size:0.85rem;font-weight:500;color:var(--g500);border:none;background:none;cursor:pointer;white-space:nowrap;border-bottom:2px solid transparent;margin-bottom:-2px;transition:all .2s;min-height:44px}
.nl-tab:hover{color:var(--g700)}
.nl-tab.is-active,.nl-tab-active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}
.nl-tab-content,.nl-tab-panel,.nl-tabs-content>div{display:none;padding-top:1.25rem}
.nl-tab-content.is-active,.nl-tab-panel.is-active,.nl-tabs-content>.is-active{display:block}

/* === LIVE BADGE === */
.nl-live-badge{display:inline-flex;align-items:center;gap:0.4rem;padding:0.2rem 0.75rem;background:#dc2626;color:var(--white);border-radius:999px;font-size:0.7rem;font-weight:700;text-transform:uppercase;letter-spacing:0.05em}
.nl-live-badge::before{content:'';width:6px;height:6px;background:var(--white);border-radius:50%;animation:pulse 1.5s infinite}
.nl-live-badge-next{display:inline-flex;align-items:center;gap:0.4rem;padding:0.2rem 0.75rem;background:var(--g600);color:var(--white);border-radius:999px;font-size:0.7rem;font-weight:600}

/* === FAQ === */
.nl-faq{margin:1.5rem 0}
.nl-faq-list{display:flex;flex-direction:column;gap:0.5rem}
.nl-faq-item{background:var(--white);border:1px solid var(--g200);border-radius:var(--radius);overflow:hidden}
.nl-faq-question{width:100%;text-align:left;padding:1rem 1.25rem;font-weight:600;font-size:0.95rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;cursor:pointer;color:var(--g800);background:none;border:none;transition:background .2s}
.nl-faq-question:hover{background:var(--g50)}
.nl-faq-toggle,.nl-faq-icon{font-size:1.25rem;color:var(--g400);flex-shrink:0;transition:transform .3s}
.nl-faq-answer{padding:0 1.25rem 1rem;color:var(--g600);line-height:1.6;font-size:0.9rem;overflow:hidden}
.nl-faq-answer p{margin-bottom:0.75rem}
.nl-faq-answer ul,.nl-faq-answer ol{margin:0.75rem 0;padding-left:1.5rem}
.nl-faq-answer li{margin-bottom:0.4rem;list-style:disc}
.nl-faq-item.nl-faq-open .nl-faq-toggle{transform:rotate(45deg)}

/* === SMORFIA === */
.nl-smorfia-search{max-width:500px;margin:0 auto 2rem;position:relative}
.nl-smorfia-search input{width:100%;padding:0.75rem 1rem;border:2px solid var(--g200);border-radius:var(--radius-lg);font-size:1rem;transition:border-color .2s}
.nl-smorfia-search input:focus{outline:none;border-color:var(--primary)}
.nl-smorfia-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0.75rem}
@media(min-width:640px){.nl-smorfia-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1024px){.nl-smorfia-grid{grid-template-columns:repeat(5,1fr)}}
.nl-smorfia-item{background:var(--white);border:1px solid var(--g200);border-radius:var(--radius);padding:1rem;text-align:center;transition:all .2s}
.nl-smorfia-item:hover{border-color:var(--primary-light);box-shadow:var(--shadow)}
.nl-smorfia-meaning{font-size:0.8rem;color:var(--g600);margin-top:0.5rem;line-height:1.3}

/* === NUMERI SPIA === */
.nl-spia-result-card{background:var(--primary-bg);border:1px solid var(--primary-light);border-radius:var(--radius-lg);padding:1.5rem;text-align:center;margin:1rem 0}
.nl-spia-result-balls{display:flex;justify-content:center;gap:0.5rem;margin:1rem 0;flex-wrap:wrap}
.nl-spia-numero{font-size:1.1rem;font-weight:700;color:var(--primary);margin-bottom:0.5rem}
.nl-spia-tip{font-size:0.85rem;color:var(--g500);font-style:italic;margin-top:0.75rem}

/* === CALCULATOR === */
.nl-calculator{background:var(--g50);border:1px solid var(--g200);border-radius:var(--radius-lg);padding:1.25rem 1.5rem;max-width:720px;margin:0 auto}
.nl-calc-row{display:flex;gap:0.75rem;align-items:flex-end;flex-wrap:wrap}
.nl-calc-field{flex:1;min-width:100px}
.nl-calc-field label{display:block;font-weight:600;font-size:0.8rem;color:var(--g600);margin-bottom:0.35rem}
.nl-calc-field--btn{flex:0 0 auto;min-width:auto}
.nl-calc-field--btn .nl-btn{width:100%;white-space:nowrap}
.nl-form-group{margin-bottom:1rem}
.nl-form-group label{display:block;font-weight:600;font-size:0.875rem;margin-bottom:0.375rem;color:var(--g700)}
.nl-input,.nl-select,
.nl-calculator select,.nl-calculator input{width:100%;padding:0.5rem 0.625rem;border:1px solid var(--g300);border-radius:var(--radius);font-size:0.9rem;transition:border-color .2s;background:var(--white)}
.nl-input:focus,.nl-select:focus,
.nl-calculator select:focus,.nl-calculator input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(26,86,219,.1)}
.nl-calc-result{display:flex;align-items:center;gap:0.75rem;justify-content:center;background:var(--white);border:1px solid var(--g200);border-radius:var(--radius);padding:0.875rem 1.25rem;margin-top:0.875rem;flex-wrap:wrap}
.nl-calc-result-label{font-size:0.85rem;font-weight:600;color:var(--g600)}
.nl-calc-result-amount{font-size:1.5rem;font-weight:800;color:var(--primary)}
.nl-calc-result-desc{font-size:0.8rem;color:var(--g500)}
@media(max-width:640px){.nl-calc-row{flex-direction:column;gap:0.625rem}.nl-calc-field{min-width:100%}}

/* === SEARCH FORM === */
.nl-search-form{display:flex;gap:0.75rem;flex-wrap:wrap;align-items:flex-end}
.nl-search-form input[type="date"],.nl-search-form input[type="text"],.nl-search-form input[type="search"]{flex:1;min-width:200px;padding:0.625rem 0.75rem;border:1px solid var(--g300);border-radius:var(--radius);font-size:0.9rem}
.nl-search-form input:focus{outline:none;border-color:var(--primary)}
.nl-search-input-wrap{flex:1;min-width:200px;display:flex;gap:0.5rem;align-items:center}
.nl-search-label{font-size:0.85rem;font-weight:600;color:var(--g700);margin-bottom:0.5rem;display:block}
.nl-search-form .nl-btn-primary{margin-top:0.25rem}
.nl-search-result{margin-top:1rem}
.nl-search-error{color:var(--red);font-size:0.85rem;margin-top:0.5rem}

/* === INFO BOX === */
.nl-info-box{background:var(--primary-bg);border-left:4px solid var(--primary);border-radius:0 var(--radius) var(--radius) 0;padding:1.25rem 1.5rem;margin:1.5rem 0;font-size:0.95rem;line-height:1.6}
.nl-info-box p{margin:0}
.nl-info-box strong{color:var(--primary)}

/* === CALENDAR === */
.nl-calendar{background:var(--white);border:1px solid var(--g200);border-radius:var(--radius-lg);overflow:hidden;max-width:500px;margin:0 auto}
.nl-calendar table{width:100%;border-collapse:collapse}
.nl-calendar th{background:var(--g50);padding:0.5rem;font-size:0.75rem;color:var(--g500);text-transform:uppercase;text-align:center;font-weight:600}
.nl-calendar td{padding:0.5rem;text-align:center;font-size:0.85rem;border:1px solid var(--g100)}

/* === PERIOD BAR & FILTER BUTTONS === */
.nl-period-bar{display:flex;align-items:center;gap:0.75rem;background:var(--g50);border:1px solid var(--g200);border-radius:var(--radius-lg);padding:0.625rem 1rem;margin-bottom:2rem}
.nl-period-label{font-size:0.85rem;font-weight:600;color:var(--g600);white-space:nowrap}
.nl-filter-buttons{display:flex;gap:0.375rem;flex-wrap:wrap}
.nl-filter-btn{padding:0.375rem 0.875rem;border:1px solid var(--g300);border-radius:999px;font-size:0.8rem;font-weight:600;color:var(--g600);background:var(--white);cursor:pointer;transition:all .2s;line-height:1.3}
.nl-filter-btn:hover{background:var(--primary-bg);color:var(--primary);border-color:var(--primary)}
.nl-filter-btn.active,.nl-filter-btn.is-active{background:var(--primary);color:var(--white);border-color:var(--primary);box-shadow:0 1px 3px rgba(26,86,219,.3)}

/* === RELATED LINKS === */
.nl-related-links{margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--g200)}
.nl-related-links h3{font-size:1.1rem;margin-bottom:1rem}
.nl-related-links ul{display:flex;flex-direction:column;gap:0.5rem}
.nl-related-links li{list-style:none}
.nl-related-links a{display:flex;align-items:center;gap:0.5rem;padding:0.5rem 0;color:var(--primary);font-weight:500;font-size:0.9rem}

/* === CONTENT TEXT === */
.nl-content-text{font-size:0.95rem;line-height:1.7;color:var(--g700);text-align:left}
.nl-content-text h2{font-size:1.3rem;margin:2rem 0 0.75rem;color:var(--g900)}
.nl-content-text h3{font-size:1.1rem;margin:1.5rem 0 1.5rem;color:var(--g900);text-align:left}
.nl-content-text p{margin-bottom:1rem}
.nl-content-text ul,.nl-content-text ol{margin:1rem 0;padding-left:1.5rem}
.nl-content-text li{margin-bottom:0.5rem;list-style:disc}
.nl-content-text a{color:var(--primary);text-decoration:underline}

/* === ARCHIVE === */
.nl-archive-filters{display:flex;flex-wrap:wrap;gap:1rem;padding:1.25rem;background:var(--g50);border:1px solid var(--g200);border-radius:var(--radius-lg);margin-bottom:1.5rem;align-items:flex-end}
.nl-archive-filters .nl-form-group{flex:1;min-width:150px;margin-bottom:0}
.nl-archive-results{margin-top:1rem}

/* === NOTIFICATION FORM === */
.nl-notification-form{max-width:400px;margin:0 auto}
.nl-notification-form input[type="email"]{width:100%;padding:0.625rem;border:1px solid var(--g300);border-radius:var(--radius);margin-bottom:0.75rem}

/* === AUTO REFRESH === */
.nl-auto-refresh-notice{display:flex;align-items:center;gap:0.5rem;justify-content:center;font-size:0.85rem;color:var(--g500);margin:1rem 0}

/* === EXTRA BALL === */
.nl-extra-ball{display:inline-flex;flex-direction:column;align-items:center;gap:0.25rem}
.nl-extra-label{font-size:0.7rem;font-weight:600;color:var(--g500);text-transform:uppercase}

/* === EXTRA NUMBERS (Jolly/SuperStar inline) === */
.nl-extra-numbers{display:flex;gap:2rem;margin-top:1.5rem;flex-wrap:wrap}
.nl-extra-numbers .nl-extra-ball{flex-direction:row;align-items:center;gap:0.75rem;flex:1;min-width:240px;background:var(--g50);border:1px solid var(--g200);border-radius:var(--radius-lg);padding:0.875rem 1rem}
.nl-extra-ball-wrap{flex-shrink:0}
.nl-extra-ball-info{display:flex;flex-direction:column;gap:0.15rem}
.nl-extra-ball-info strong{font-size:0.9rem}
.nl-extra-ball-info span{font-size:0.8rem;color:var(--g500);line-height:1.4}

/* === STEPS LIST === */
.nl-steps{display:flex;flex-direction:column;gap:0.75rem;margin-top:1.5rem;counter-reset:step}
.nl-step{display:flex;gap:0.875rem;align-items:flex-start;background:var(--white);border:1px solid var(--g200);border-radius:var(--radius-lg);padding:1rem 1.25rem}
.nl-step-num{flex-shrink:0;width:32px;height:32px;border-radius:50%;background:var(--primary);color:var(--white);font-weight:700;font-size:0.85rem;display:flex;align-items:center;justify-content:center;margin-top:0.1rem}
.nl-step-content strong{display:block;font-size:0.95rem;color:var(--g900);margin-bottom:0.25rem}
.nl-step-content p{font-size:0.85rem;color:var(--g600);line-height:1.5;margin:0}

/* === ODDS LIST === */
.nl-odds-list{display:flex;flex-direction:column;gap:0.625rem;margin-top:1.5rem}
.nl-odds-item{display:flex;align-items:baseline;gap:1rem;padding:0.875rem 1rem;background:var(--white);border:1px solid var(--g200);border-left:4px solid var(--primary);border-radius:0 var(--radius) var(--radius) 0;flex-wrap:wrap}
.nl-odds-cat{font-weight:700;font-size:0.9rem;color:var(--g900);min-width:160px}
.nl-odds-value{font-weight:800;font-size:1rem;color:var(--primary);white-space:nowrap}
.nl-odds-desc{flex-basis:100%;font-size:0.8rem;color:var(--g500);line-height:1.5;margin-top:0.25rem}
@media(max-width:640px){.nl-odds-item{flex-direction:column;gap:0.25rem}.nl-odds-cat{min-width:auto}}

/* === FOOTER === */
.nl-footer{background:var(--g900);color:var(--g300);padding:3rem 0 1.5rem;margin-top:2rem;position:relative}
.nl-footer::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--green) 33%,var(--white) 33% 66%,var(--red) 66%)}
.nl-footer h4{color:var(--white);font-size:1rem;margin-bottom:1rem}
.nl-footer-grid{display:grid;grid-template-columns:1fr;gap:2rem;margin-bottom:2rem}
@media(min-width:768px){.nl-footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.nl-footer-grid{grid-template-columns:repeat(4,1fr)}}
.nl-footer-col{text-align:center}
.nl-footer-col p{font-size:0.85rem;line-height:1.6;color:var(--g400)}
.nl-footer-col ul{display:flex;flex-direction:column;gap:0.4rem;align-items:center}
.nl-footer-col a{color:var(--g400);font-size:0.85rem;transition:color .2s}
.nl-footer-col a:hover{color:var(--white)}
@media(min-width:768px){.nl-footer-col{text-align:left}.nl-footer-col ul{align-items:flex-start}}
.nl-footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:1.5rem;display:flex;flex-direction:column;gap:1rem;align-items:center;text-align:center}
@media(min-width:768px){.nl-footer-bottom{flex-direction:row;justify-content:space-between;text-align:left}}
.nl-footer-legal{font-size:0.8rem}
.nl-footer-legal p{margin:0 0 0.25rem;color:var(--g500)}
.nl-footer-links{display:flex;gap:1rem;align-items:center;font-size:0.8rem}
.nl-footer-links a{color:var(--g400)}
.nl-footer-links a:hover{color:var(--white)}
.nl-disclaimer{font-size:0.75rem;color:var(--g500);line-height:1.5;margin-top:0.5rem;padding:0.75rem;background:rgba(255,255,255,.03);border-radius:var(--radius);border:1px solid rgba(255,255,255,.05)}
.nl-18plus{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:2px solid var(--red);color:var(--red);border-radius:50%;font-weight:800;font-size:0.75rem;flex-shrink:0;line-height:1}

/* === WIDGETS === */
.nl-widget{background:var(--white);border:1px solid var(--g200);border-radius:var(--radius-lg);margin-bottom:1rem;overflow:hidden}
.nl-widget-title{background:var(--g50);padding:0.75rem 1rem;font-size:0.9rem;font-weight:600;border-bottom:1px solid var(--g200);margin:0}
.nl-widget ul{padding:0.75rem 1rem}
.nl-widget li{padding:0.375rem 0;border-bottom:1px solid var(--g100)}
.nl-widget li:last-child{border:none}
.nl-widget a{color:var(--g600);font-size:0.85rem}
.nl-widget a:hover{color:var(--primary)}
.nl-widget-countdown{padding:1.25rem;text-align:center}
.nl-widget-countdown h3{margin-bottom:1rem}
.nl-widget-jackpot{padding:1.25rem;text-align:center}
.nl-widget-jackpot h3{margin-bottom:0.5rem}

/* === SIDEBAR === */
.nl-sidebar{display:flex;flex-direction:column;gap:1rem}

/* === PAGINATION === */
.nl-pagination{margin-top:2rem;display:flex;justify-content:center}
.nl-pagination .nav-links{display:flex;gap:0.25rem}
.nl-pagination a,.nl-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;border-radius:var(--radius);font-size:0.85rem;border:1px solid var(--g200);color:var(--g600)}
.nl-pagination a:hover{background:var(--primary-bg);border-color:var(--primary);color:var(--primary)}
.nl-pagination .current{background:var(--primary);color:var(--white);border-color:var(--primary)}

/* === POSTS GRID === */
.nl-posts-grid{display:grid;grid-template-columns:1fr;gap:1.5rem}
@media(min-width:768px){.nl-posts-grid{grid-template-columns:repeat(2,1fr)}}

/* === FEATURED IMAGE === */
.nl-featured-image{margin:1rem 0;border-radius:var(--radius-lg);overflow:hidden}

/* === 404 PAGE === */
.nl-404-card{max-width:600px;margin:0 auto;padding:3rem 2rem}
.nl-404-title{font-size:4rem;color:var(--primary);margin-bottom:0.5rem}
.nl-404-actions{margin-top:2rem}
.nl-404-actions .nl-btn-outline{margin-left:0.5rem}
.nl-404-links{margin-top:2rem}
.nl-404-links ul{list-style:none;padding:0}

/* === INFO BOX VARIANTS === */
.nl-info-box--blue{background:#eef6ff;border-left-color:#3498db}
.nl-info-box--yellow{background:#fff8e1;border-left-color:#f5a623}

/* === STAT CARD VARIANTS === */
.nl-stat-card--gold{border-left:4px solid #f5a623}
.nl-stat-card--gold h3{color:#f5a623}
.nl-stat-card--red{border-left:4px solid #e74c3c}
.nl-stat-card--red h3{color:#e74c3c}
.nl-stat-card--blue{border-left:4px solid #3498db}
.nl-stat-card--blue h3{color:#3498db}
.nl-stat-card--purple{border-left:4px solid #9b59b6}
.nl-stat-card--purple h3{color:#9b59b6}

/* === CARD VARIANTS === */
.nl-card--gold{border-top:4px solid #f5a623}
.nl-card--gold h3{color:#f5a623}
.nl-card--red{border-top:4px solid #e74c3c}
.nl-card--red h3{color:#e74c3c}
.nl-card--overflow{overflow-x:auto}
.nl-card--narrow{max-width:500px;margin-left:auto;margin-right:auto}
.nl-card--narrow-md{max-width:600px;margin-left:auto;margin-right:auto}

/* === ODDS ITEM COLORS === */
.nl-odds-item--gold{border-left-color:#f5a623}
.nl-odds-item--gold .nl-odds-value{color:#f5a623}
.nl-odds-item--red{border-left-color:#e74c3c}
.nl-odds-item--red .nl-odds-value{color:#e74c3c}
.nl-odds-item--purple{border-left-color:#9b59b6}
.nl-odds-item--purple .nl-odds-value{color:#9b59b6}
.nl-odds-item--blue{border-left-color:#3498db}
.nl-odds-item--blue .nl-odds-value{color:#3498db}
.nl-odds-item--green{border-left-color:#2ecc71}
.nl-odds-item--green .nl-odds-value{color:#2ecc71}
.nl-odds-item--teal{border-left-color:#1abc9c}
.nl-odds-item--teal .nl-odds-value{color:#1abc9c}

/* === EXTRA BALL COLORS === */
.nl-extra-jolly{color:#e74c3c}
.nl-extra-superstar{color:#9b59b6}

/* === NOTIFICATION FORM === */
.nl-notification-form{display:flex;flex-direction:column;gap:1rem;align-items:center}
.nl-notification-form .nl-input{max-width:400px;width:100%}
.nl-notification-form .nl-checkboxes{display:flex;gap:0.75rem;flex-wrap:wrap;justify-content:center}
.nl-notification-form label{display:flex;align-items:center;gap:0.35rem;font-size:0.9rem}
.nl-notification-form .nl-form-note{font-size:0.8rem;color:#888;margin:0}

/* === CALENDAR LEGEND === */
.nl-calendar-legend{padding:0.75rem;display:flex;gap:1.5rem;justify-content:center;font-size:0.85rem;color:#666}
.nl-calendar-legend-dot{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:4px;vertical-align:middle}
.nl-calendar-legend-dot--draw{background:#eef6ff;border:1px solid var(--primary)}
.nl-calendar-legend-dot--today{border:2px solid #e74c3c}

/* === SMORFIA TAGS === */
.nl-smorfia-tags{display:flex;flex-wrap:wrap;gap:0.5rem;margin-top:0.75rem}
.nl-smorfia-tag{display:inline-flex;align-items:center;gap:0.35rem;padding:0.25rem 0.5rem;background:#f8f9fa;border-radius:6px;font-size:0.85rem}

/* === SEARCH FORM VERTICAL === */
.nl-search-form--vertical{display:flex;flex-direction:column;gap:1rem;align-items:center}
.nl-label{font-weight:600;font-size:1rem}
.nl-input--date{max-width:300px;width:100%}

/* === NOTIFICATION CHECKBOXES === */
.nl-checkboxes{display:flex;gap:0.75rem;flex-wrap:wrap;justify-content:center}
.nl-form-note{font-size:0.8rem;color:#888;margin:0}

/* === UTILITY === */
.nl-hidden{display:none}
.nl-muted{color:#888;font-size:0.9rem}
.nl-mb-0{margin-bottom:0}
.nl-overflow-x{overflow-x:auto}

/* === PRINT === */
@media print{
  .nl-topbar,.nl-header,.nl-footer,.nl-menu-toggle,.nl-btn,.nl-countdown{display:none!important}
  body{color:#000;background:#fff}
  .nl-ball{border:2px solid #000;color:#000;background:none!important;text-shadow:none;box-shadow:none}
}
