/*
Theme Name: WebmasterThailand
Theme URI: https://webmasterthailand.com
Author: WebmasterThailand.com
Author URI: https://webmasterthailand.com
Description: Premium Thai web hosting and domain registration theme for WebmasterThailand.com — a trusted ResellerClub partner since 2005. Features a modern dark design with glassmorphism effects, bilingual typography support (Thai/English), and comprehensive hosting industry components.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webmasterthailand
Tags: hosting, domain, dark-mode, thai, bilingual, glassmorphism, full-site-editing, block-theme
*/

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
    /* Brand Colors */
    --color-primary: #0A1628;
    --color-secondary: #00D4FF;
    --color-accent: #6C63FF;
    --color-success: #00E676;
    --color-warning: #FFB300;
    --color-danger: #FF5252;

    /* Text Colors */
    --text-primary: #E8ECF4;
    --text-secondary: #8892A4;
    --text-muted: #5A6478;
    --text-inverse: #0A1628;

    /* Background Colors */
    --bg-primary: #0A1628;
    --bg-secondary: #0D1F3C;
    --bg-tertiary: #111E33;
    --bg-elevated: #142240;

    /* Card Styles */
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(0, 212, 255, 0.3);
    --card-hover-bg: rgba(255, 255, 255, 0.08);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00D4FF 0%, #6C63FF 100%);
    --gradient-bg: linear-gradient(135deg, #0A1628 0%, #0D1F3C 50%, #0A1628 100%);
    --gradient-accent: linear-gradient(135deg, #6C63FF 0%, #00D4FF 100%);
    --gradient-success: linear-gradient(135deg, #00E676 0%, #00D4FF 100%);
    --gradient-card-glow: radial-gradient(ellipse at top, rgba(0, 212, 255, 0.08) 0%, transparent 70%);

    /* Typography */
    --font-thai: 'Noto Sans Thai', sans-serif;
    --font-en: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes (Fluid Scale) */
    --fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
    --fs-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
    --fs-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    --fs-md: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --fs-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
    --fs-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --fs-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    --fs-3xl: clamp(1.8rem, 1.4rem + 2vw, 2.5rem);
    --fs-4xl: clamp(2.2rem, 1.6rem + 3vw, 3.5rem);
    --fs-5xl: clamp(2.8rem, 2rem + 4vw, 4.5rem);

    /* Font Weights */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    /* Line Heights */
    --lh-tight: 1.2;
    --lh-snug: 1.375;
    --lh-normal: 1.6;
    --lh-relaxed: 1.75;
    --lh-loose: 2;

    /* Letter Spacing */
    --ls-tight: -0.02em;
    --ls-normal: 0;
    --ls-wide: 0.025em;
    --ls-wider: 0.05em;
    --ls-widest: 0.1em;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-pill: 50px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow-cyan: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-glow-purple: 0 0 20px rgba(108, 99, 255, 0.3);
    --shadow-glow-success: 0 0 20px rgba(0, 230, 118, 0.3);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;

    /* Layout */
    --content-width: 1200px;
    --wide-width: 1400px;
    --narrow-width: 720px;
    --header-height: 80px;
    --sidebar-width: 300px;
}

/* ==========================================================================
   2. CSS RESET (Modern)
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
    hanging-punctuation: first last;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100dvh;
    line-height: var(--lh-normal);
    text-rendering: optimizeSpeed;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

ol,
ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

button {
    cursor: pointer;
    border: none;
    background: transparent;
}

fieldset {
    border: none;
}

/* Remove animations for reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   3. BASE STYLES
   ========================================================================== */

body {
    font-family: var(--font-thai);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    color: var(--text-primary);
    background: var(--gradient-bg);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Links */
a {
    color: var(--color-secondary);
    transition: var(--transition-base);
}

a:hover {
    color: var(--color-accent);
}

a:active {
    opacity: 0.8;
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-en);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    color: var(--text-primary);
}

h1 {
    font-size: var(--fs-5xl);
    font-weight: var(--fw-extrabold);
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
}

h3 {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-semibold);
}

h4 {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-semibold);
}

h5 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-medium);
}

h6 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
}

p {
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

small {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

strong,
b {
    font-weight: var(--fw-semibold);
}

em,
i {
    font-style: italic;
}

blockquote {
    border-left: 3px solid var(--color-secondary);
    padding: var(--space-4) var(--space-6);
    margin: var(--space-6) 0;
    background: var(--card-bg);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-style: italic;
    color: var(--text-secondary);
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(108, 99, 255, 0.15);
    color: var(--color-accent);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
}

pre {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    border: 1px solid var(--card-border);
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

hr {
    border: none;
    border-top: 1px solid var(--card-border);
    margin: var(--space-8) 0;
}

mark {
    background: rgba(0, 212, 255, 0.2);
    color: var(--text-primary);
    padding: 0.1em 0.3em;
    border-radius: var(--radius-sm);
}

/* Thai typography adjustments */
:lang(th) {
    font-family: var(--font-thai);
    line-height: var(--lh-relaxed);
}

.font-en {
    font-family: var(--font-en);
}

.font-thai {
    font-family: var(--font-thai);
}

/* ==========================================================================
   5. LAYOUT & CONTAINERS
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.container-wide {
    max-width: var(--wide-width);
}

.container-narrow {
    max-width: var(--narrow-width);
}

.container-fluid {
    max-width: 100%;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-col {
    flex-direction: column;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.flex-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

/* Sections */
.section {
    padding: var(--space-20) 0;
}

.section-sm {
    padding: var(--space-12) 0;
}

.section-lg {
    padding: var(--space-32) 0;
}

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-en);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    line-height: 1;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: var(--transition-fast);
    z-index: -1;
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: scale(0.97);
}

/* Button Primary */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    border-color: transparent;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow-cyan);
    transform: translateY(-2px);
    color: var(--text-inverse);
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
}

