/*
Theme Name:   CryptoLins
Theme URI:    https://cryptolins.com
Description:  Production-ready dark SaaS theme — full redesign v6
Version:      6.0.0
License:      GNU General Public License v2 or later
Text Domain:  cryptolins
*/

/* ── Global Resets ─────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000000;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ─────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 0; }

/* ── Selection ─────────────────────── */
::selection { background: #fff; color: #000; }

/* ── Focus ─────────────────────────── */
*:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }

/* ── Autofill ──────────────────────── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #0d0d0d inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
}

/* ── STRICT B&W Color Palette ─────── */
.bg-dark   { background: #000000; }
.bg-dark-2 { background: #0a0a0a; }
.bg-dark-3 { background: #111111; }
.bg-dark-4 { background: #1a1a1a; }
.text-primary { color: #ffffff; }
.border-dark-4 { border-color: #1f1f1f; }

/* ── DM Sans font import ──────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;0,9..40,900&display=swap');

/* ── Typography classes ─────────────── */
.text-white  { color: #fff; }
.text-gray-300 { color: #c0c0c0; }
.text-gray-400 { color: #888888; }
.text-gray-500 { color: #555555; }
.text-gray-600 { color: #333333; }

/* ── Fadeup animation ───────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Dashboard sidebar redesign ─────── */
aside#sidebar,
aside#mobile-sidebar {
    background: #000 !important;
    border-right: 1px solid #1f1f1f !important;
}

/* ── Sidebar nav link active ─────────── */
.nav-link.bg-primary {
    background: #fff !important;
    color: #000 !important;
    border-radius: 6px;
}

/* ── Stat cards ──────────────────────── */
.stat-card {
    background: #0a0a0a;
    border: 1px solid #1f1f1f;
    border-radius: 0;
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}
.stat-card:hover::before { opacity: 1; }

/* ── Badge override: remove soft colors ─ */
.bg-green-500\/10, .bg-blue-500\/10, .bg-emerald-500\/10, .bg-yellow-500\/10,
.bg-red-500\/10, .bg-primary\/10 {
    background: #111 !important;
}
.border-green-500\/20, .border-blue-500\/20, .border-emerald-500\/20,
.border-yellow-500\/20, .border-red-500\/30, .border-primary\/20, .border-primary\/30 {
    border-color: #2a2a2a !important;
}
.text-green-400, .text-emerald-400 { color: #fff !important; }
.text-blue-400 { color: #fff !important; }
.text-yellow-400 { color: #888 !important; }
.text-red-400 { color: #888 !important; }
.text-primary { color: #fff !important; }

/* ── Input / select redesign ──────────── */
input, select, textarea {
    background: #0a0a0a !important;
    border-color: #1f1f1f !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-family: inherit !important;
}
input:focus, select:focus, textarea:focus {
    border-color: #fff !important;
}

/* ── Button redesign ─────────────────── */
button.bg-primary, a.bg-primary,
button[class*="bg-primary"], a[class*="bg-primary"] {
    background: #fff !important;
    color: #000 !important;
    border-radius: 0 !important;
    border: 1px solid #fff !important;
}
button.bg-primary:hover, a.bg-primary:hover,
button[class*="bg-primary"]:hover, a[class*="bg-primary"]:hover {
    background: #e0e0e0 !important;
}

/* ── Rounded to sharp corners ──────── */
.rounded-xl, .rounded-lg, .rounded-md { border-radius: 0 !important; }
.rounded { border-radius: 0 !important; }

/* ── Table redesign ───────────────── */
table thead tr th { border-bottom: 1px solid #1f1f1f !important; color: #444 !important; }
table tbody tr { border-bottom: 1px solid #111 !important; }
table tbody tr:hover { background: #0d0d0d !important; }

/* ── Status badges ──────────────────── */
.status-paid   { background: #111; color: #fff; border: 1px solid #222; padding: 2px 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.status-pending{ background: #111; color: #555; border: 1px solid #222; padding: 2px 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.status-expired{ background: #0a0a0a; color: #333; border: 1px solid #1a1a1a; padding: 2px 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── HERO ───────────────────────────── */
.hero-section { position: relative; }

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5) 15%, rgba(0,0,0,0.5) 85%, transparent);
    pointer-events: none;
}

/* ── BUTTONS ────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #000;
    padding: 12px 24px;
    border-radius: 0;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s;
    border: 1px solid #fff;
    cursor: pointer;
    letter-spacing: 0.02em;
}
.btn-primary:hover { background: #e0e0e0; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #aaa;
    padding: 12px 20px;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #222;
    transition: all 0.15s;
    cursor: pointer;
}
.btn-secondary:hover { color: #fff; border-color: #444; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #666;
    padding: 12px 16px;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s;
    cursor: pointer;
}
.btn-ghost:hover { color: #fff; border-color: #222; }

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    transition: gap 0.2s, opacity 0.2s;
}
.btn-link:hover { gap: 10px; opacity: 0.7; }

.btn-large { padding: 15px 32px; font-size: 15px; }

.btn-outline-block {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    color: #aaa;
    padding: 13px;
    border-radius: 0;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #222;
    transition: all 0.15s;
    box-sizing: border-box;
}
.btn-outline-block:hover { color: #fff; border-color: #444; }

.btn-primary-block {
    display: block;
    width: 100%;
    text-align: center;
    background: #fff;
    color: #000;
    padding: 13px;
    border-radius: 0;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #fff;
    transition: background 0.15s;
    box-sizing: border-box;
}
.btn-primary-block:hover { background: #ddd; }

/* ── SECTION HEADER ─────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }

/* ── STEP CARDS ─────────────────────── */
.step-card {
    background: #0a0a0a;
    border: 1px solid #1f1f1f;
    border-radius: 0;
    padding: 30px;
    transition: border-color 0.2s;
}
.step-card:hover { border-color: #333; }

.step-number {
    font-size: 44px;
    font-weight: 900;
    color: #1a1a1a;
    font-family: ui-monospace, monospace;
    margin-bottom: 18px;
    letter-spacing: -0.04em;
}

/* ── FEATURE CARDS ──────────────────── */
.feature-card {
    background: #0a0a0a;
    border: 1px solid #1f1f1f;
    border-radius: 0;
    padding: 26px;
    transition: border-color 0.2s;
}
.feature-card:hover { border-color: #333; }

.feature-icon {
    width: 40px;
    height: 40px;
    background: #111;
    border: 1px solid #222;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

/* ── CODE CARD ──────────────────────── */
.code-card {
    background: #000;
    border: 1px solid #1f1f1f;
    border-radius: 0;
    overflow: hidden;
    min-width: 0;
}
.code-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    border-bottom: 1px solid #1f1f1f;
    background: #0a0a0a;
}
.code-card-title {
    font-size: 11px;
    font-family: ui-monospace, 'Courier New', monospace;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}
.code-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #333 #000;
}
.code-scroll-wrap::-webkit-scrollbar { height: 3px; }
.code-scroll-wrap::-webkit-scrollbar-track { background: #000; }
.code-scroll-wrap::-webkit-scrollbar-thumb { background: #333; }
.code-pre {
    padding: 20px;
    font-size: 12.5px;
    line-height: 1.75;
    font-family: ui-monospace, 'Courier New', monospace;
    color: #aaa;
    margin: 0;
    white-space: pre;
    min-width: max-content;
}

/* ── PRICING CARDS ──────────────────── */
.pricing-card {
    background: #0a0a0a;
    border: 1px solid #1f1f1f;
    border-radius: 0;
    padding: 32px;
    position: relative;
    overflow: hidden;
}
.pricing-card--featured { border-color: #fff; }
.featured-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #fff;
}

/* ── METRIC ITEMS ───────────────────── */
.metric-item {
    border-left: 1px solid #1f1f1f;
    padding: 4px 24px 4px 20px;
}

/* ── INTEGRATION GRID ───────────────── */
.integration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* ── COIN OVERLAYS ──────────────────── */
.coin-overlay { pointer-events: none; }

/* ── Responsive ─────────────────────── */
@media (max-width: 1024px) {
    .integration-grid { grid-template-columns: 1fr; gap: 40px; }
    .integration-text { order: 1; }
    .code-card        { order: 2; }
}

@media (max-width: 768px) {
    .step-card { padding: 22px; }
    .step-number { font-size: 32px; }
    .coin-overlay { display: none; }
}

@media (max-width: 640px) {
    .code-pre { font-size: 11px; padding: 14px; }
    .code-card-title { font-size: 10px; }
}
