/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Theme variables */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: rgba(30, 41, 59, 0.5);
    --bg-card: rgba(30, 41, 59, 0.3);
    --accent-cyan: #00f2ff;
    --accent-purple: #7c3aed;
    --accent-purple-light: #a78bfa;
    --accent-blue: #60a5fa;
    --accent-green: #4ade80;
    --accent-red: #f87171;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --border-subtle: rgba(148, 163, 184, 0.1);
    --border-accent: rgba(148, 163, 184, 0.2);
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input,
textarea,
select {
    font-family: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Flex utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* Spacing utilities */
.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.leading-relaxed {
    line-height: 1.625;
}

.leading-tight {
    line-height: 1.25;
}

/* Width/Height */
.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.min-h-screen {
    min-height: 100vh;
}

/* Position */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-40 {
    z-index: 40;
}

/* Display */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

.overflow-hidden {
    overflow: hidden;
}

/* Border radius */
.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Transitions */
.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.transition-transform {
    transition: transform 0.2s;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

/* Opacity */
.opacity-50 {
    opacity: 0.5;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

/* Flex utilities (additional) */
.flex-1 {
    flex: 1 1 0%;
}

.flex-none {
    flex: none;
}

.items-stretch {
    align-items: stretch;
}

/* Glass card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
}

/* Glass header */
.glass-header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow effects */
.glow-cyan {
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.5));
}

.glow-purple {
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

.glow-blue {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple) 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary:disabled {
    background: #334155;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Outline button */
.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.btn-outline:hover {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

/* Selector button */
.selector-btn {
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-accent);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.selector-btn:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.selector-btn.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

/* Input styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-accent);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Select styles */
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-accent);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

.form-select option {
    background: #1e293b;
    color: var(--text-primary);
}

/* Textarea */
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-accent);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* Error text */
.error-text {
    color: #f87171;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===== 3D DICE STYLES ===== */
.dice-container {
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dice-container.small {
    width: 100px;
    height: 100px;
}

.dice-container.large {
    width: 140px;
    height: 140px;
}

.dice {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dice.small {
    width: 70px;
    height: 70px;
}

.dice.large {
    width: 90px;
    height: 90px;
}

.dice-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ecf0f1;
    border: 2px solid #bdc3c7;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
}

.dice.small .dice-face {
    border-radius: 8px;
}

/* Dice face positions */
.dice-face.front {
    transform: translateZ(35px);
}

.dice-face.back {
    transform: rotateY(180deg) translateZ(35px);
}

.dice-face.right {
    transform: rotateY(90deg) translateZ(35px);
}

.dice-face.left {
    transform: rotateY(-90deg) translateZ(35px);
}

.dice-face.top {
    transform: rotateX(90deg) translateZ(35px);
}

.dice-face.bottom {
    transform: rotateX(-90deg) translateZ(35px);
}

/* Large dice face positions */
.dice.large .dice-face.front {
    transform: translateZ(45px);
}

.dice.large .dice-face.back {
    transform: rotateY(180deg) translateZ(45px);
}

.dice.large .dice-face.right {
    transform: rotateY(90deg) translateZ(45px);
}

.dice.large .dice-face.left {
    transform: rotateY(-90deg) translateZ(45px);
}

.dice.large .dice-face.top {
    transform: rotateX(90deg) translateZ(45px);
}

.dice.large .dice-face.bottom {
    transform: rotateX(-90deg) translateZ(45px);
}

/* Dice dots */
.dot {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, #333, #000);
    border-radius: 50%;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.3),
        inset -1px -1px 2px rgba(0, 0, 0, 0.5);
}

.dice.small .dot {
    width: 12px;
    height: 12px;
}

.dice.large .dot {
    width: 16px;
    height: 16px;
}

/* Dot positions for each face */
.dice-face .dot-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dice-face .dot-tl {
    top: 20%;
    left: 20%;
}

.dice-face .dot-tr {
    top: 20%;
    right: 20%;
}

.dice-face .dot-bl {
    bottom: 20%;
    left: 20%;
}

.dice-face .dot-br {
    bottom: 20%;
    right: 20%;
}

.dice-face .dot-ml {
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
}

.dice-face .dot-mr {
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
}

/* 6-face specific */
.dice-face.bottom .dot-tl {
    top: 15%;
    left: 15%;
}

.dice-face.bottom .dot-tr {
    top: 15%;
    right: 15%;
}

.dice-face.bottom .dot-bl {
    bottom: 15%;
    left: 15%;
}

.dice-face.bottom .dot-br {
    bottom: 15%;
    right: 15%;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.5));
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-accent);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.nav-link:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sound-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-accent);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.sound-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-blue);
}