/* Button Secondary */
.btn-secondary {
    background: var(--color-accent);
    color: #ffffff;
    border-color: transparent;
}

.btn-secondary:hover {
    box-shadow: var(--shadow-glow-purple);
    transform: translateY(-2px);
    background: #7b73ff;
    color: #ffffff;
}

/* Button Outline */
.btn-outline {
    background: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: var(--shadow-glow-cyan);
    transform: translateY(-2px);
    color: var(--color-secondary);
}

/* Button Ghost */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn-ghost:hover {
    color: var(--color-secondary);
    background: rgba(0, 212, 255, 0.08);
}

/* Button Success */
.btn-success {
    background: var(--color-success);
    color: var(--text-inverse);
    border-color: transparent;
}

.btn-success:hover {
    box-shadow: var(--shadow-glow-success);
    transform: translateY(-2px);
}

/* Button Danger */
.btn-danger {
    background: var(--color-danger);
    color: #ffffff;
    border-color: transparent;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 82, 82, 0.3);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--fs-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--fs-base);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--fs-md);
    border-radius: var(--radius-lg);
}

/* Button Pill */
.btn-pill {
    border-radius: var(--radius-pill);
}

/* Button Block */
.btn-block {
    display: flex;
    width: 100%;
}

/* Button Icon */
.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* Button Disabled */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Group */
.btn-group {
    display: inline-flex;
    gap: 0;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ==========================================================================
   7. CARDS
   ========================================================================== */

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
}

.card:hover {
    border-color: var(--card-hover-border);
    background: var(--card-hover-bg);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--card-border);
}

.card-body {
    flex: 1;
}

.card-footer {
    padding-top: var(--space-4);
    margin-top: var(--space-4);
    border-top: 1px solid var(--card-border);
}

.card-image {
    margin: calc(-1 * var(--space-6));
    margin-bottom: var(--space-6);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

/* Card Variants */
.card-pricing {
    text-align: center;
    padding: var(--space-8);
}

.card-pricing.featured {
    border-color: var(--color-secondary);
    background: rgba(0, 212, 255, 0.05);
    transform: scale(1.05);
}

.card-pricing.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.card-flat {
    border: none;
    background: transparent;
}

.card-flat:hover {
    background: var(--card-bg);
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   8. GLASSMORPHISM
   ========================================================================== */

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
}

.glass-dark {
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   9. FORMS
   ========================================================================== */

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    letter-spacing: var(--ls-wide);
}

.form-label .required {
    color: var(--color-danger);
    margin-left: var(--space-1);
}

.form-control {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-base);
    font-family: var(--font-thai);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    appearance: none;
    -webkit-appearance: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Textarea */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Select */
select.form-control {
    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='%238892A4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-10);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.form-check-input:checked {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.form-check-input[type="radio"] {
    border-radius: var(--radius-full);
}

/* Form Validation States */
.form-control.is-valid {
    border-color: var(--color-success);
}

.form-control.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.15);
}

.form-control.is-invalid {
    border-color: var(--color-danger);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.15);
}

.form-feedback {
    font-size: var(--fs-sm);
    margin-top: var(--space-1);
}

.form-feedback.valid {
    color: var(--color-success);
}

.form-feedback.invalid {
    color: var(--color-danger);
}

/* Search Input */
.search-input {
    position: relative;
}

.search-input .form-control {
    padding-left: var(--space-10);
    border-radius: var(--radius-pill);
}

.search-input .search-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Large Desktops — max 1200px */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }

    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .hide-xl {
        display: none !important;
    }
}

/* Tablets Landscape — max 992px */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: var(--space-16) 0;
    }

    .section-lg {
        padding: var(--space-24) 0;
    }

    .hide-lg {
        display: none !important;
    }

    .show-lg {
        display: block !important;
    }
}

/* Tablets Portrait — max 768px */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .grid-auto-fill,
    .grid-auto-fit {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--space-12) 0;
    }

    .flex-col-md {
        flex-direction: column;
    }

    .card-pricing.featured {
        transform: none;
    }

    .card-pricing.featured:hover {
        transform: translateY(-4px);
    }

    .hide-md {
        display: none !important;
    }

    .show-md {
        display: block !important;
    }

    .text-center-md {
        text-align: center;
    }
}

