/*
Theme Name: ComfyArts
Theme URI: https://comfyarts.com
Author: ComfyArts Team
Author URI: https://comfyarts.com
Description: Premium AI Image Generation & Visual Deconstruction Platform with Apple-grade UI
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: comfyarts
Tags: dark, glassmorphism, ai, premium
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES & RESET
   ========================================================================== */
:root {
    --bg-dark: #030504;
    --emerald: #10b981;
    --emerald-light: #34d399;
    --cyan: #06b6d4;
    --purple: #9333ea;
    --glass-bg: rgba(20, 24, 22, 0.4);
    --glass-border: rgba(255,255,255,0.06);
    --nav-bg: rgba(10, 14, 12, 0.75);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background: var(--bg-dark);
}

body {
    font-family: var(--font);
    background-color: var(--bg-dark);
    color: #f5f5f7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   AMBIENT BACKGROUND & PARTICLES
   ========================================================================== */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-dark);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.12;
    animation: orbFloat 25s infinite ease-in-out alternate;
}

.orb-1 { top: -20%; left: -10%; width: 60vw; height: 60vw; background: #10b981; }
.orb-2 { bottom: -20%; right: -10%; width: 70vw; height: 70vw; background: #9333ea; animation-delay: -7s; }
.orb-3 { top: 30%; left: 40%; width: 50vw; height: 50vw; background: #06b6d4; animation-delay: -14s; }

@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(8%, 12%) scale(1.1); }
    100% { transform: translate(-5%, -8%) scale(0.95); }
}

#particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   GLASSMORPHISM
   ========================================================================== */
.glass-panel {
    background: rgba(20, 24, 22, 0.42);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
}

.glass-nav {
    background: rgba(10, 14, 12, 0.78);
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.8);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: 20px 16px;
    pointer-events: none;
}

#site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 9999px;
    pointer-events: auto;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
    max-width: 100%;
    overflow: visible;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 6px;
    border-right: 1px solid rgba(255,255,255,0.1);
    margin-right: 4px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    color: white;
}

.nav-brand-text {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: white;
}

/* Logo orb */
.logo-orb {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-orb-ring {
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg, #67e8f9, #34d399, #a78bfa, #67e8f9);
    border-radius: 50%;
    animation: spin 6s linear infinite;
    opacity: 0.9;
    filter: blur(3px);
}
.logo-orb-inner {
    position: absolute;
    inset: 2px;
    background: var(--bg-dark);
    border-radius: 50%;
    z-index: 1;
}
.logo-orb-glow {
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg, #67e8f9, #34d399, #a78bfa, #67e8f9);
    border-radius: 50%;
    mix-blend-mode: screen;
    opacity: 0.6;
    z-index: 2;
}
.logo-orb-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 10px white, 0 0 20px rgba(255,255,255,0.5);
}

.nav-link {
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    transition: all 0.3s cubic-bezier(0.25,1,0.5,1);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    background: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.nav-link:hover { color: white; }

.nav-link.active,
.nav-link[data-active="true"] {
    background: rgba(255,255,255,0.1);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 1px solid rgba(255,255,255,0.1);
    margin-left: 4px;
    padding-left: 8px;
}

#nav-credit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 9999px;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    color: #10b981;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(16,185,129,0.12);
    white-space: nowrap;
}
#nav-credit-btn:hover { background: rgba(16,185,129,0.18); }

#nav-credit-btn img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(16,185,129,0.5);
    object-fit: cover;
}

#nav-auth-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 9999px;
    background: white;
    color: black;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    white-space: nowrap;
}
#nav-auth-btn:hover { background: #e8fdf4; }

/* ==========================================================================
   VIEW TRANSITIONS (Apple-grade)
   ========================================================================== */
.view-section {
    display: none;
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition: opacity 0.65s cubic-bezier(0.32, 0.72, 0, 1),
                transform 0.65s cubic-bezier(0.32, 0.72, 0, 1);
    min-height: 100vh;
}

.view-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   BUTTON SPRING ANIMATIONS
   ========================================================================== */
.btn-spring {
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
                background-color 0.2s,
                opacity 0.2s,
                box-shadow 0.4s,
                border-color 0.2s;
}
.btn-spring:active { transform: scale(0.92); }

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
@keyframes ping { 75%,100%{transform:scale(2);opacity:0} }

