*{margin:0;padding:0;box-sizing:border-box;border-radius:0}
:root{
  --purple:#74007c;
  --accent:#567b95;
  --accent-dark:#3d5f75;
  --text:#111;
  --muted:#666;
  --border:#e5e5e5;
  --bg:#fafafa;
}
body{
  font-family:"Montserrat",Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}
img{display:block;width:100%;object-fit:cover}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
h1,h2,h3,h4,h5,h6{
  font-family:"Times New Roman",Times,serif;
  line-height:1.2;
  margin-bottom:10px;
}
.container{width:100%;max-width:100%;padding:24px}

/* HEADER + NAV */
.topbar,.nav,.livebar,footer{background:var(--purple);color:#fff}
.topbar{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:16px;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.14)
}
.logo{text-align:center}
.logo img{height:42px;width:auto}
.top-left,.market{font-size:12px}
.top-right{text-align:right}
.nav,.livebar{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
  padding:10px;
  flex-wrap:wrap;
  border-bottom:1px solid rgba(255,255,255,.14)
}
.nav a{font-size:14px;font-weight:600}
.live{color:#ff6b6b;font-weight:800}

/* BUTTONS */
.subscribe,.custom-page button{
  background:var(--accent);
  color:#fff;
  border:none
}
.subscribe:hover,.custom-page button:hover{background:var(--accent-dark)}
.login{background:#fff;color:#111;margin-left:8px}

/* HOME LAYOUT */
.layout{
  display:grid;
  grid-template-columns:260px 1fr 300px;
  grid-template-areas:
    "left center right"
    "strip strip right"
    "bottom-left bottom-center right";
  gap:20px;
  margin-top:24px;
  align-items:start
}
.left{grid-area:left}
.center{
  grid-area:center;
  aspect-ratio:16/9;
  overflow:hidden
}
.right{grid-area:right}
.strip{grid-area:strip}
.bottom-left{grid-area:bottom-left}
.bottom-center{grid-area:bottom-center}

.left .article,.right-main,.four-article,.strip article,.preview-article,.menu-left,.menu-bottom,.calculator,.small{
  background:#fff;
  border:1px solid var(--border);
  padding:18px
}
.left .article,.right-main{margin-bottom:18px}

.left h2,.left h3,.right-main h3,.bottom-left h3,.four-article h4,#articleContent h1,#articleContent h3,.preview-article h2{
  font-family:"Times New Roman",Times,serif;
  line-height:1.2
}
.left h2{font-size:24px}
.left h3{font-size:18px}
.right-main h3{font-size:22px}
.preview-article h2{font-size:34px}

.left p,.right-main .desc,.bottom-left p,.four-article p,.strip p,.preview-article p{
  color:#444;
  font-size:14px
}
.center img,.bottom-center img{height:100%}
.caption{font-size:12px;color:var(--muted);margin-top:6px}
.right-main .desc{line-height:1.5}

.side-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.small{transition:.2s ease}
.small:hover{transform:translateY(-3px)}
.small p{padding:10px;font-size:14px}

.strip,.four-columns{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin-top:24px
}
.strip span{
  display:block;
  padding:0 14px 14px;
  font-size:11px;
  color:#777
}
.strip img,.four-article img{margin-bottom:0}
.strip p,.four-article p{padding:12px 14px 14px}

/* ARTICLE */
#articleContent{
  max-width:850px;
  margin:auto;
  line-height:1.9
}
#articleContent h1{font-size:48px;margin-bottom:14px}
#articleContent h3{
  margin-top:30px;
  border-top:1px solid var(--border);
  padding-top:10px;
  font-size:24px
}
#articleContent p{margin-bottom:18px;color:#333}
#articleContent img{margin:22px 0}
.lead{font-size:20px}
.text-muted{color:var(--muted)!important;font-size:13px}
.text-primary{color:var(--accent)!important;font-size:13px;font-weight:700}
.badge{background:#eee!important;color:#333!important;padding:6px 10px;font-size:12px}

/* CALCULATOR */
.calculator{
  width:100%;
  max-width:320px;
  background:#111827;
  color:#fff;
  border:1px solid #334155;
  padding:18px;
  height:fit-content
}
.calculator h5{margin-bottom:14px;text-align:center}
#calcDisplay{
  width:100%;
  height:55px;
  padding:12px;
  border:1px solid #334155;
  background:#0b1220;
  color:#fff;
  text-align:right;
  font-family:"Fira Code",monospace;
  font-size:20px;
  margin-bottom:12px
}
.calc-buttons{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px
}
.calc-buttons button{
  height:55px;
  border:1px solid #334155;
  background:#1f2937;
  color:#fff;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease
}
.calc-buttons button:hover{background:#334155}
.calc-buttons button:nth-child(4n),
.calc-buttons button:nth-child(14),
.calc-buttons button:nth-child(15){background:var(--accent)}
.calc-buttons button:nth-child(4n):hover,
.calc-buttons button:nth-child(14):hover,
.calc-buttons button:nth-child(15):hover{background:var(--accent-dark)}

/* CUSTOM PAGE */
.custom-page{margin-top:30px}
.custom-page .row{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:24px
}
.content-column,.custom-page form{
  display:flex;
  flex-direction:column;
  gap:24px
}
.custom-page label{font-weight:600}
.custom-page input,.custom-page select{
  padding:10px;
  border:1px solid #ccc
}
.preview-article .meta{color:#666;font-size:14px}
.article-preview-img{margin:18px 0}
.widget-title{
  border-bottom:1px solid var(--border);
  padding-bottom:10px;
  margin-bottom:12px
}

/* FOOTER */
footer{
  margin-top:50px;
  padding:25px;
  background:linear-gradient(45deg,#800080,#800080,#606C88);
  color:#fff;
  text-align:left;
  font-family:"Montserrat",Arial,sans-serif
}
.footer-title{
  color:#fff;
  font-family:"Montserrat",Arial,sans-serif
}
footer a:hover{color:#800080;transition:.3s}
footer input{border-radius:6px}
footer button{background:#800080;border:none}
footer button:hover{background:#800080}
footer i{transition:.3s}
footer i:hover{color:#800080;transform:scale(1.2)}
.footer-bottom{
  background:transparent;
  color:#fff;
  padding-top:15px
}

/* RESPONSIVE */
@media (max-width:1100px){
  .layout,.custom-page .row,.strip,.four-columns,footer .row{grid-template-columns:1fr}
  .layout{grid-template-areas:none}
}
@media (max-width:768px){
  .topbar{
    grid-template-columns:1fr;
    text-align:center;
    gap:12px
  }
  .top-right{text-align:center}
  #articleContent h1{font-size:34px}
  .preview-article h2{font-size:28px}
}