/* Notrix Domains - Main Stylesheet */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1629;
  --bg-card: #141c2e;
  --bg-card-hover: #1a2540;
  --neon-blue: #00d4ff;
  --neon-green: #39ff14;
  --neon-yellow: #ffd700;
  --neon-purple: #bf5fff;
  --neon-pink: #ff2d78;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #4a5568;
  --border: #1e2d4a;
  --border-glow: rgba(0, 212, 255, 0.3);
  --success: #39ff14;
  --error: #ff2d78;
  --warning: #ffd700;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: all 0.2s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; line-height: 1.6; }
a { color: var(--neon-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: #33e0ff; }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(10,14,26,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.brand-accent { color: var(--neon-blue); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link { color: var(--text-secondary); padding: 8px 14px; border-radius: var(--radius); font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.nav-link:hover { color: var(--text-primary); background: var(--bg-card); }
.cart-link { position: relative; }
.cart-badge { background: var(--neon-blue); color: #000; font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: 20px; margin-left: 4px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.4rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; cursor: pointer; border: none; transition: var(--transition); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--neon-blue), #0099cc); color: #000; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,212,255,0.4); color: #000; }
.btn-green { background: linear-gradient(135deg, var(--neon-green), #22cc00); color: #000; }
.btn-green:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(57,255,20,0.4); color: #000; }
.btn-yellow { background: linear-gradient(135deg, var(--neon-yellow), #e6b800); color: #000; }
.btn-yellow:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,215,0,0.4); color: #000; }
.btn-outline { background: transparent; border: 1.5px solid var(--neon-blue); color: var(--neon-blue); }
.btn-outline:hover { background: var(--neon-blue); color: #000; }
.btn-danger { background: linear-gradient(135deg, var(--neon-pink), #cc0044); color: #fff; }
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,45,120,0.4); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: var(--transition); }
.card:hover { border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.card-glow { box-shadow: var(--shadow-glow); border-color: rgba(0,212,255,0.3); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.form-control { width: 100%; padding: 12px 16px; background: var(--bg-secondary); border: 1.5px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 0.95rem; font-family: inherit; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--neon-blue); box-shadow: 0 0 0 3px rgba(0,212,255,0.1); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d4ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--neon-blue); cursor: pointer; }

/* Alerts */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; font-weight: 500; }
.alert-success { background: rgba(57,255,20,0.1); border: 1px solid rgba(57,255,20,0.3); color: var(--neon-green); }
.alert-error { background: rgba(255,45,120,0.1); border: 1px solid rgba(255,45,120,0.3); color: var(--neon-pink); }
.alert-warning { background: rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.3); color: var(--neon-yellow); }
.alert-info { background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.3); color: var(--neon-blue); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg-secondary); }
th { padding: 14px 16px; text-align: left; font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
td { padding: 14px 16px; font-size: 0.9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-card-hover); }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-green { background: rgba(57,255,20,0.15); color: var(--neon-green); border: 1px solid rgba(57,255,20,0.3); }
.badge-blue { background: rgba(0,212,255,0.15); color: var(--neon-blue); border: 1px solid rgba(0,212,255,0.3); }
.badge-yellow { background: rgba(255,215,0,0.15); color: var(--neon-yellow); border: 1px solid rgba(255,215,0,0.3); }
.badge-red { background: rgba(255,45,120,0.15); color: var(--neon-pink); border: 1px solid rgba(255,45,120,0.3); }
.badge-gray { background: rgba(160,174,192,0.15); color: var(--text-secondary); border: 1px solid rgba(160,174,192,0.2); }

/* Hero Section */
.hero { padding: 100px 24px 80px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%); pointer-events: none; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.3); color: var(--neon-blue); padding: 6px 16px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; margin-bottom: 24px; }
.hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero h1 .highlight { background: linear-gradient(135deg, var(--neon-blue), var(--neon-green)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.15rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto 40px; }

/* Search Bar */
.search-bar { display: flex; max-width: 680px; margin: 0 auto; background: var(--bg-card); border: 2px solid var(--border); border-radius: 50px; overflow: hidden; transition: var(--transition); }
.search-bar:focus-within { border-color: var(--neon-blue); box-shadow: 0 0 0 4px rgba(0,212,255,0.1); }
.search-bar input { flex: 1; padding: 18px 24px; background: none; border: none; color: var(--text-primary); font-size: 1rem; font-family: inherit; }
.search-bar input:focus { outline: none; }
.search-bar button { padding: 12px 28px; margin: 6px; background: linear-gradient(135deg, var(--neon-blue), #0099cc); color: #000; border: none; border-radius: 40px; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: var(--transition); }
.search-bar button:hover { transform: scale(1.03); box-shadow: 0 4px 20px rgba(0,212,255,0.4); }

/* TLD Pills */
.tld-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.tld-pill { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); padding: 6px 14px; border-radius: 20px; font-size: 0.82rem; cursor: pointer; transition: var(--transition); }
.tld-pill:hover { border-color: var(--neon-blue); color: var(--neon-blue); }

/* Features */
.features { padding: 80px 24px; max-width: 1280px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 48px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: var(--transition); }
.feature-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.feature-icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* Section Headers */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* Search Results */
.search-results { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
.result-item { display: flex; align-items: center; justify-content: space-between; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 12px; transition: var(--transition); }
.result-item:hover { border-color: rgba(0,212,255,0.3); }
.result-item.available { border-left: 3px solid var(--neon-green); }
.result-item.unavailable { border-left: 3px solid var(--text-muted); opacity: 0.6; }
.result-domain { font-size: 1.1rem; font-weight: 700; }
.result-price { font-size: 1.2rem; font-weight: 800; color: var(--neon-green); }
.result-status { font-size: 0.8rem; color: var(--text-muted); }

/* Dashboard Layout */
.dash-layout { display: flex; min-height: 100vh; }
.dash-sidebar { width: 260px; background: var(--bg-secondary); border-right: 1px solid var(--border); padding: 24px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-shrink: 0; }
.dash-logo { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; padding: 8px 12px; margin-bottom: 32px; }
.dash-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.dash-nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius); color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.dash-nav-item:hover { background: var(--bg-card); color: var(--text-primary); }
.dash-nav-item.active { background: rgba(0,212,255,0.1); color: var(--neon-blue); border: 1px solid rgba(0,212,255,0.2); }
.dash-icon { font-size: 1.1rem; }
.dash-user-info { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bg-card); border-radius: var(--radius); margin-top: 16px; }
.dash-avatar { width: 36px; height: 36px; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; color: #000; flex-shrink: 0; }
.dash-username { font-size: 0.9rem; font-weight: 600; }
.dash-logout { font-size: 0.78rem; color: var(--text-muted); }
.dash-logout:hover { color: var(--neon-pink); }
.dash-main { flex: 1; padding: 32px; overflow-y: auto; }
.dash-header { margin-bottom: 32px; }
.dash-header h1 { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; }
.dash-header p { color: var(--text-secondary); margin-top: 6px; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.stat-value { font-size: 2rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; }
.stat-label { color: var(--text-secondary); font-size: 0.85rem; margin-top: 4px; }
.stat-blue .stat-value { color: var(--neon-blue); }
.stat-green .stat-value { color: var(--neon-green); }
.stat-yellow .stat-value { color: var(--neon-yellow); }
.stat-purple .stat-value { color: var(--neon-purple); }

/* DNS Manager */
.dns-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.dns-record-row { display: grid; grid-template-columns: 80px 1fr 1fr 80px 80px 100px; gap: 12px; align-items: center; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; font-size: 0.88rem; }
.dns-record-row:hover { border-color: rgba(0,212,255,0.2); }
.dns-type { font-weight: 700; color: var(--neon-blue); font-size: 0.8rem; }
.dns-actions { display: flex; gap: 6px; }
.propagation-indicator { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; }
.prop-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon-green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 1000; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; transition: var(--transition); }
.modal-close:hover { color: var(--neon-pink); }

/* Cart */
.cart-container { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
.cart-item { display: flex; align-items: center; justify-content: space-between; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 12px; }
.cart-domain { font-size: 1.1rem; font-weight: 700; }
.cart-price { font-size: 1.1rem; font-weight: 800; color: var(--neon-green); }
.cart-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-top: 24px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; font-weight: 800; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 16px; }

/* Auth Pages */
.auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo img { width: 48px; height: 48px; }
.auth-logo h1 { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; margin-top: 12px; }
.auth-divider { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin: 20px 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* Footer */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 40px 24px; margin-top: 80px; }
.footer-container { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--neon-blue); }
.footer-copy { color: var(--text-muted); font-size: 0.82rem; }

/* Admin */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: #080c18; border-right: 1px solid var(--border); padding: 24px 16px; flex-shrink: 0; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); color: var(--text-secondary); font-size: 0.88rem; font-weight: 500; margin-bottom: 4px; transition: var(--transition); }
.admin-nav-item:hover { background: var(--bg-card); color: var(--text-primary); }
.admin-nav-item.active { background: rgba(191,95,255,0.1); color: var(--neon-purple); }
.admin-main { flex: 1; padding: 32px; }

/* Pricing Table */
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table td, .pricing-table th { padding: 10px 14px; border: 1px solid var(--border); font-size: 0.88rem; }
.pricing-table input { background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-primary); padding: 6px 10px; border-radius: 6px; width: 100px; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-secondary); padding: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; height: auto; position: relative; }
  .dns-record-row { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
}

/* Utilities */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.text-green { color: var(--neon-green); }
.text-blue { color: var(--neon-blue); }
.text-yellow { color: var(--neon-yellow); }
.text-red { color: var(--neon-pink); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.page-wrap { max-width: 1280px; margin: 0 auto; padding: 40px 24px; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(0,212,255,0.3); border-top-color: var(--neon-blue); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Exact domain match highlight */
.result-item.exact-match {
  border: 2px solid var(--neon-blue);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.15);
  background: rgba(0, 212, 255, 0.04);
}

/* Search sections */
.section-label { font-size:0.82rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-secondary); padding:20px 0 8px; border-top:1px solid var(--border); margin-top:8px; }
.section-label:first-child { border-top:none; margin-top:0; }
.load-more-btn { width:100%; padding:12px; background:transparent; border:1px dashed var(--border); border-radius:var(--radius); color:var(--neon-blue); font-size:0.88rem; font-weight:600; cursor:pointer; margin:8px 0 4px; transition:var(--transition); }
.load-more-btn:hover { background:rgba(0,212,255,0.05); border-color:var(--neon-blue); }