@keyframes scaleIn {
    0%   { opacity: 0; transform: scale(0.96) translateY(15px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes blurReveal {
    0%   { filter: blur(10px); opacity: 0; transform: translateY(5px); }
    100% { filter: blur(0); opacity: 1; transform: translateY(0); }
}

@keyframes blob {
    0%   { transform: translate(0px, 0px) scale(1); }
    33%  { transform: translate(40px, -60px) scale(1.15); }
    66%  { transform: translate(-30px, 30px) scale(0.85); }
    100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes countUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.animate-scale-in  { animation: scaleIn 0.7s cubic-bezier(0.32,0.72,0,1) forwards; }
.blur-reveal        { animation: blurReveal 0.8s ease-out forwards; }
.animate-blob       { animation: blob 8s infinite ease-in-out; }
.animate-spin-slow  { animation: spinSlow 6s linear infinite; }
.animate-spin       { animation: spin 1s linear infinite; }
.animate-pulse      { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
.animate-ping       { animation: ping 1s cubic-bezier(0,0,0.2,1) infinite; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

/* ==========================================================================
   LOADING SPINNER
   ========================================================================== */
.spinner {
    border: 2px solid rgba(255,255,255,0.1);
    border-left-color: #fff;
    border-radius: 50%;
    width: 18px; height: 18px;
    animation: spin 0.8s linear infinite;
}
.spinner-cyan { border-left-color: #06b6d4; }

/* ==========================================================================
   CUSTOM SCROLLBAR
   ========================================================================== */
.custom-scrollbar::-webkit-scrollbar { width: 5px; height: 5px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ==========================================================================
   DRAG OVER STATE
   ========================================================================== */
.drag-over {
    border-color: #10b981 !important;
    background: rgba(16,185,129,0.05) !important;
    transform: scale(1.02);
}

/* ==========================================================================
   GENERATE PAGE
   ========================================================================== */
#generate-layout {
    display: flex;
    height: calc(100vh - 80px);
    margin-top: 80px;
    gap: 20px;
    padding: 20px 24px 24px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

#history-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
}

#generate-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

#single-result-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 130px;
}

#prompt-bar-wrapper {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    z-index: 40;
    padding-bottom: 8px;
}

/* Image result card aspect ratio handling */
.result-image-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 32px;
}

.result-image-wrapper.ar-16-9 { aspect-ratio: 16/9; max-width: 820px; }
.result-image-wrapper.ar-9-16 { aspect-ratio: 9/16; max-width: 380px; }
.result-image-wrapper.ar-1-1  { aspect-ratio: 1/1;  max-width: 500px; }

.result-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(1.5rem - 1px);
    display: block;
}

/* Settings popover */
#gen-settings-popover {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 16px;
    width: 288px;
    border-radius: 24px;
    z-index: 50;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    background: #0a0d0b;
    box-shadow: 0 20px 50px rgba(0,0,0,0.85);
}
#gen-settings-popover.hidden { display: none; }
#gen-settings-popover.collapsed { opacity: 0; transform: scale(0.95); pointer-events: none; }

/* Prompt textarea */
#gen-prompt {
    width: 100%;
    background: transparent;
    color: white;
    padding: 16px 20px;
    font-size: 16px;
    resize: none;
    border: none;
    outline: none;
    font-family: var(--font);
    max-height: 128px;
    overflow-y: auto;
}
#gen-prompt::placeholder { color: rgba(255,255,255,0.3); }

/* ==========================================================================
   REPLICATE PAGE
   ========================================================================== */
#replicate-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 24px 80px;
}

#rep-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-bottom: 40px;
}

@media (min-width: 768px)  { #rep-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { #rep-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { #rep-grid { grid-template-columns: repeat(5, 1fr); } }

#rep-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================================
   PRICING PAGE
   ========================================================================== */
#pricing-layout {
    min-height: 100vh;
    padding: 100px 24px 80px;
    overflow-y: auto;
}

.pricing-card {
    border-radius: 32px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
                border-color 0.3s,
                box-shadow 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); }

/* PayPal container */
.paypal-btn-container {
    min-height: 48px;
    border-radius: 14px;
    overflow: hidden;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.visible { opacity: 1; }
.modal-overlay.hidden  { display: none; }

.modal-content {
    position: relative;
    border-radius: 28px;
    width: 100%;
    max-width: 460px;
    transform: scale(0.88) rotate(0.5deg);
    transition: transform 0.4s cubic-bezier(0.32,0.72,0,1);
}
.modal-overlay.visible .modal-content { transform: scale(1) rotate(0deg); }

/* ==========================================================================
   AUTH MODAL (Google Sign-In)
   ========================================================================== */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 14px;
    background: white;
    color: #111;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.google-btn:hover {
    background: #f0fdf8;
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.google-btn:active { transform: scale(0.97); }

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
    position: fixed;
    top: 96px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    border-radius: 9999px;
    background: rgba(10,13,11,0.95);
    backdrop-filter: blur(20px);
    font-size: 14px;
    font-weight: 700;
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.3);
    z-index: 99999;
    box-shadow: 0 15px 40px -10px rgba(16,185,129,0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
    pointer-events: none;
}
.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   CREDIT COUNTER ANIMATION
   ========================================================================== */
.credit-count-anim {
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
}

/* ==========================================================================
   HOME PAGE
   ========================================================================== */
#home-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    overflow-y: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
}

