html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #111827;
}

/* original styles below */
* {
    box-sizing: border-box;
}



a {
    color: #2563eb;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header / Footer */
.site-header {
    background: radial-gradient(circle at top left, #1d4ed8 0, #0f172a 45%, #020617 100%);
    color: #f9fafb;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.55);
    position: relative;
    z-index: 20;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 18px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.logo::before {
    content: "W";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #facc15, #fb7185);
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
}
.logo a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 16px;
}
.top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.top-nav a {
    position: relative;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: #e5e7eb;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.45);
    backdrop-filter: blur(10px);
    transition: background .16s ease, color .16s ease, transform .08s ease, box-shadow .16s ease;
}
.top-nav a:hover {
    background: rgba(37, 99, 235, 0.9);
    color: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(37, 99, 235, .5);
}
.site-footer {


    background: #0f172a;
    color: #9ca3af;
    margin-top: 40px;

    margin-top: auto;
}
.site-footer .container {
    padding: 12px 16px 18px;
    font-size: 13px;
}

/* Main */


/* Public pages */
.page {
    background: white;
    padding: 24px;
    margin-top: 16px;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}
.page h2 {
    margin-top: 0;
    font-size: 22px;
}
.page-content {
    line-height: 1.7;
    margin-top: 12px;
    font-size: 15px;
}
.page-meta {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Admin tables */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 12px;
    gap: 12px;
}
.admin-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15,23,42,0.1);
}
.table th, .table td {
    padding: 9px 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}
.table th {
    background: #f9fafb;
    text-align: left;
    font-weight: 600;
}
.table tr:last-child td {
    border-bottom: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    background: #e5e7eb;
    color: #111827;
}
.btn.primary {
    background: #2563eb;
    color: white;
}
.btn.full-width {
    width: 100%;
}
.btn:hover {
    filter: brightness(0.97);
}

/* Forms */
.page-form {
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.08);
}
.page-form label {
    display: block;
    font-size: 13px;
    margin-bottom: 12px;
}
.page-form input[type="text"],
.page-form input[type="number"],
.page-form textarea,
.page-form input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    font-family: inherit;
}
.page-form textarea {
    resize: vertical;
}
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.form-grid {
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: 20px;
}
.form-col h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Alerts */
.alert {
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    background: #eff6ff;
    color: #1d4ed8;
}
.alert-error {
    background: #fee2e2;
    color: #b91c1c;
}

/* Auth screen */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at top, #dbeafe, #f9fafb);
}
.auth-card {
    background: white;
    padding: 24px 24px 20px;
    border-radius: 16px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 25px 60px rgba(15,23,42,0.18);
}
.auth-card h1 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 16px;
}
.auth-card label {
    display: block;
    font-size: 13px;
    margin-bottom: 12px;
}

/* Media grid */
.media-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.media-item {
    background: white;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 10px 24px rgba(15,23,42,0.06);
}
.media-thumb {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.media-thumb img {
    max-width: 100%;
    max-height: 100%;
}
.media-url {
    margin-top: 6px;
    font-size: 11px;
}

/* Responsive */
@media (max-width: 720px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
}


/* Page builder helper */
.builder-box {
    border-radius: 12px;
    border: 1px dashed #cbd5f5;
    background: #eff6ff;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.builder-title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
}
.builder-help {
    margin: 0 0 8px;
    font-size: 12px;
    color: #6b7280;
}
.builder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.builder-btn {
    font-size: 12px;
    padding: 5px 10px;
}

/* Front page block styles */
.ww-hero {
    padding: 40px 24px 32px;
    border-radius: 16px;
    background: linear-gradient(135deg,#2563eb,#7c3aed);
    color: #f9fafb;
    margin-bottom: 24px;
}
.ww-hero-inner h1 {
    margin-top: 0;
    font-size: 30px;
}
.ww-hero-inner p {
    font-size: 15px;
    max-width: 560px;
}
.ww-btn-primary {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fbbf24;
    color: #111827;
    font-size: 14px;
}

.ww-features {
    margin-bottom: 24px;
}
.ww-features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 16px;
}
.ww-feature {
    background: rgba(15,23,42,0.02);
    border-radius: 12px;
    padding: 14px 12px;
    border: 1px solid #e5e7eb;
}

.ww-two-col {
    margin-bottom: 24px;
}
.ww-two-col-inner {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 18px;
}
.ww-cta {
    margin-top: 8px;
    margin-bottom: 8px;
}
.ww-cta-inner {
    border-radius: 16px;
    padding: 22px 18px;
    background: #111827;
    color: #f9fafb;
    text-align: center;
}
.ww-spacer {
    height: 10px;
}

@media (max-width: 720px) {
    .ww-hero {
        padding: 28px 18px 24px;
    }
    .ww-hero-inner h1 {
        font-size: 24px;
    }
    .ww-two-col-inner {
        grid-template-columns: 1fr;
    }
}


/* Extra builder blocks */
.ww-center{
    text-align:center;
}
.ww-pricing{
    margin-bottom:24px;
}
.ww-pricing-row{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:16px;
}
.ww-price-card{
    background:#ffffff;
    border-radius:14px;
    padding:14px 12px;
    border:1px solid #e5e7eb;
}
.theme-dark .ww-price-card,
.theme-modern .ww-price-card{
    background:rgba(15,23,42,0.7);
    border-color:rgba(148,163,184,0.5);
}
.ww-price-card ul{
    padding-left:18px;
    margin:6px 0 0;
}
.ww-price{
    font-size:20px;
    font-weight:700;
}
.ww-price-card.ww-highlight{
    border-width:2px;
}

.ww-faq{
    margin-bottom:24px;
}
.ww-faq-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}
.ww-faq-item{
    background:#ffffff;
    border-radius:12px;
    padding:10px 12px;
    border:1px solid #e5e7eb;
}
.theme-dark .ww-faq-item,
.theme-modern .ww-faq-item{
    background:rgba(15,23,42,0.7);
    border-color:rgba(148,163,184,0.5);
}