/* Mobile — max 576px */
@media (max-width: 576px) {
    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }

    .btn-lg,
    .btn-xl {
        padding: var(--space-3) var(--space-6);
        font-size: var(--fs-sm);
    }

    .card {
        padding: var(--space-4);
    }

    .section {
        padding: var(--space-10) 0;
    }

    .hide-sm {
        display: none !important;
    }

    .show-sm {
        display: block !important;
    }

    .btn-block-sm {
        display: flex;
        width: 100%;
    }
}

/* ==========================================================================
   11. UTILITY CLASSES
   ========================================================================== */

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-cyan { color: var(--color-secondary); }
.text-purple { color: var(--color-accent); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-white { color: #ffffff; }

/* Gradient Text */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Font Weight Utilities */
.fw-light { font-weight: var(--fw-light); }
.fw-regular { font-weight: var(--fw-regular); }
.fw-medium { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold { font-weight: var(--fw-bold); }
.fw-extrabold { font-weight: var(--fw-extrabold); }

/* Font Size Utilities */
.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-base { font-size: var(--fs-base); }
.text-md { font-size: var(--fs-md); }
.text-lg { font-size: var(--fs-lg); }
.text-xl { font-size: var(--fs-xl); }
.text-2xl { font-size: var(--fs-2xl); }
.text-3xl { font-size: var(--fs-3xl); }
.text-4xl { font-size: var(--fs-4xl); }
.text-5xl { font-size: var(--fs-5xl); }

/* Background Utilities */
.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-elevated { background-color: var(--bg-elevated); }
.bg-gradient { background: var(--gradient-bg); }
.bg-card { background: var(--card-bg); }

/* Spacing Utilities — Margin */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Spacing Utilities — Padding */
.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

/* Border Radius Utilities */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-pill { border-radius: var(--radius-pill); }
.rounded-full { border-radius: var(--radius-full); }

/* Width & Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100dvh; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; top: 0; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: inherit;
}

/* ==========================================================================
   12. ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
}

/* Animation Utility Classes */
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in-down { animation: fadeInDown 0.6s ease-out forwards; }
.animate-slide-left { animation: slideInLeft 0.6s ease-out forwards; }
.animate-slide-right { animation: slideInRight 0.6s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.4s ease-out forwards; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-shimmer { animation: shimmer 2s linear infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }

/* Stagger Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ==========================================================================
   13. BADGES & TAGS
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    line-height: 1.4;
}

.badge-primary {
    background: rgba(0, 212, 255, 0.15);
    color: var(--color-secondary);
}

.badge-accent {
    background: rgba(108, 99, 255, 0.15);
    color: var(--color-accent);
}

.badge-success {
    background: rgba(0, 230, 118, 0.15);
    color: var(--color-success);
}

.badge-warning {
    background: rgba(255, 179, 0, 0.15);
    color: var(--color-warning);
}

.badge-danger {
    background: rgba(255, 82, 82, 0.15);
    color: var(--color-danger);
}

/* ==========================================================================
   14. WORDPRESS SPECIFIC
   ========================================================================== */

/* WordPress alignment classes */
.alignnone { margin: var(--space-4) var(--space-6) var(--space-4) 0; }
.aligncenter { display: block; margin: var(--space-4) auto; }
.alignright { float: right; margin: var(--space-4) 0 var(--space-4) var(--space-6); }
.alignleft { float: left; margin: var(--space-4) var(--space-6) var(--space-4) 0; }

.wp-caption {
    max-width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
}

.wp-caption img {
    border-radius: var(--radius-md);
}

.wp-caption-text {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-align: center;
    padding: var(--space-2);
}

/* WordPress block styles */
.wp-block-image img {
    border-radius: var(--radius-lg);
}

.wp-block-separator {
    border-color: var(--card-border);
}

.wp-block-quote {
    border-left-color: var(--color-secondary);
    background: var(--card-bg);
    padding: var(--space-4) var(--space-6);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.wp-block-code {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--card-border);
    text-align: left;
}

.wp-block-table th {
    background: var(--bg-elevated);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
}

.wp-block-table td {
    color: var(--text-secondary);
}

.wp-block-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* Screen reader text — WordPress standard */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--bg-elevated);
    clip: auto !important;
    color: var(--text-primary);
    display: block;
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    height: auto;
    left: var(--space-2);
    line-height: normal;
    padding: var(--space-4) var(--space-6);
    text-decoration: none;
    top: var(--space-2);
    width: auto;
    z-index: var(--z-toast);
    border-radius: var(--radius-md);
}

/* Post navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: var(--space-8) 0;
    border-top: 1px solid var(--card-border);
    margin-top: var(--space-8);
}

.post-navigation a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.post-navigation a:hover {
    color: var(--color-secondary);
}

/* Comments */
.comment-list {
    list-style: none;
}

.comment-body {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
}

.comment-author {
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
}

.comment-metadata {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}
