/* ============================================
   FLUX DICE - LUXURY PREMIUM UI STYLESHEET
   Sophisticated, Elegant, Eye-Catching Interface
   ============================================ */

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

:root {
    /* Luxury Primary Colors */
    --primary: #d4af37;
    --primary-dark: #aa8c2c;
    --primary-light: #e8c547;
    
    /* Deep Luxury Backgrounds */
    --bg-dark: #0a0e1a;
    --bg-darker: #050709;
    --bg-card: #1a1f2e;
    --bg-card-light: #242d3f;
    
    /* Vibrant Accent Colors */
    --accent-purple: #8a2be2;
    --accent-purple-light: #b366ff;
    --accent-blue: #007bff;
    --accent-blue-light: #00d4ff;
    --accent-cyan: #00f0ff;
    --accent-teal: #00e5cc;
    --accent-orange: #ff6b35;
    --accent-green: #00ff88;
    
    /* Text Colors */
    --text-light: #f5f7fa;
    --text-muted: #a0a8b8;
    --text-gold: #d4af37;
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    --gradient-luxury: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%);
    --gradient-vibrant: linear-gradient(135deg, #8a2be2 0%, #007bff 100%);
    --gradient-cool: linear-gradient(135deg, #007bff 0%, #00d4ff 100%);
    --gradient-neon: linear-gradient(135deg, #8a2be2 0%, #b366ff 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 100%);
    --gradient-flutter: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(0, 123, 255, 0.15) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.25);
    --shadow-glow-blue: 0 0 40px rgba(0, 212, 255, 0.2);
    --shadow-glow-pink: 0 0 40px rgba(255, 77, 148, 0.2);
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-darker);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 123, 255, 0.05) 0%, transparent 40%);
    color: var(--text-light);
    overflow-x: hidden;
    letter-spacing: 0.3px;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================
   NAVBAR - LUXURY DESIGN
   ============================================ */

