@charset "utf-8";

/* ===========================
   GOOGLE FONTS
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ===========================
   CSS VARIABLES
   =========================== */
:root {
  --navy:       #0f172a;
  --navy-light: #1e293b;
  --navy-mid:   #334155;
  --blue:       #2563eb;
  --blue-light: #3b82f6;
  --blue-pale:  #eff6ff;
  --teal:       #0ea5e9;
  --red:        #ef4444;
  --green:      #22c55e;
  --yellow:     #eab308;
  --white:      #ffffff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-400:   #94a3b8;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-900:   #0f172a;
  --text:       #1e293b;
  --radius:     8px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}

/* ===========================
   RESET
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body, div, p, h1, h2, h3, h4, h5, h6, ul, ol, li, dl, dt, dd, form, input, label, blockquote { padding: 0; margin: 0; }

/* ===========================
   BASE
   =========================== */
html { font-size: 16px; scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--gray-50);
  text-align: left;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-light); text-decoration: underline; }

h1 { font-size: 1.75rem; font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: .5rem; height: auto; }
h2 { font-size: 1.15rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; padding-top: .6rem; }
h3 { font-size: 1rem; font-weight: 600; color: var(--gray-700); padding-top: .4rem; padding-bottom: .2rem; }
p  { line-height: 1.7; padding-bottom: .7em; color: var(--gray-700); }

ul, ol { margin-left: 1.5rem; padding-bottom: .7em; }
li { line-height: 1.7; color: var(--gray-700); }
ul li { list-style-type: disc; }

img { border: none; max-width: 100%; }
a img { border: none; }
hr { display: block; border: none; border-top: 1px solid var(--gray-200); margin: 1.5rem 0; }

abbr { border-bottom: 1px dotted var(--gray-400); cursor: help; }

/* ===========================
   LAYOUT
   =========================== */
#page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

/* ===========================
   HEADER
   =========================== */
#site-header {
  background: var(--navy);
  margin-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  overflow: hidden;
}

#header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 2rem;
}

#logo { flex-shrink: 0; line-height: 1; }
#logo img { height: 44px; width: auto; display: block; }
#logo a { display: block; }

/* Nav */
#main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

#main-nav a {
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  font-weight: 500;
  padding: .4rem .85rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
#main-nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
#main-nav a.active { color: #fff; background: rgba(255,255,255,.12); }

#header-links {
  margin-left: auto;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  text-align: right;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
#header-links div { line-height: 1.4; }
#header-links a { color: rgba(255,255,255,.8); }
#header-links a:hover { color: #fff; }
#header-links a.simple_error { color: #fca5a5; }
#header-links strong { color: rgba(255,255,255,.5); font-weight: 500; }
#header-links br { display: none; }
#header-links span { display: inline; padding: 0 .3rem; color: rgba(255,255,255,.3); }

/* ===========================
   CONTENT LAYOUT
   =========================== */
#content-wrapper {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2rem;
  padding-top: 2rem;
  align-items: start;
}

/* Ensure grid items fill column width */
#content-wrapper > * {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* ===========================
   LEFT MENU / SIDEBAR
   =========================== */
#left-column {
  position: sticky;
  top: 76px;
}

#left-column-content {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

#left-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

#left-menu li {
  border-top: 1px solid var(--gray-100);
  list-style: none;
  margin: 0;
  padding: 0;
}

#left-menu li.first { border-top: none; }

#left-menu li a {
  display: block;
  padding: .6rem 1rem;
  color: var(--gray-600);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
}

#left-menu li a:hover {
  background: var(--blue-pale);
  color: var(--blue);
  text-decoration: none;
}

#left-menu li.active a,
#left-menu li.firstactive a {
  background: var(--blue-pale);
  color: var(--blue);
  font-weight: 600;
  border-left: 3px solid var(--blue);
}

/* Submenu */
#left-menu ul { margin: 0; padding: 0; }
#left-menu ul li a {
  padding-left: 1.75rem;
  font-size: .825rem;
  font-weight: 400;
  color: var(--gray-600);
}
#left-menu ul li.active a { color: var(--blue); }

