/* Premium UI overrides (non-breaking): loaded after existing styles */

:root{
  --pt-accent:#002041;
  --pt-bg:#E5E5E5;
  --pt-surface:#ffffff;
  --pt-text:#0f172a;
  --pt-muted:#475569;
  --pt-border:rgba(15,23,42,.12);
  --pt-radius:14px;
}

html{color-scheme:light;}

body{
  background:var(--pt-bg);
  color:var(--pt-text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

body,td,th{
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  line-height:1.55;
}

a{transition:color .15s ease, background-color .15s ease, border-color .15s ease;}

a:hover{color:var(--pt-accent);}

/* Top header */
.pt-topbar{
  background:var(--pt-accent);
  box-shadow:0 10px 30px rgba(2,6,23,.25);
}

.pt-topbar table{max-width:1600px;margin:0 auto;}
.pt-topbar table{padding:0 14px;box-sizing:border-box;}

/* Reduce default table cell padding (cellpadding override) */
.pt-topbar td{padding:6px 6px !important;}

/* Give nav more room by shrinking logo */
.pt-topbar td:first-child{width:170px !important;}
.pt-topbar td:first-child img{width:165px !important;height:auto !important;}

.pt-nav a{
  display:inline-block;
  padding:3px 5px;
  border-radius:999px;
  color:#fff !important;
  text-decoration:none;
  font-weight:600;
  letter-spacing:0;
  margin-right:4px !important;
}

.pt-nav a:hover{
  background:rgba(255,255,255,.12);
}

/* Desktop header: keep single line on tighter widths */
.pt-nav{white-space:nowrap;}

@media (max-width: 1400px){
  .pt-nav{font-size:12.75px;}
  .pt-nav a{padding:3px 4px;margin-right:3px !important;}
}

@media (max-width: 1160px){
  .pt-nav{font-size:12.25px;}
  .pt-nav a{padding:3px 3px;margin-right:2px !important;}
  .pt-topbar td:first-child{width:155px !important;}
  .pt-topbar td:first-child img{width:150px !important;}
}

/* Main container */
#main{
  max-width:1120px;
  margin:0 auto;
  padding:0 14px;
  box-sizing:border-box;
}

#main > table,
#main table[width="1066"],
#main table[width="980"],
#main table[width="95%"]{
  width:100% !important;
}

/* Card-like tables/blocks */
#main table[style*="background:#fff"],
#main table[style*="background:#FFF"],
#main table[style*="background: #fff"],
#main table[style*="background: #FFF"]{
  border-radius:var(--pt-radius);
  border:1px solid var(--pt-border) !important;
  box-shadow:0 12px 30px rgba(2,6,23,.08);
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
}

/* Inner pages: common content blocks */
.menu,.sagmenu{
  background:var(--pt-surface) !important;
  border:1px solid var(--pt-border) !important;
  box-shadow:0 10px 22px rgba(2,6,23,.06);
  border-radius:var(--pt-radius) !important;
  text-shadow:none !important;
}

.bubble{
  border-radius:var(--pt-radius) !important;
  border:1px solid var(--pt-border) !important;
  box-shadow:0 10px 22px rgba(2,6,23,.06);
}

/* Table headers / section bars that often look like boxes */
#main td[style*="background:#efefef"],
#main td[style*="background: #efefef"],
#main td[style*="background:#F7F7F7"],
#main td[style*="background: #F7F7F7"],
#main td[style*="background:#f7f7f7"],
#main td[style*="background: #f7f7f7"]{
  background:#f8fafc !important;
}

/* Improve readability for long-form inner pages */
h1,h2,h3{letter-spacing:-.2px;}

/* Keep legacy tables as-is (avoid layout shifts) */
#main table{border-collapse:collapse;}

/* Keep legacy fixed-width tables fluid but centered */
#main table[width="1066"],
#main table[width="980"],
#main table[width="690"],
#main table[width="250"]{
  max-width:100% !important;
}

/* Inputs */
.kutu,.selectkutu,.sbox,.sboxs{
  border-radius:12px !important;
}

.kutu:focus,.selectkutu:focus,.sbox:focus,.sboxs:focus{
  border-color:rgba(0,32,65,.45) !important;
  box-shadow:0 0 0 4px rgba(0,32,65,.14) !important;
}

/* Buttons */
.button{
  border-radius:999px !important;
  padding:10px 14px !important;
}

/* Footer */
.pt-footer{
  background:#333;
  color:#e5e7eb;
}

.pt-footer td{color:#e5e7eb;}
.pt-footer h2,
.pt-footer span{color:#f3f4f6 !important;}

.pt-footer a{color:#fff !important;opacity:.92;}
.pt-footer a:hover{opacity:1;}

.pt-footer > tbody > tr > td{padding:18px 14px !important;}
.pt-footer table{max-width:1120px;margin:0 auto;}
.pt-footer p{margin:10px 0;}
.pt-footer img{filter:brightness(1.05);}
}

.pt-footer a{opacity:.95;}
.pt-footer a:hover{opacity:1;}

/* Media and images */
img{max-width:100%;height:auto;}

/* Mobile menu polish (keeps existing structure) */
#mobilac{background:rgba(15,23,42,.55) !important;backdrop-filter:saturate(1.2) blur(8px);}
#mobilmenu{border-top-left-radius:18px;border-top-right-radius:18px;overflow:hidden;}