.navbar {
    background: linear-gradient(90deg, rgba(10, 14, 26, 0.98) 0%, rgba(26, 31, 46, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.navbar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.navbar-brand:hover {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.navbar-menu a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.navbar-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(212, 175, 55, 0.15);
    transition: left 0.3s ease;
    z-index: -1;
}

.navbar-menu a:hover::before {
    left: 0;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--text-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

main.container {
    flex: 1;
}

/* ============================================
   GRID SYSTEM
   ============================================ */

.grid {
    display: grid;
    gap: 2rem;
    width: 100%;
}

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

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

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

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CARDS - LUXURY DESIGN
   ============================================ */

.card {
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.85) 0%, rgba(36, 45, 63, 0.75) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(212, 175, 55, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: flutterFadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

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

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 20px;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: var(--shadow-lg), var(--shadow-glow), inset 0 1px 0 rgba(212, 175, 55, 0.15);
}

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

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

.card-header {
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: 0.5px;
}

.card-body {
    position: relative;
    z-index: 1;
}

.card-footer {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* ============================================
   BUTTONS - LUXURY DESIGN
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Primary Button - Gold */
.btn-primary {
    background: var(--gradient-gold);
    color: #1a1f2e;
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-weight: 800;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Secondary Button - Cyan */
.btn-secondary {
    background: var(--gradient-cool);
    color: #0a0e1a;
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 800;
}

.btn-secondary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 40px rgba(0, 212, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Success Button - Green */
.btn-success {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6f 100%);
    color: #0a0e1a;
    box-shadow: 0 12px 30px rgba(0, 255, 136, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 800;
}

.btn-success:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 40px rgba(0, 255, 136, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Danger Button - Red */
.btn-danger {
    background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
    color: white;
    box-shadow: 0 12px 30px rgba(255, 77, 77, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 800;
}

.btn-danger:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 40px rgba(255, 77, 77, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--text-gold);
    border: 2px solid var(--text-gold);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--text-gold);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.2), 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Button Sizes */
.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

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

/* ============================================
   FORMS - LUXURY DESIGN
   ============================================ */

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    background: rgba(26, 31, 46, 0.6);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    outline: none;
    border-color: var(--text-gold);
    background: rgba(26, 31, 46, 0.9);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.1);
}

.form-control::placeholder {
    color: rgba(160, 168, 184, 0.6);
}

/* ============================================
   ALERTS - LUXURY DESIGN
   ============================================ */

.alert {
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
}

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

.alert-success {
    background: rgba(0, 255, 136, 0.12);
    border-color: #00ff88;
    color: #a7f3d0;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.alert-danger {
    background: rgba(255, 77, 77, 0.12);
    border-color: #ff4d4d;
    color: #ffa5a5;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.15);
}

.alert-warning {
    background: rgba(255, 195, 0, 0.12);
    border-color: #ffc300;
    color: #ffd966;
    box-shadow: 0 0 20px rgba(255, 195, 0, 0.15);
}

.alert-info {
    background: rgba(0, 212, 255, 0.12);
    border-color: #00d4ff;
    color: #a5f3fc;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* ============================================
   BADGES - LUXURY DESIGN
   ============================================ */

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.badge-success {
    background: rgba(0, 255, 136, 0.2);
    color: #a7f3d0;
    border: 1px solid rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.badge-danger {
    background: rgba(255, 77, 77, 0.2);
    color: #ffa5a5;
    border: 1px solid rgba(255, 77, 77, 0.4);
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.2);
}

.badge-warning {
    background: rgba(255, 195, 0, 0.2);
    color: #ffd966;
    border: 1px solid rgba(255, 195, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 195, 0, 0.2);
}

.badge-info {
    background: rgba(0, 212, 255, 0.2);
    color: #a5f3fc;
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

/* ============================================
   TABLES - LUXURY DESIGN
   ============================================ */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.table thead {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.table th {
    padding: 1.2rem;
    text-align: left;
    font-weight: 800;
    color: var(--text-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.table td {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    color: var(--text-light);
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(212, 175, 55, 0.08);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    text-align: center;
    padding: 4rem 1rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.5) 0%, rgba(36, 45, 63, 0.5) 100%);
    border-radius: 20px;
    padding: 3.5rem;
    margin: 3.5rem 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
}

.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 1px;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(90deg, rgba(10, 14, 26, 0.95) 0%, rgba(26, 31, 46, 0.95) 100%);
    color: var(--text-muted);
    text-align: center;
    padding: 2.5rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

footer p:first-child {
    color: var(--text-gold);
    font-weight: 700;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar .container {
        padding: 0 1rem;
    }
    
    .navbar-content {
        gap: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .navbar-menu {
        gap: 0.25rem;
    }
    
    .navbar-menu a {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .features-section {
        padding: 2rem;
    }
    
    .features-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .card {
        padding: 1.2rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
    }
}

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

.pulse {
    animation: pulse 2s infinite;
}

.glow {
    animation: glow 3s infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}


/* ============================================
   ENHANCED DICE ANIMATIONS
   ============================================ */

.dice {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #1a1f2e;
    margin: 1rem auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), inset 0 0 15px rgba(0,0,0,0.1);
    font-weight: 900;
    perspective: 1000px;
    transition: all 0.3s ease;
}

.dice.rolling {
    animation: diceRoll 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes diceRoll {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    }
    25% {
        transform: rotateX(180deg) rotateY(90deg) rotateZ(45deg) scale(1.05);
    }
    50% {
        transform: rotateX(360deg) rotateY(180deg) rotateZ(90deg) scale(1.1);
    }
    75% {
        transform: rotateX(540deg) rotateY(270deg) rotateZ(135deg) scale(1.05);
    }
    100% {
        transform: rotateX(720deg) rotateY(360deg) rotateZ(180deg) scale(1);
    }
}

/* ============================================
   TEXT OVERFLOW AND BOX FIXES
   ============================================ */

.form-group {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.form-label {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.form-control {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
}

.card-header h3,
.card-header h4 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

table {
    table-layout: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

table td,
table th {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    padding: 0.75rem;
}

.btn {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* ============================================
   FEEDBACK AND BUG REPORT WIDGET
   ============================================ */

.feedback-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.feedback-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: #1a1f2e;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.feedback-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.6);
}

.feedback-modal {
    display: none;
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 350px;
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.95) 0%, rgba(36, 45, 63, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.feedback-modal.show {
    display: block;
}

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

.feedback-modal h4 {
    color: var(--text-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feedback-modal textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    font-family: inherit;
    margin-bottom: 0.75rem;
    resize: vertical;
    min-height: 80px;
}

.feedback-modal textarea:focus {
    outline: none;
    border-color: var(--text-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.feedback-modal select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    font-family: inherit;
    margin-bottom: 0.75rem;
}

.feedback-modal select:focus {
    outline: none;
    border-color: var(--text-gold);
}

.feedback-modal .btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* ============================================
   AUDIO CONTROL WIDGET
   ============================================ */

.audio-control {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 500;
}

.audio-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.5);
    color: var(--text-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.audio-toggle:hover {
    background: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
    .feedback-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .feedback-modal {
        bottom: 5rem;
        right: 1rem;
        width: calc(100% - 2rem);
        max-width: 350px;
    }

    .audio-control {
        top: 80px;
        right: 1rem;
    }

    table {
        font-size: 0.9rem;
    }

    table td,
    table th {
        padding: 0.5rem;
    }

    .dice {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}

/* ============================================
   FEEDBACK WIDGET
   ============================================ */

.feedback-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.feedback-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: #1a1f2e;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

.feedback-modal {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.98) 0%, rgba(36, 45, 63, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: none;
    backdrop-filter: blur(15px);
    animation: slideUp 0.3s ease;
}

.feedback-modal.show {
    display: block;
}

.feedback-modal h4 {
    color: var(--text-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feedback-modal select,
.feedback-modal textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 0.8rem;
    color: white;
    margin-bottom: 1rem;
    font-family: inherit;
}

.feedback-modal textarea {
    height: 120px;
    resize: none;
}

.feedback-modal .btn {
    margin-bottom: 0.5rem;
}

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


/* ============================================
   MODAL STYLES - LUXURY DESIGN
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    padding: 1rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.95) 0%, rgba(36, 45, 63, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-content h3 {
    color: var(--text-gold);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-content form {
    width: 100%;
}

.modal-content .form-group {
    margin-bottom: 1.5rem;
}

.modal-content .form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-content .form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    background: rgba(26, 31, 46, 0.6);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    backdrop-filter: blur(10px);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-content .form-control:focus {
    outline: none;
    border-color: var(--text-gold);
    background: rgba(26, 31, 46, 0.9);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.1);
}

.modal-content .btn {
    width: 100%;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-content code {
    background: rgba(212, 175, 55, 0.15);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: var(--text-gold);
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        padding: 1.5rem;
        border-radius: 15px;
        max-width: 100%;
    }

    .modal-content h3 {
        font-size: 1.3rem;
    }

    .modal-content p {
        font-size: 0.95rem;
    }

    .modal-content .form-control {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.2rem;
    }

    .modal-content h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .modal-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .modal-content .form-group {
        margin-bottom: 1rem;
    }

    .modal-content .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .modal-content .form-control {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .modal-content .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
}