/* ===========================
   MAIN CONTENT
   =========================== */
#main-content {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 2rem 2rem;
  min-height: 400px;
  min-width: 0;
  box-sizing: border-box;
}

#main-content h1 {
  padding-left: 0;
  padding-right: 0;
  font-size: 1.6rem;
  color: var(--navy);
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: .6rem;
  margin-bottom: 1.25rem;
}

#main-content h2,
#main-content h3,
#main-content p { padding-left: 0; padding-right: 0; }
#main-content ul { margin-left: 1.5rem; margin-right: 0; }

/* Reset overlap/span tricks */
.overlap, .overlap * { display: block; position: static; overflow: visible; height: auto !important; }
.overlap span { display: none; }

/* ===========================
   FOOTER
   =========================== */
#footer {
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#footer, #footer * {
  font-size: .8rem;
  color: var(--gray-400);
  background: none;
}

#footer #copyright { color: var(--gray-400); padding: 0; }
#footer a { color: var(--gray-400); }
#footer a:hover { color: var(--gray-600); }

/* ===========================
   COMPONENTS
   =========================== */

/* Status boxes */
.info, .success, .warning, .error, .validation {
  border-radius: var(--radius);
  margin: 1rem 0;
  padding: .875rem 1rem .875rem 3rem;
  font-size: .9rem;
  background-repeat: no-repeat;
  background-position: .875rem center;
  background-size: 1.25rem;
  border: 1px solid;
}
.info    { color: #1e40af; background-color: #dbeafe; border-color: #93c5fd; background-image: url('/images/info.png'); }
.success { color: #166534; background-color: #dcfce7; border-color: #86efac; background-image: url('/images/success.png'); }
.warning { color: #92400e; background-color: #fef3c7; border-color: #fcd34d; background-image: url('/images/warning.png'); }
.error   { color: #991b1b; background-color: #fee2e2; border-color: #fca5a5; background-image: url('/images/error.png'); }

/* Yellowbox (form container) */
.yellowbox {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1rem 0;
}

/* Driftinfo cards */
.driftinfo {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: 1rem;
  background-repeat: no-repeat;
  background-position: .875rem .875rem;
  background-size: 1.5rem;
  position: relative;
  transition: box-shadow .15s;
}
.driftinfo:hover { box-shadow: var(--shadow); }
.driftinfo img {
  position: absolute;
  left: .875rem;
  top: .875rem;
  width: 1.5rem;
  height: 1.5rem;
}
.driftinfo h2 { font-size: 1rem; margin-bottom: .25rem; padding-top: 0; }
.driftinfo p { font-size: .875rem; margin-bottom: .5rem; padding-bottom: 0; }

/* Tables */
table { margin-left: 0; border-collapse: collapse; width: auto; }
table td, table th { padding: .5rem .75rem; font-size: .875rem; }

table.horizontal {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  width: 100%;
}
table.horizontal td.header {
  font-weight: 600;
  background: var(--gray-100);
  color: var(--navy);
}
table.horizontal td.contents {
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.product-table-wrap {
  display: block;
  width: 100%;
}
table.vertical {
  background: var(--white);
  border: 1px solid var(--gray-200);
  margin-bottom: 1rem;
  width: 100%;
}
table.vertical tr.header td {
  font-weight: 600;
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy-mid);
}
table.vertical tr.contents td, table.vertical tr.odd td {
  border: 1px solid var(--gray-200);
}
table.vertical tr.odd td { background: var(--gray-50); }

/* Form inputs */
input, select, textarea {
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  color: var(--text);
  border: 1px solid var(--gray-300, #d1d5db);
  border-radius: 6px;
  padding: .4rem .6rem;
  transition: border-color .15s, box-shadow .15s;
  background: var(--white);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
input[type="submit"], input[type="button"], button {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: .5rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
input[type="submit"]:hover, input[type="button"]:hover, button:hover { background: var(--blue-light); }

input.domain, select.domain {
  background: var(--white);
  border: 1px solid var(--gray-300, #d1d5db);
  padding: .35rem .5rem;
}

input.bestill { padding: .5rem 1rem; }

/* Mono font for code */
code, .mono { font-family: 'DM Mono', monospace; font-size: .85em; }

/* Utilities */
.clear { clear: both; height: 0; overflow: hidden; }
.hide { display: none; }
.left { text-align: left; }
.right { text-align: right; }
.center { text-align: center; }
.small { font-size: .8rem; }
.bold { font-weight: 600; }
.no-text-transform { text-transform: none !important; }
.no-decoration { text-decoration: none !important; }
p.no-padding { padding-bottom: 0 !important; }

/* iBox popup - override injected styles */
#ibox_overlay {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000000;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(2px);
}

#ibox_wrapper {
  position: fixed !important;
  background: var(--white) !important;
  border-radius: 12px !important;
  border: 1px solid var(--gray-200) !important;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.35) !important;
  padding: 0 !important;
  overflow: hidden;
  min-width: 520px;
}

#ibox_content {
  background: var(--white) !important;
  border: none !important;
  overflow: auto !important;
  max-height: 80vh;
  padding: 0 !important;
}

#ibox_footer_wrapper {
  position: absolute !important;
  top: 0 !important; right: 0 !important;
  left: auto !important;
  padding: .5rem !important;
  background: transparent !important;
  z-index: 10;
}

#ibox_footer_wrapper a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  height: 28px !important;
  background: var(--gray-100) !important;
  border-radius: 50% !important;
  color: var(--gray-600) !important;
  font-size: .75rem !important;
  font-weight: 700;
  text-decoration: none !important;
  text-indent: 0 !important;
  font-family: 'Outfit', sans-serif !important;
  line-height: 1 !important;
  transition: background .15s;
}
#ibox_footer_wrapper a:hover { background: var(--gray-200) !important; }

/* Replace image-based close button with × text */
#ibox_footer_wrapper a::before { content: '×'; font-size: 1.1rem; }

#ibox_footer {
  display: none !important;
}

#ibox_loading {
  background: var(--white) url('/images/loading.gif') center center no-repeat;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 3rem;
  color: var(--gray-400);
  font-size: .875rem;
}