.hero-title {
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(to bottom, #ffffff, rgba(255,255,255,0.45));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0;
}

.home-card {
    border-radius: 32px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    position: relative;
    transition: all 0.7s cubic-bezier(0.25,1,0.5,1);
}
.home-card:hover .home-card-bg {
    transform: scale(1.06);
    opacity: 0.65;
}

.home-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    transition: all 0.7s cubic-bezier(0.25,1,0.5,1);
}

.home-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0a0d0b, rgba(10,13,11,0.8), transparent);
}

.home-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 32px;
}

/* ==========================================================================
   ACCOUNT PAGE
   ========================================================================== */
#account-layout {
    min-height: 100vh;
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 24px 80px;
}

/* ==========================================================================
   LEGAL PAGES (Terms / Privacy)
   ========================================================================== */
#legal-layout {
    max-width: 800px;
    margin: 0 auto;
    padding: 110px 24px 80px;
    line-height: 1.8;
}
#legal-layout h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 8px; }
#legal-layout h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; color: #d1fae5; }
#legal-layout p  { color: rgba(255,255,255,0.65); margin-bottom: 16px; }
#legal-layout ul { color: rgba(255,255,255,0.65); padding-left: 24px; margin-bottom: 16px; }
#legal-layout li { margin-bottom: 8px; }

/* ==========================================================================
   HISTORY SIDEBAR SCROLL
   ========================================================================== */
#history-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    /* Compact nav */
    #site-header { padding: 12px 10px; }

    #site-nav {
        padding: 5px 6px;
        gap: 2px;
        width: 100%;
        max-width: calc(100vw - 20px);
        justify-content: space-between;
    }

    .nav-brand { padding: 4px 8px 4px 4px; margin-right: 0; }
    .nav-brand-text { font-size: 13px; }
    .logo-orb { width: 22px; height: 22px; }

    .nav-link {
        padding: 6px 9px;
        font-size: 12px;
    }

    /* Hide Credits and Admin labels on mobile to save space */
    .nav-link[data-view="pricing"] span.nav-label { display: none; }
    .nav-link[data-view="admin"] { display: none; }

    .nav-right { gap: 4px; padding-left: 4px; }

    #nav-credit-btn {
        padding: 5px 9px;
        font-size: 12px;
        gap: 4px;
    }
    #nav-credit-btn img { width: 18px; height: 18px; }

    #nav-auth-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Generate layout on mobile */
    #generate-layout {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 70px);
        padding: 12px;
        margin-top: 70px;
        gap: 12px;
    }

    #history-sidebar { display: none; }

    #single-result-container {
        min-height: 50vh;
        padding-bottom: 160px;
    }

    #prompt-bar-wrapper {
        position: fixed;
        bottom: 0;
        left: 0; right: 0;
        padding: 0 12px 12px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        background: linear-gradient(to top, var(--bg-dark) 70%, transparent);
        z-index: 100;
    }

    .result-image-wrapper.ar-9-16 { max-width: 260px; }
    .result-image-wrapper.ar-1-1  { max-width: 320px; }

    /* Replicate on mobile */
    #replicate-layout { padding: 80px 12px 80px; }
    #rep-grid { grid-template-columns: 1fr; }

    /* Home on mobile */
    #home-layout {
        padding: 80px 16px 60px;
        align-items: flex-start;
        padding-top: 100px;
    }
    .hero-title { font-size: clamp(2.8rem, 10vw, 4rem); }
    .home-card  { height: 220px; }
    .home-card-content { padding: 20px; }

    /* Pricing on mobile */
    #pricing-layout { padding: 80px 16px 60px; }

    /* Account on mobile */
    #account-layout { padding: 80px 16px 60px; }

    /* Modals full screen on mobile */
    .modal-content {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        left: 0; right: 0;
        margin: 0;
    }
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
}

/* ==========================================================================
   ADMIN SETTINGS PAGE
   ========================================================================== */
.comfyarts-admin-wrap { font-family: var(--font); }

.ca-settings-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: #1a1f1c;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    width: fit-content;
}

.ca-tab-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.ca-tab-btn.active {
    background: rgba(16,185,129,0.15);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.2);
}

.ca-section {
    background: #0e1310;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
}

.ca-field {
    margin-bottom: 20px;
}
.ca-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ca-field input[type="text"],
.ca-field input[type="password"],
.ca-field input[type="number"] {
    width: 100%;
    max-width: 500px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px 14px;
    color: white;
    font-size: 14px;
    transition: border-color 0.2s;
}
.ca-field input:focus {
    outline: none;
    border-color: rgba(16,185,129,0.5);
}

/* ==========================================================================
   UTILITY
   ========================================================================== */
.text-emerald  { color: #10b981; }
.text-cyan     { color: #06b6d4; }
.text-purple   { color: #9333ea; }
.hidden        { display: none !important; }
.sr-only       { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 36px;
    cursor: pointer;
}

.wp-admin-bar-hide #wpadminbar { display: none !important; }
