/*
Theme Name: DaamDesk Portal
Theme URI: https://arriyon.com/daamdesk.php
Author: Arriyon Creativ
Description: A clean, premium portal shell for DaamDesk customer login, billing and dashboards. Keeps plugin-provided portal content intact.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: daamdesk-portal
*/
:root {
  --dd-ink: #18213b; --dd-muted: #69748d; --dd-primary: #5a4cf5; --dd-primary-dark: #4338ca;
  --dd-line: #e4e8f2; --dd-surface: #fff; --dd-page: #f5f7fc; --dd-footer: #f9faff;
  --dd-shadow: 0 22px 70px rgba(35,43,83,.09);
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--dd-ink);
  background: radial-gradient(ellipse at 8% 0%,rgba(105,91,255,.10),transparent 34rem),
              radial-gradient(ellipse at 100% 10%,rgba(60,150,255,.08),transparent 28rem),var(--dd-page);
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: var(--dd-primary); text-underline-offset: 3px; } a:hover { color: var(--dd-primary-dark); }
.dd-site-header { width: 100%; padding: 0; margin: 0; }
.dd-header-inner {
  width: 100%; max-width: none; min-height: 82px; margin: 0; padding: 16px clamp(20px, 4vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(255,255,255,.94); border: 0; border-bottom: 1px solid var(--dd-line);
  border-radius: 0; box-shadow: 0 5px 24px rgba(35,43,83,.035); backdrop-filter: blur(16px);
}
.dd-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--dd-ink); text-decoration: none; min-width: 0; }
.dd-brand:hover { color: var(--dd-ink); }
.dd-brand img,.dd-brand .custom-logo { display: block; width: auto; max-width: 230px; max-height: 48px; object-fit: contain; }
.dd-brand-mark { width:42px;height:42px;flex:0 0 42px;display:inline-grid;place-items:center;border-radius:14px;color:#fff;font-weight:850;font-size:18px;letter-spacing:-.08em;background:linear-gradient(140deg,#7668ff,#493ce0);box-shadow:0 8px 18px rgba(90,76,245,.26); }
.dd-brand-name { font-weight:800;letter-spacing:-.045em;font-size:21px;line-height:1.1; }
.dd-brand-caption { display:block;margin-top:4px;font-size:10px;font-weight:700;letter-spacing:.16em;color:#8791aa;text-transform:uppercase; }
.dd-header-note { display:inline-flex;align-items:center;gap:9px;padding:9px 13px;color:#596581;background:#f7f8ff;border:1px solid #e8eaff;border-radius:999px;font-size:12px;font-weight:650;white-space:nowrap; }
.dd-status-dot { width:7px;height:7px;border-radius:50%;background:#22c58b;box-shadow:0 0 0 4px rgba(34,197,139,.12); }
.dd-main { width:100%;max-width:1440px;margin:26px auto 38px;padding:0 24px;flex:1 0 auto;min-width:0; }
.dd-content-frame { width:100%;min-width:0;min-height:300px;padding:clamp(16px,2.2vw,28px);background:var(--dd-surface);border:1px solid var(--dd-line);border-radius:24px;box-shadow:var(--dd-shadow);overflow-wrap:anywhere; }
.dd-content-frame > :first-child { margin-top:0; } .dd-content-frame > :last-child { margin-bottom:0; }
.dd-content-frame h1,.dd-content-frame h2,.dd-content-frame h3,.dd-content-frame h4 { color:var(--dd-ink);letter-spacing:-.035em;line-height:1.25; }
.dd-content-frame h1 { font-size:clamp(1.8rem,3vw,2.45rem); } .dd-content-frame h2 { font-size:clamp(1.35rem,2.2vw,1.8rem); }
.dd-content-frame p { color:var(--dd-muted); }
.dd-content-frame input:not([type=checkbox]):not([type=radio]):not([type=submit]),.dd-content-frame select,.dd-content-frame textarea { max-width:100%;border:1px solid #dfe4f0;border-radius:11px;background:#fff;color:#202945;padding:11px 13px;box-shadow:none;font:inherit; }
.dd-content-frame input:focus,.dd-content-frame select:focus,.dd-content-frame textarea:focus { outline:3px solid rgba(90,76,245,.15);border-color:#8e85ff; }
.dd-content-frame button,.dd-content-frame input[type=submit],.dd-content-frame .button,.dd-content-frame a.button { border:0;border-radius:11px;padding:11px 17px;background:linear-gradient(135deg,#6658ff,#4c40df);color:#fff;font-weight:750;cursor:pointer;text-decoration:none;box-shadow:0 8px 18px rgba(90,76,245,.18); }
.dd-content-frame button:hover,.dd-content-frame input[type=submit]:hover,.dd-content-frame .button:hover { filter:brightness(1.04);color:#fff; }
.dd-content-frame table { width:100%;border-collapse:collapse; } .dd-content-frame th,.dd-content-frame td { padding:12px 14px;border-bottom:1px solid var(--dd-line);text-align:left; }
.dd-content-frame th { color:#596581;background:#f7f8fc;font-size:12px;text-transform:uppercase;letter-spacing:.06em; }
.dd-site-footer { width: 100%; padding: 0; margin-top: auto; }
.dd-footer-inner {
  width: 100%; max-width: none; margin: 0; padding: 22px clamp(20px, 4vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 0; border-top: 1px solid var(--dd-line); border-radius: 0;
  background: rgba(255,255,255,.88); color: #818aa2; font-size: 12px;
}
.dd-content-frame .businessdesk-portal {
  width: 100% !important; max-width: 100% !important; min-width: 0 !important;
  margin: 0 !important; box-sizing: border-box !important;
}
.dd-content-frame .businessdesk-portal *,
.dd-content-frame .businessdesk-portal *::before,
.dd-content-frame .businessdesk-portal *::after { box-sizing: border-box; }
.dd-content-frame .businessdesk-portal .bdp-main { min-width: 0 !important; }
.dd-content-frame .businessdesk-portal table { max-width: 100%; }
@media (max-width: 900px) {
  .dd-content-frame:has(.businessdesk-portal) { overflow: visible !important; }
  .dd-content-frame .businessdesk-portal { width:100% !important;max-width:100% !important; }
}
@media (max-width: 640px) {
  .dd-site-header { padding:0; }
  .dd-header-inner { min-height:66px;padding:11px 16px;border-radius:0; }
  .dd-brand img,.dd-brand .custom-logo { max-width:175px;max-height:40px; }
  .dd-brand-mark { width:36px;height:36px;flex-basis:36px;border-radius:12px; }
  .dd-brand-name { font-size:18px; } .dd-brand-caption { font-size:8px; }
  .dd-header-note { font-size:0;padding:11px;gap:0; }
  .dd-main { padding:0 12px;margin:16px auto 24px; }
  .dd-content-frame { padding:20px 16px;border-radius:18px; }
  .dd-site-footer { padding:0; }
  .dd-footer-inner { padding:15px 16px;flex-direction:column;align-items:flex-start;border-radius:0;gap:7px; }
  .dd-powered { text-align:left; }
  .dd-content-frame table { display:block;overflow-x:auto;white-space:nowrap; }
}