/* Sidebar toggle - hidden on desktop, shown on mobile */
#sidebar-toggle { display: none; }

/* ===========================
   HAMBURGER BUTTON
   =========================== */
#mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  margin-left: auto;
  border-radius: 6px;
  transition: background .15s;
}
#mobile-menu-btn:hover { background: rgba(255,255,255,.1); }
#mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
#mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
#mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
#mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-light);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: .5rem 0;
}
#mobile-nav.open { display: flex; }
#mobile-nav a {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  font-weight: 500;
  padding: .75rem 1.5rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .15s, color .15s;
}
#mobile-nav a:hover,
#mobile-nav a.active { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }

/* ===========================
   RESPONSIVE
   =========================== */

/* Tablet */
@media (max-width: 900px) {
  #header-links { display: none; }
  #main-nav a { padding: .4rem .6rem; font-size: .825rem; }
}

/* Mobile */
@media (max-width: 700px) {
  /* Header */
  #main-nav { display: none; }
  #mobile-menu-btn { display: flex; }

  #header-inner {
    padding: 0 1rem;
  }

  #logo img { height: 36px; }

  /* Layout: single column */
  #content-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 1.25rem;
  }

  /* Sidebar becomes collapsible on mobile */
  #left-column {
    position: static;
  }

  #left-column-content {
    border-radius: var(--radius);
    overflow: hidden;
  }

  /* Toggle button for sidebar */
  #sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--navy);
    color: #fff;
    border: none;
    padding: .75rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius);
  }
  #sidebar-toggle .arrow {
    transition: transform .25s;
    font-style: normal;
  }
  #sidebar-toggle.open .arrow { transform: rotate(180deg); }

  #left-menu {
    display: none;
    flex-direction: column;
  }
  #left-menu.open { display: flex; }

  #left-menu li {
    border-top: 1px solid var(--gray-100);
    border-right: none;
    flex-shrink: unset;
    white-space: normal;
  }
  #left-menu li.active a,
  #left-menu li.firstactive a {
    border-left: 3px solid var(--blue);
    border-bottom: none;
  }

  #left-menu ul { display: flex; flex-direction: column; }

  /* Main content */
  #main-content {
    padding: 1.25rem 1rem;
    min-height: auto;
    min-width: 0;
    overflow-x: hidden;
  }

  #main-content h1 { font-size: 1.3rem; }

  /* Page wrapper */
  #page-wrapper { padding: 0 .75rem 1.5rem; }

  /* Tables: horizontal scroll */
  .table-wrap, #main-content > table,
  table.horizontal {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  /* Product comparison table - breaks out of padding to use full width */
  .product-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
  }

  .product-table-wrap table.vertical {
    display: table !important;
    width: max-content !important;
    min-width: 460px;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
  }

  .product-table-wrap table.vertical td:first-child,
  .product-table-wrap table.vertical th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    font-size: .8rem;
    border-right: 2px solid var(--gray-200);
    white-space: normal;
    word-break: break-word;
    min-width: 110px;
    background: var(--white);
  }
  .product-table-wrap table.vertical tr.header td:first-child {
    background: var(--navy);
    border-right-color: var(--navy-mid);
  }
  .product-table-wrap table.vertical tr.odd td:first-child {
    background: var(--gray-50);
  }

  .product-table-wrap table.vertical td:not(:first-child),
  .product-table-wrap table.vertical th:not(:first-child) {
    min-width: 85px;
    white-space: nowrap;
  }

  /* Yellowbox */
  .yellowbox { margin: .75rem 0; padding: 1rem; }

  /* Status boxes */
  .info, .success, .warning, .error { margin: .75rem 0; }

  /* Drift cards */
  .driftinfo { padding-left: 2.75rem; }

  /* Footer */
  #footer { flex-direction: column; gap: .25rem; text-align: center; }
}

