:root {
    --primary: #3b82f6;
    --secondary: #1d4ed8;
    --bg: #0a0a0a;
    --card-bg: #111111;
    --card-hover: #161616;
    --border: rgba(255, 255, 255, 0.08);
    --glass-blur: 40px;
    --radius: 0.75rem;
    --text: #f9fafb;
    --text-muted: #94a3b8;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Outfit', system-ui, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout: Always Top Nav */
.layout-top-nav .nav-top {
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-content {
    padding: 4rem 2rem;
    margin-top: var(--header-height);
    width: 100%;
}

.main-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* UI Elements */
.logo-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-box svg {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
    color: var(--text);
}

.nav-links {
    list-style: none !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 1.5rem !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    margin-left: auto !important;
    padding: 0 !important;
}

.nav-links li {
    color: var(--text-muted) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
    white-space: nowrap !important;
}

.nav-links li:hover {
    color: var(--primary) !important;
}

.nav-cta {
    background: var(--primary) !important;
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 8px 16px -4px rgba(59, 130, 246, 0.4) !important;
}

.nav-cta:hover {
    background: white !important;
    color: var(--primary) !important;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.tool-header h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-description {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
}

.glass-panel {
    background: #111111;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s ease;
    position: relative;
}

.glass-panel:hover {
    transform: translateY(-2px);
    background: #141414;
}

.tool-header {
    text-align: center;
    margin-bottom: 4rem;
}

.tool-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    color: #ffffff;
}

.tool-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Elite Article Section */
.article-section {
    margin-top: 5rem;
    padding: 4rem;
    background: #0f172a11;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.article-body h2,
.article-body h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Ad Placement Slots - Standardized */
.ad-slot {
    width: 100%;
    margin: 3rem 0;
    padding: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Elite Footer */
.elite-footer {
    margin-top: 8rem;
    padding: 6rem 10% 4rem;
    background: #050505;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: color 0.2s;
}

.footer-links li:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Glass Toast Notifications */
.glass-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 1rem 2.5rem;
    border-radius: 4rem;
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.glass-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Common Form Elements Redux */
textarea,
input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: white;
    padding: 1rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

textarea:focus,
input:focus {
    outline: none;
    border-color: var(--primary);
    background: #202020;
}

.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

/* Elite Tool Components */
.elite-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.elite-table {
    width: 100%;
    border-collapse: collapse;
}

.elite-table th {
    background: #1a1a1a;
    padding: 1rem;
    text-align: left;
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.elite-table td {
    padding: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* Badges & Stickers */
.elite-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 6px 16px;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    margin-bottom: 1.5rem;
}

.auth-sticker {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    opacity: 0.1;
    font-size: 4rem;
    pointer-events: none;
}

/* Subtle Legal Bar (Minimalist) */
.legal-bar {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.3;
    transition: opacity 0.3s;
}

.legal-bar:hover {
    opacity: 1;
}

.legal-bar span {
    margin: 0 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.legal-bar span:hover {
    color: var(--primary);
}

/* Elite Glass Consent */
.glass-consent {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 1rem;
    z-index: 10001;
    max-width: 320px;
    transform: translateY(200%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.glass-consent.show {
    transform: translateY(0);
}

.consent-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    text-align: center;
}

.consent-content .icon {
    font-size: 1.8rem;
}

.consent-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.consent-content .primary-btn {
    padding: 10px 24px;
    font-size: 0.8rem;
    width: 100%;
}

/* Portfolio Hub Styling */
.hub-layout {
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
}

.hub-container {
    max-width: 1200px;
    width: 100%;
}

.hub-hero {
    text-align: center;
    margin-bottom: 5rem;
}

.hub-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hub-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.hub-card {
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hub-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hub-card-header {
    margin-bottom: 1.5rem;
}

.hub-tool-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.hub-site-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.hub-site-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.hub-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hub-lang-tag {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.4;
}

.hub-footer {
    margin-top: 6rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}