/* Mobile menu button */
.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-accent);
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translateY(4px);
}

.menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-4px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-subtle);
    padding: 0.75rem 1rem;
}

.mobile-menu.open {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-accent);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.mobile-nav-link:hover {
    color: var(--text-primary);
}

/* ===== FOOTER ===== */
.site-footer {
    width: 100%;
    padding: 1.5rem 0 2rem;
    margin-top: 2rem;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid var(--border-subtle);
}

.footer-disclaimer {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-disclaimer p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.625;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-logo span:first-child {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.5));
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-credit {
    color: var(--accent-cyan);
    font-weight: 500;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-primary);
}

/* ===== TOOLS SECTION ===== */
.tools-section {
    position: relative;
    padding: 3rem 1rem 5rem;
    overflow: hidden;
}

.tools-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tools-bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.tools-bg-circle.blue {
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.1);
}

.tools-bg-circle.purple {
    bottom: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: rgba(124, 58, 237, 0.1);
}

.tools-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tools-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tools-subtitle {
    color: #94a3b8;
    max-width: 42rem;
    margin: 0 auto;
    font-size: 1.125rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
}

.tool-card {
    position: relative;
    height: 100%;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(71, 85, 105, 0.5);
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    transition: all 0.3s;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(6, 182, 212, 0.1);
}

.tool-card-bg {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.5s;
}

.tool-card:hover .tool-card-bg {
    opacity: 1;
}

