:root{
    --bg:#f8fafc;
    --surface:#ffffff;
    --muted:#64748b;
    --accent:#4f46e5;
    --accent-dark:#4338ca;
    --accent-600:#6366f1;
    --card:#ffffff;
    --glass:rgba(255,255,255,0.6);
    --gradient-main:linear-gradient(135deg,#4f46e5,#7c3aed);
    --footer-bg:#050814;
    --footer-soft:#0b1220;
    --max-width:1200px;
    --radius:14px;
    --container-padding:24px;
} 

.site-footer {
    background:linear-gradient(180deg,var(--footer-soft),var(--footer-bg));
    color:#e2e8f0;
    padding-top:110px;
    border-top:1px solid rgba(255,255,255,0.06);
}

.footer-inner {
    max-width:1600px;
    margin:0 auto;
    padding:0 72px 80px;
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr;
    gap:80px;
}

.footer-newsletter h3 {
    font-size:34px;
    font-weight:800;
    margin-bottom:18px;
    color:#ffffff;
}

.footer-newsletter h3 span {
    background:var(--gradient-main);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.footer-newsletter p {
    color:#94a3b8;
    max-width:48ch;
    line-height:1.7;
    margin-bottom:30px;
}

.newsletter-form {
    display:flex;
    gap:12px;
    margin-bottom:18px;
}

.newsletter-form input {
    flex:1;
    padding:14px 18px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,0.08);
    background:rgba(255,255,255,0.03);
    color:#ffffff;
}

.newsletter-form input::placeholder{
    color:#64748b;
}

.newsletter-form input:focus {
    outline:none;
    border-color:var(--accent);
}

.newsletter-form button {
    background:var(--gradient-main);
    border:none;
    border-radius:12px;
    padding:14px 28px;
    font-weight:700;
    color:#fff;
    cursor:pointer;
    transition:all 0.25s ease;
    box-shadow:0 10px 25px rgba(79,70,229,0.35);
}

.newsletter-form button:hover {
    transform:translateY(-2px);
    box-shadow:0 14px 30px rgba(79,70,229,0.5);
}

.footer-newsletter small {
    color:#64748b;
    font-size:14px;
}

.footer-newsletter a {
    color:#ffffff;
    text-decoration:underline;
}

.footer-links h4,
.footer-contact h4 {
    font-size:18px;
    font-weight:700;
    margin-bottom:22px;
    color:#ffffff;
}

.footer-links ul {
    list-style:none;
    padding:0;
    margin:0;
}

.footer-links li {
    margin-bottom:14px;
}

.footer-links a,
.footer-contact a {
    color:#94a3b8;
    text-decoration:none;
    transition:0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color:#ffffff;
    transform:translateX(3px);
}

.footer-contact p {
    color:#94a3b8;
    line-height:1.7;
    margin-bottom:18px;
}

.footer-bottom {
    position:relative;
    border-top:1px solid rgba(255,255,255,0.06);
    padding:30px 72px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.footer-bottom span {
    color:#64748b;
    font-size:14px;
}

.footer-bottom ul {
    list-style:none;
    display:flex;
    gap:26px;
    justify-content:flex-end;
    margin:0;
    padding:0;
}

.footer-bottom a {
    color:#64748b;
    text-decoration:none;
    transition:0.2s;
}

.footer-bottom a:hover {
    color:#ffffff;
}

.footer-top-btn {
    position:absolute;
    top:0;
    left:50%;
    transform:translate(-50%,-50%);
    width:48px;
    height:48px;
    border-radius:50%;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.1);
    color:#ffffff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    font-weight:600;
    text-decoration:none;
    backdrop-filter:blur(6px);
    transition:all 0.3s ease;
    z-index:5;
}

.footer-top-btn:hover {
    transform:translate(-50%,-65%) scale(1.05);
    background:var(--gradient-main);
    border-color:transparent;
}
.newsletter-form { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
} 
.newsletter-row { 
    display: flex; 
    gap: 12px; 
    width: 100%; 
} 
.newsletter-row input { 
    flex: 3; 
    padding: 14px 18px; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.08); 
    background: rgba(255,255,255,0.03); 
    color: #fff; 
} 
.newsletter-row button { 
    flex: 1; 
    background: var(--gradient-main); 
    border: none; 
    border-radius: 12px; 
    color: #fff; 
    font-weight: 700; 
    cursor: pointer; 
    box-shadow: 0 10px 25px rgba(79,70,229,0.35); 
    transition: all 0.25s ease; 
}
.newsletter-row button:hover { 
    transform: translateY(-2px); 
} 
.newsletter-privacy {
  display: flex;
  justify-content: flex-start;
}
.newsletter-label {
  display: flex;
  align-items: center;
  justify-content: flex-start; 
  width: fit-content;
  text-align: left;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}
.newsletter-label input {
  margin: 0; 
  width: 14px;
  height: 14px;
  accent-color: #4f46e5;
  flex-shrink: 0;
}
.newsletter-label input[type="checkbox"] {
  margin: 0 !important;
}
.newsletter-label span {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}
#newsletter-message {
  margin-top: 10px;
  font-size: 14px;
}

.flash {
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 10px;
  font-weight: 500;
}

.flash.success {
  background: #dcfce7;
  color: #166534;
}

.flash.error {
  background: #fee2e2;
  color: #991b1b;
}

.flash.exists {
  background: #fef9c3;
  color: #854d0e;
}