/* ===========================
   ORDER FORM
   =========================== */
.order-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 520px;
  width: 100%;
  box-sizing: border-box;
}

.domain-input-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.domain-prefix { font-weight: 600; color: var(--gray-400); }
.domain-dot    { font-weight: 700; }
.domain-field  { flex: 1; min-width: 120px; }
.tld-field     { width: auto; }

.radio-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.25rem;
}
.radio-group label { display: flex; align-items: center; gap: .5rem; cursor: pointer; }

.form-row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  align-items: center;
  gap: .5rem 1rem;
  margin-bottom: .75rem;
}
.form-row label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-600);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="file"] {
  width: 100%;
}
.form-row span { font-size: .925rem; }

.input-group {
  display: flex;
  gap: .5rem;
}
.input-group input { flex: 1; }
.input-group input[style*="5rem"] { flex: 0 0 5rem; }

.form-note {
  font-size: .8rem;
  color: var(--gray-500);
  background: var(--white);
  border-left: 3px solid var(--blue-light);
  padding: .5rem .75rem;
  margin: -.25rem 0 .75rem 11rem;
  border-radius: 0 4px 4px 0;
}

.form-submit {
  margin-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 1.25rem;
}

/* Confirmation */
.order-confirm {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  max-width: 480px;
  text-align: center;
}
.confirm-icon {
  width: 52px;
  height: 52px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.confirm-table {
  width: 100%;
  text-align: left;
  margin: 1.25rem 0;
}
.confirm-table td { padding: .4rem .6rem; border-bottom: 1px solid var(--gray-200); }
.confirm-table td:last-child { text-align: right; font-weight: 600; }

/* Mobile order form */
@media (max-width: 700px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
  .form-note { margin-left: 0; }
  .order-box { padding: 1rem; }
  .domain-input-row { gap: .3rem; }
  .domain-field { min-width: 80px; }
  .domain-prefix { font-size: .875rem; }
  .order-confirm { text-align: left; }
  .confirm-icon { margin-left: 0; }
}