.tool-card-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tool-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(71, 85, 105, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.tool-card:hover .tool-icon {
    background: rgba(30, 41, 59, 0.5);
}

.tool-icon svg {
    width: 2rem;
    height: 2rem;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.tool-card:hover .tool-title {
    color: #67e8f9;
}

.tool-desc {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.625;
    transition: color 0.3s;
}

.tool-card:hover .tool-desc {
    color: #e2e8f0;
}

.tool-cta {
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(71, 85, 105, 0.5);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.tool-card:hover .tool-cta {
    border-color: rgba(6, 182, 212, 0.5);
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.1);
}

/* ===== SEO CONTENT SECTION ===== */
.seo-section {
    margin-top: 4rem;
    padding: 2rem 1rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.seo-content {
    max-width: 56rem;
    margin: 0 auto;
}

.seo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    text-align: center;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.seo-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.seo-text {
    color: #374151;
    margin-bottom: 1rem;
}

.seo-list {
    color: #374151;
    list-style: none;
}

.seo-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.seo-list li span:first-child {
    color: #8b5cf6;
    margin-right: 0.5rem;
}

.seo-features {
    margin-top: 2rem;
}

.seo-features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.seo-feature-card {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid;
}

.seo-feature-card.orange {
    background: linear-gradient(to bottom right, #fff7ed, #ffedd5);
    border-color: #fed7aa;
}

.seo-feature-card.purple {
    background: linear-gradient(to bottom right, #faf5ff, #f3e8ff);
    border-color: #e9d5ff;
}

.seo-feature-card.blue {
    background: linear-gradient(to bottom right, #eff6ff, #dbeafe);
    border-color: #bfdbfe;
}

.seo-feature-icon {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

.seo-feature-title {
    color: #111827;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.seo-feature-desc {
    color: #374151;
    font-size: 0.875rem;
}

.seo-tips {
    margin-top: 2rem;
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    text-align: center;
}

.seo-tips-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.seo-tips-text {
    color: #374151;
    font-style: italic;
    margin-bottom: 1rem;
}

.seo-tips-credit {
    font-size: 0.875rem;
    color: #6b7280;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    margin-top: 4rem;
    padding: 2rem 1rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.faq-content {
    max-width: 56rem;
    margin: 0 auto;
}

.faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: left;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f3f4f6;
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
    transition: transform 0.3s;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 1rem 1.5rem;
    padding-top: 0;
    background: white;
}

.faq-answer-content p {
    color: #374151;
}

/* ===== PAGE BACKGROUNDS ===== */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: #0f172a;
}

.page-bg-gradient {
    position: absolute;
    inset: 0;
}

/* Main content padding for fixed header */
.main-content {
    padding-top: 5rem;
}

/* ===== PLAYER COLORS ===== */
.player-red {
    --player-color: #ef4444;
    --player-glow: rgba(239, 68, 68, 0.4);
    --player-light: #fca5a5;
}

.player-green {
    --player-color: #22c55e;
    --player-glow: rgba(34, 197, 94, 0.4);
    --player-light: #86efac;
}

.player-orange {
    --player-color: #f97316;
    --player-glow: rgba(249, 115, 22, 0.4);
    --player-light: #fdba74;
}

.player-pink {
    --player-color: #ec4899;
    --player-glow: rgba(236, 72, 153, 0.4);
    --player-light: #f9a8d4;
}

.player-cyan {
    --player-color: #06b6d4;
    --player-glow: rgba(6, 182, 212, 0.4);
    --player-light: #67e8f9;
}

.player-yellow {
    --player-color: #eab308;
    --player-glow: rgba(234, 179, 8, 0.4);
    --player-light: #fde047;
}

/* ===== RESULT DISPLAYS ===== */
.result-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.result-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ===== FLOATING PARTICLES ===== */
.particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.2;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) translateX(25px);
        opacity: 0.2;
    }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:text-left {
        text-align: left;
    }

    .md\:text-right {
        text-align: right;
    }

    .md\:text-4xl {
        font-size: 2.25rem;
    }

    .md\:text-5xl {
        font-size: 3rem;
    }

    .md\:items-start {
        align-items: flex-start;
    }

    .md\:items-end {
        align-items: flex-end;
    }

    .md\:justify-between {
        justify-content: space-between;
    }

    .md\:w-64 {
        width: 16rem;
    }

    .md\:gap-3 {
        gap: 0.75rem;
    }

    .md\:gap-4 {
        gap: 1rem;
    }

    .md\:gap-8 {
        gap: 2rem;
    }

    .md\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .md\:py-8 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .md\:p-6 {
        padding: 1.5rem;
    }

    .md\:p-10 {
        padding: 2.5rem;
    }

    .md\:mb-4 {
        margin-bottom: 1rem;
    }

    .md\:mt-0 {
        margin-top: 0;
    }

    .md\:pt-4 {
        padding-top: 1rem;
    }

    .nav-links {
        display: flex;
    }

    .menu-btn {
        display: none;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tools-title {
        font-size: 2.25rem;
    }

    .seo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-brand {
        align-items: flex-start;
        text-align: left;
    }

    .footer-info {
        align-items: flex-end;
        text-align: right;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg\:w-1\/3 {
        width: 33.333333%;
    }

    .lg\:w-2\/3 {
        width: 66.666667%;
    }

    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Dice grid for multiple dice */
.dice-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .dice-grid {
        gap: 1rem;
    }
}

/* Game card for players */
.player-card {
    flex: 1;
    max-width: 45%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s;
}

.player-card.active {
    border-width: 2px;
    border-color: var(--player-color);
    box-shadow: 0 0 20px var(--player-glow);
}

.player-score-box {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.5);
    text-align: center;
}

/* Activity/Result card */
.result-card {
    width: 100%;
    max-width: 32rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.result-stat {
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    text-align: center;
}

/* ===== RESPONSIVE UTILITIES (md: 768px+) ===== */
@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row;
    }

    .md\:flex-col {
        flex-direction: column;
    }

    .md\:items-start {
        align-items: flex-start;
    }

    .md\:items-center {
        align-items: center;
    }

    .md\:justify-between {
        justify-content: space-between;
    }

    .md\:text-left {
        text-align: left;
    }

    .md\:text-center {
        text-align: center;
    }

    .md\:w-64 {
        width: 16rem;
    }

    .md\:w-80 {
        width: 20rem;
    }

    .md\:w-96 {
        width: 24rem;
    }

    .md\:w-1\/2 {
        width: 50%;
    }

    .md\:w-1\/3 {
        width: 33.333333%;
    }

    .md\:w-2\/3 {
        width: 66.666667%;
    }

    .md\:gap-1\.5 {
        gap: 0.375rem;
    }

    .md\:gap-2 {
        gap: 0.5rem;
    }

    .md\:gap-3 {
        gap: 0.75rem;
    }

    .md\:gap-4 {
        gap: 1rem;
    }

    .md\:gap-6 {
        gap: 1.5rem;
    }

    .md\:gap-8 {
        gap: 2rem;
    }

    .md\:mt-0 {
        margin-top: 0;
    }

    .md\:mb-0 {
        margin-bottom: 0;
    }

    .md\:text-base {
        font-size: 1rem;
    }

    .md\:text-lg {
        font-size: 1.125rem;
    }

    .md\:text-xl {
        font-size: 1.25rem;
    }

    .md\:text-2xl {
        font-size: 1.5rem;
    }

    .md\:text-3xl {
        font-size: 1.875rem;
    }

    .md\:text-4xl {
        font-size: 2.25rem;
    }

    .md\:text-5xl {
        font-size: 3rem;
    }

    .md\:px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .md\:py-4 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .items-stretch {
        align-items: stretch;
    }

    .flex-1 {
        flex: 1 1 0%;
    }

    .flex-none {
        flex: none;
    }
}