.ww-testimonials{
    margin-bottom:24px;
}
.ww-test-row{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:14px;
}
.ww-test-card{
    background:#ffffff;
    border-radius:12px;
    padding:10px 12px;
    border:1px solid #e5e7eb;
    font-size:14px;
}
.ww-test-card span{
    display:block;
    margin-top:6px;
    font-size:12px;
    color:#6b7280;
}
.theme-dark .ww-test-card,
.theme-modern .ww-test-card{
    background:rgba(15,23,42,0.7);
    border-color:rgba(148,163,184,0.5);
}

@media(max-width:720px){
    .ww-pricing-row,
    .ww-test-row{
        grid-template-columns:1fr;
    }
}

/* Blog */
.blog-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.blog-item{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#ffffff;
}
.theme-dark .blog-item,
.theme-modern .blog-item{
  background:rgba(15,23,42,0.7);
  border-color:rgba(148,163,184,0.5);
}
.blog-item h3{
  margin:0 0 4px;
}
.blog-meta{
  font-size:12px;
  color:#6b7280;
  margin:0 0 6px;
}
.blog-body{
  margin-top:8px;
}


/* Login screen */
.login-body{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background: radial-gradient(circle at top, #1d4ed8 0, #020617 55%);
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.login-shell{
  width:100%;
  max-width:460px;
  padding:24px;
}
.login-card{
  background: rgba(15,23,42,0.96);
  border-radius: 24px;
  padding: 28px 26px 24px;
  box-shadow: 0 24px 70px rgba(15,23,42,0.9);
  color:#e5e7eb;
  border:1px solid rgba(148,163,184,0.6);
}
.login-card h1{
  margin:0 0 8px;
  font-size:24px;
}
.login-sub{
  margin:0 0 18px;
  font-size:13px;
  color:#9ca3af;
}
.login-card form label{
  display:block;
  font-size:13px;
  margin-bottom:10px;
}
.login-card input[type="text"],
.login-card input[type="password"]{
  width:100%;
  border-radius:12px;
  border:1px solid rgba(148,163,184,0.7);
  padding:9px 11px;
  margin-top:4px;
  background:#020617;
  color:#e5e7eb;
  font-size:14px;
}
.login-card .btn.full-width{
  width:100%;
  margin-top:10px;
  padding:10px 0;
  font-size:15px;
}


.blog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
}
.blog-card{
  border-radius:14px;
  border:1px solid #e5e7eb;
  padding:12px 12px 10px;
  background:#ffffff;
}
.theme-dark .blog-card,
.theme-modern .blog-card{
  background:rgba(15,23,42,0.7);
  border-color:rgba(148,163,184,0.5);
}
.blog-meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  font-size:12px;
  color:#6b7280;
  margin:2px 0 6px;
}
.blog-meta-date{
  font-variant-numeric:tabular-nums;
}
.blog-tags{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:4px;
}
.blog-badge{
  display:inline-block;
  padding:2px 7px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:11px;
}
.badge-cat{
  background:#f97316;
  color:#111827;
}
.theme-dark .blog-badge{
  background:rgba(15,23,42,0.9);
  color:#bfdbfe;
}


/* Pages table drag handle */
.drag-handle{
  cursor:move;
  text-align:center;
  font-size:16px;
  color:#64748b;
}
#pages-table tbody tr{
  background-color:#ffffff;
}
.theme-dark #pages-table tbody tr{
  background-color:rgba(15,23,42,0.6);
}


/* Main layout for content area (fills viewport height) */
.main-content {
    flex: 1;
    padding-top: 20px;
    padding-bottom: 40px;
}


/* Admin dashboard summary */
.admin-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    margin-bottom: 10px;
}
.admin-summary-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    border-radius: 18px;
    background: radial-gradient(circle at top left, #eff6ff 0, #ffffff 45%, #eef2ff 100%);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.admin-summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    color: #f9fafb;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .45);
}
.admin-summary-text {
    flex: 1;
    min-width: 0;
}
.admin-summary-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
}
.admin-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}
.admin-summary-meta {
    font-size: 12px;
    color: #4b5563;
}
.admin-summary-link {
    color: #2563eb;
    text-decoration: none;
}
.admin-summary-link:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .admin-summary {
        grid-template-columns: 1fr;
    }
}

