/* Color Scheme - Black and Orange */
:root {
    --primary-orange: #FF6B35;
    --secondary-orange: #FF8A5C;
    --accent-orange: #FFB088;
    --dark-black: #1a1a1a;
    --medium-black: #2d2d2d;
    --light-black: #404040;
    --text-white: #ffffff;
    --text-gray: #b8b8b8;
    --border-gray: #3a3a3a;
    
    /* Card System Variables */
    --card-bg: var(--light-black);
    --card-border: var(--border-gray);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --card-shadow-hover: 0 6px 25px rgba(0, 0, 0, 0.7);
    
    /* Content Section Variables */
    --section-bg-primary: var(--dark-black);
    --section-bg-secondary: var(--medium-black);
    --section-bg-tertiary: var(--light-black);
    
    /* Text Variables */
    --text-primary: var(--text-white);
    --text-secondary: var(--text-gray);
    --text-accent: var(--primary-orange);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 
==============================================
GLOBAL CARD AND THEME SYSTEM
==============================================
Usage Guide:

1. Card Classes:
   - .card: Base card style
   - .card-sm, .card-md, .card-lg, .card-xl: Size variants
   
2. Background Classes:
   - .bg-primary: Dark background
   - .bg-secondary: Medium background  
   - .bg-tertiary: Light background
   
3. Text Classes:
   - .text-primary: White text
   - .text-secondary: Gray text
   - .text-accent: Orange text
   
4. Auto-fixes:
   - All white backgrounds automatically become dark
   - All black text automatically becomes white
   - All card-related classes get consistent styling

Example:
<div class="card card-md bg-secondary">
  <h3 class="text-primary">Title</h3>
  <p class="text-secondary">Description</p>
</div>
============================================== 
*/

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--text-accent);
}

.card-sm {
    border-radius: 10px;
    padding: 1rem;
}

.card-md {
    border-radius: 12px;
    padding: 1.5rem;
}

.card-lg {
    border-radius: 15px;
    padding: 2rem;
}

.card-xl {
    border-radius: 20px;
    padding: 3rem;
}

/* Global Section Backgrounds */
.bg-primary {
    background: var(--section-bg-primary);
}

.bg-secondary {
    background: var(--section-bg-secondary);
}

.bg-tertiary {
    background: var(--section-bg-tertiary);
}

/* Global Text Colors */
.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-accent {
    color: var(--text-accent) !important;
}

/* Global White Background Override (comprehensive fix) */
*[style*="background: white"], 
*[style*="background-color: white"],
*[style*="background: #ffffff"],
*[style*="background-color: #ffffff"],
*[style*="background: #fff"],
*[style*="background-color: #fff"],
*[style*="background-color:#fff"],
*[style*="background:#fff"],
*[style*="background-color:#ffffff"],
*[style*="background:#ffffff"] {
    background: var(--card-bg) !important;
}

/* Global White Text Override */
*[style*="color: black"],
*[style*="color: #000000"],
*[style*="color: #000"],
*[style*="color:#000"],
*[style*="color:#000000"],
h1:not([class*="text-"]):not([style*="color"]),
h2:not([class*="text-"]):not([style*="color"]),
h3:not([class*="text-"]):not([style*="color"]),
h4:not([class*="text-"]):not([style*="color"]),
h5:not([class*="text-"]):not([style*="color"]),
h6:not([class*="text-"]):not([style*="color"]) {
    color: var(--text-primary) !important;
}

/* Comprehensive Background Fixes */
.card,
.tournament-card,
.category-card,
.profile-section,
.form-container,
.preview-card,
.item-card,
.result-item,
.insight-card,
.activity-item,
.tip-card,
.create-card,
[class*="-card"],
[class*="card-"] {
    background: var(--card-bg) !important;
    color: var(--text-primary);
}

/* Comprehensive Text Fixes */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.tournament-card h1, .tournament-card h2, .tournament-card h3, .tournament-card h4,
.category-card h1, .category-card h2, .category-card h3, .category-card h4,
.profile-section h1, .profile-section h2, .profile-section h3, .profile-section h4,
.form-container h1, .form-container h2, .form-container h3, .form-container h4,
.preview-card h1, .preview-card h2, .preview-card h3, .preview-card h4,
.item-card h1, .item-card h2, .item-card h3, .item-card h4,
.result-item h1, .result-item h2, .result-item h3, .result-item h4,
.insight-card h1, .insight-card h2, .insight-card h3, .insight-card h4,
.tip-card h1, .tip-card h2, .tip-card h3, .tip-card h4,
.create-card h1, .create-card h2, .create-card h3, .create-card h4,
[class*="-card"] h1, [class*="-card"] h2, [class*="-card"] h3, [class*="-card"] h4,
[class*="card-"] h1, [class*="card-"] h2, [class*="card-"] h3, [class*="card-"] h4 {
    color: var(--text-primary) !important;
}

/* Auto-fix common problematic backgrounds */
*[style*="background: #f8f9fa"],
*[style*="background-color: #f8f9fa"],
*[style*="background: #e9ecef"],
*[style*="background-color: #e9ecef"],
*[style*="background: #ffffff"],
*[style*="background-color: #ffffff"] {
    background: var(--card-bg) !important;
}

/* 
==============================================
GLOBAL FORM SYSTEM
==============================================
Comprehensive styling for all form elements
============================================== 
*/

/* Form Buttons */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
.create-btn,
.play-btn,
.login-btn,
.register-btn,
.google-login-btn,
.update-btn,
.cancel-btn,
.vote-btn,
.explore-btn,
.back-btn,
.browse-btn,
.share-btn,
[class*="-btn"],
[class*="btn-"] {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.btn:hover,
.create-btn:hover,
.play-btn:hover,
.login-btn:hover,
.register-btn:hover,
.google-login-btn:hover,
.update-btn:hover,
.cancel-btn:hover,
.vote-btn:hover,
.explore-btn:hover,
.back-btn:hover,
.browse-btn:hover,
.share-btn:hover,
[class*="-btn"]:hover,
[class*="btn-"]:hover {
    background: linear-gradient(135deg, var(--secondary-orange), var(--primary-orange));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
}

/* Button Variants */
.btn-secondary,
.cancel-btn {
    background: var(--text-gray);
    color: white;
}

.btn-secondary:hover,
.cancel-btn:hover {
    background: #6c757d;
}

.google-login-btn {
    background: white;
    color: #555;
    border: 2px solid #ddd;
}

.google-login-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-orange);
    color: #555;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="tel"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"],
input[type="week"],
textarea,
select,
.form-control,
.form-input {
    width: 100%;
    background: var(--section-bg-tertiary);
    border: 2px solid var(--card-border);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-input:focus {
    border-color: var(--primary-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

/* Select Dropdown Styling */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

select option {
    background: var(--section-bg-tertiary);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* Checkbox and Radio Button Styling */
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--card-border);
    background: var(--section-bg-tertiary);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

input[type="checkbox"] {
    border-radius: 4px;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    display: block;
    color: white;
    font-size: 0.9rem;
    text-align: center;
    line-height: 0.8rem;
    margin-top: 0.1rem;
}

input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: white;
    margin: 0.15rem auto;
}

/* Form Groups and Layout */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--primary-orange);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* Form Validation States */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.success-message {
    color: #28a745;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

/* Disabled Form Elements */
input:disabled,
textarea:disabled,
select:disabled,
button:disabled,
[class*="-btn"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Placeholder Text */
input::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.form-actions button {
    min-width: 120px;
}

/* File Input Styling */
input[type="file"] {
    border: 2px dashed var(--card-border);
    background: transparent;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.1);
}

/* Range Input Styling */
input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    height: 6px;
    background: var(--card-border);
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-orange);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-orange);
    cursor: pointer;
    border: none;
}

/* Search Input Specific */
input[type="search"] {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Textarea Specific */
textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Language Selector Fix */
#language {
    background: var(--section-bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    padding: 0.5rem;
    border-radius: 4px;
}

/* Placeholder image centering fix */
.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border-radius: inherit;
    position: relative;
}

.tournament-image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tournament-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.preview-card .tournament-image {
    height: 150px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.preview-card .placeholder-image {
    border-radius: 10px;
}

/* 
==============================================
END OF GLOBAL FORM SYSTEM
==============================================
*/

/* 
==============================================
ADD ITEMS PAGE STYLING
==============================================
*/

.add-items-header {
    background: var(--section-bg-secondary);
    padding: 2rem 0;
}

.add-items-header h2 {
    color: var(--primary-orange);
    margin: 0.5rem 0;
    font-size: 1.5rem;
}

.add-items-content {
    padding: 3rem 0;
}

.help-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.help-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.help-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Instructions Panel */
.instructions-panel {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.instructions-panel h3 {
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instruction-list {
    margin-bottom: 2rem;
}

.instruction-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-orange);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.current-status {
    background: var(--section-bg-tertiary);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.current-status h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.status-label {
    color: var(--text-secondary);
}

.status-value {
    color: var(--primary-orange);
    font-weight: 500;
}

/* Size Selector Section */
.size-selector-section {
    background: var(--section-bg-tertiary);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid var(--card-border);
}

.size-selector-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.size-selector {
    width: 100%;
    max-width: 200px;
    background: var(--section-bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--card-border);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-selector:focus {
    border-color: var(--primary-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

/* Items Form Panel */
.items-form-panel {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
}

.items-form-panel h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.items-form-panel h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Quick Add Section */
.quick-add-section {
    background: var(--section-bg-tertiary);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid var(--card-border);
}

.quick-add-form .form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.quick-add-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Item Rows */
.item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--section-bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.item-row:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

.item-number {
    background: var(--primary-orange);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.item-fields {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 1.5fr;
    gap: 1rem;
    flex: 1;
}

.item-fields .form-group {
    margin-bottom: 0;
}

.remove-item-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.add-more-btn {
    background: var(--text-gray);
    color: white;
}

.add-more-btn:hover {
    background: #6c757d;
}

.save-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.save-btn:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
}

/* Current Items Section */
.current-items-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.current-items-section h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.items-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.item-preview-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.item-preview-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.item-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.item-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 2rem;
}

.item-symbol {
    font-weight: bold;
    color: var(--primary-orange);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.item-name {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.item-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .instructions-panel {
        position: static;
    }
    
    .item-fields {
        grid-template-columns: 1fr;
    }
    
    .quick-add-form .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .items-preview {
        grid-template-columns: 1fr;
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--card-border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--card-border);
}

.modal-header h3 {
    color: var(--primary-orange);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--section-bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.help-tips {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.help-tips h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-tips ul {
    list-style: none;
    padding: 0;
}

.help-tips li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.help-tips li::before {
    content: '•';
    color: var(--primary-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Current Status in Help Section */
.help-section .current-status {
    display: flex;
    gap: 2rem;
    background: var(--section-bg-tertiary);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.help-section .status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.help-section .status-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.help-section .status-value {
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.1rem;
}

/* 
==============================================
TOURNAMENT PAGE STYLING (Ideal Type World Cup Style)
==============================================
*/

.tournament-header {
    background: var(--section-bg-secondary);
    padding: 3rem 0;
}

.tournament-header .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.tournament-info .tournament-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-orange);
    font-weight: 500;
    margin-bottom: 1rem;
}

.tournament-info h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.tournament-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.tournament-progress {
    text-align: center;
}

.round-info h2 {
    color: var(--primary-orange);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.round-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--card-border);
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
    transition: width 0.3s ease;
}

.tournament-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Tournament Match Section */
.tournament-match {
    padding: 4rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.match-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.vs-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}

.vs-text {
    background: var(--primary-orange);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    display: inline-block;
    min-width: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 2px;
    background: var(--card-border);
    z-index: -1;
}

.match-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.match-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.match-item:hover {
    transform: translateY(-5px);
}

.match-item.selected {
    transform: translateY(-10px) scale(1.02);
}

.item-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--card-border);
    transition: all 0.3s ease;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.match-item:hover .item-card {
    border-color: var(--primary-orange);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
}

.match-item.selected .item-card {
    border-color: var(--primary-orange);
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.4);
}

.item-image {
    width: 100%;
    height: 60%;
    object-fit: cover;
}

.item-placeholder {
    width: 100%;
    height: 60%;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.item-overlay {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-symbol {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

.item-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.item-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.choose-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    margin: 0 2rem 2rem 2rem;
}

.choose-btn:hover {
    background: linear-gradient(135deg, var(--secondary-orange), var(--primary-orange));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Tournament Complete Section */
.tournament-complete {
    padding: 4rem 0;
    text-align: center;
}

.winner-announcement {
    max-width: 600px;
    margin: 0 auto;
}

.trophy-icon {
    font-size: 5rem;
    color: #ffd700;
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.winner-announcement h2 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.winner-announcement h3 {
    color: var(--primary-orange);
    font-size: 1.8rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.winner-card {
    background: var(--card-bg);
    border: 2px solid var(--primary-orange);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
}

.winner-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.winner-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    margin: 0 auto 1.5rem auto;
}

.winner-symbol {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

.winner-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.winner-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.tournament-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.play-again-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.home-btn {
    background: var(--text-gray);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.share-btn {
    background: #1DA1F2;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.tournament-actions a:hover,
.tournament-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tournament-header .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .tournament-info h1 {
        font-size: 2rem;
    }
    
    .match-items {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .vs-indicator {
        position: static;
        transform: none;
        margin: 1rem 0;
    }
    
    .vs-line {
        display: none;
    }
    
    .vs-text {
        min-width: 80px;
        min-height: 80px;
    }
    
    .item-card {
        height: 400px;
    }
    
    .item-overlay {
        padding: 1.5rem;
    }
    
    .choose-btn {
        margin: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .tournament-stats {
        gap: 1rem;
    }
    
    .tournament-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .trophy-icon {
        font-size: 4rem;
    }
    
    .winner-announcement h2 {
        font-size: 2rem;
    }
    
    .winner-announcement h3 {
        font-size: 1.5rem;
    }
}

/* Tournament Rankings Section */
.tournament-rankings {
    padding: 4rem 0;
    background: var(--section-bg-primary);
}

.tournament-rankings h2 {
    text-align: center;
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.ranking-section {
    margin-bottom: 3rem;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--card-border);
}

.ranking-header h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--card-border);
}

.ranking-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.ranking-item {
    background: var(--section-bg-tertiary);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.ranking-item:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.ranking-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.ranking-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-symbol {
    font-weight: 700;
    color: var(--primary-orange);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.ranking-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
    word-wrap: break-word;
}

/* Special styling for top ranks */
.ranking-section:first-child {
    border: 2px solid #ffd700;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.ranking-section:nth-child(2) {
    border: 2px solid #c0c0c0;
    box-shadow: 0 8px 30px rgba(192, 192, 192, 0.3);
}

.ranking-section:nth-child(3) {
    border: 2px solid #cd7f32;
    box-shadow: 0 6px 25px rgba(205, 127, 50, 0.3);
}

/* Responsive Design for Rankings */
@media (max-width: 768px) {
    .tournament-rankings h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .ranking-header h3 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .ranking-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ranking-item {
        padding: 1rem;
    }
    
    .ranking-image,
    .ranking-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .ranking-placeholder {
        font-size: 1.2rem;
    }
    
    .ranking-symbol {
        font-size: 0.9rem;
    }
    
    .ranking-name {
        font-size: 1rem;
    }
}

/* Animation for ranking items */
.ranking-item {
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.ranking-item:nth-child(1) { animation-delay: 0.1s; }
.ranking-item:nth-child(2) { animation-delay: 0.2s; }
.ranking-item:nth-child(3) { animation-delay: 0.3s; }
.ranking-item:nth-child(4) { animation-delay: 0.4s; }
.ranking-item:nth-child(5) { animation-delay: 0.5s; }
.ranking-item:nth-child(6) { animation-delay: 0.6s; }
.ranking-item:nth-child(7) { animation-delay: 0.7s; }
.ranking-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 
==============================================
END OF TOURNAMENT PAGE STYLING
==============================================
*/
.form-control:focus,
.form-input:focus {
    outline: none;
    border-color: var(--text-accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    background: var(--card-bg);
}

/* Select Dropdown */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3e%3cpath d='m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    appearance: none;
}

/* Checkboxes and Radio Buttons */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    accent-color: var(--text-accent);
}

/* Custom Checkbox */
.checkbox-group,
.radio-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Form Groups */
.form-group,
.form-field,
.input-group {
    margin-bottom: 1.5rem;
}

.form-group label,
.form-field label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group small,
.form-field small {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Required field indicator */
.form-group label.required::after,
.form-field label.required::after {
    content: " *";
    color: #e74c3c;
}

/* Error states */
input.error,
select.error,
textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Success states */
input.success,
select.success,
textarea.success {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Disabled states */
input:disabled,
select:disabled,
textarea:disabled,
button:disabled,
[class*="-btn"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--text-gray);
}

/* Placeholder text */
input::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* File inputs */
input[type="file"] {
    background: transparent;
    border: 2px dashed var(--card-border);
    color: var(--text-primary);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: var(--text-accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--medium-black);
    padding: 1rem 0;
    border-bottom: 2px solid var(--border-gray);
}

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

.logo h1 {
    color: var(--primary-orange);
    font-size: 1.8rem;
    font-weight: bold;
}

.logo h1 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo h1 a:hover {
    color: var(--secondary-orange);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: var(--text-white);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.language-selector select {
    background-color: var(--light-black);
    color: var(--text-white);
    border: 1px solid var(--border-gray);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--medium-black), var(--dark-black));
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 107, 53, 0.1), transparent 50%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-orange), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: var(--text-white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.4);
}

/* Tournament Section */
.tournament-section {
    padding: 4rem 0;
    background-color: var(--dark-black);
}

.tournament-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tournament-header h3 {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: var(--text-white);
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 2rem;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.match-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.competitor {
    flex: 1;
    max-width: 400px;
}

.competitor-card {
    background: linear-gradient(135deg, var(--medium-black), var(--light-black));
    border: 2px solid var(--border-gray);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.competitor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s;
}

.competitor-card:hover::before {
    left: 100%;
}

.competitor-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.stock-symbol {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

.company-name {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.percentage {
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.vote-btn, .chart-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--primary-orange);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vote-btn.active {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: var(--text-white);
}

.chart-btn {
    background: transparent;
    color: var(--primary-orange);
}

.chart-btn:hover {
    background: var(--primary-orange);
    color: var(--text-white);
}

.vs-divider {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-white);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tournament-progress {
    text-align: center;
    margin-top: 2rem;
}

.progress-bar {
    background-color: var(--light-black);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.progress-fill {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Categories Section */
.categories {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--medium-black), var(--dark-black));
}

.categories h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-orange);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--medium-black);
    border: 2px solid var(--border-gray);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.2);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.category-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.category-card p {
    color: var(--text-gray);
}

/* Comments Section */
.comments-section {
    padding: 4rem 0;
    background-color: var(--dark-black);
}

.comments-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-orange);
}

.comment-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--medium-black);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid var(--border-gray);
}

.user-avatar {
    color: var(--primary-orange);
    font-size: 2.5rem;
}

.input-container {
    flex: 1;
}

.input-container textarea {
    width: 100%;
    background: var(--light-black);
    border: 1px solid var(--border-gray);
    color: var(--text-white);
    padding: 1rem;
    border-radius: 10px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.input-container textarea::placeholder {
    color: var(--text-gray);
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.char-count {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.post-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: var(--text-white);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.comments-feed {
    margin-bottom: 2rem;
}

.comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: var(--medium-black);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.comment:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.1);
}

.comment.reply {
    margin-left: 3rem;
    background: var(--light-black);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.username {
    color: var(--primary-orange);
    font-weight: 600;
}

.timestamp {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.comment-text {
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-actions button {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.comment-actions button:hover {
    color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.1);
}

.like-btn.liked {
    color: var(--primary-orange);
}

.load-more-btn {
    display: block;
    margin: 0 auto;
    background: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--primary-orange);
    color: var(--text-white);
}

/* Footer */
.footer {
    background-color: var(--medium-black);
    padding: 3rem 0 2rem;
    border-top: 2px solid var(--border-gray);
    color: var(--text-white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
}

.footer-section h4 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-gray);
    margin-bottom: 0;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
}

.footer-bottom p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .match-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .vs-divider {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comment {
        padding: 1rem;
    }
    
    .comment.reply {
        margin-left: 1rem;
    }
    
    .comment-input {
        flex-direction: column;
        align-items: center;
    }
    
    .comment-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .tournament-header h3 {
        font-size: 1.5rem;
        padding: 0.7rem 1.5rem;
    }
    
    .competitor-card {
        padding: 1rem;
    }
    
    .stock-symbol {
        font-size: 2rem;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-card i {
        font-size: 2rem;
    }
}

/* Additional styles for category and tournament pages */

/* Tournament Card Links */
.tournament-card {
    color: inherit;
    text-decoration: none;
    display: block;
    background: var(--medium-black);
    border: 2px solid var(--border-gray);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tournament-card:hover {
    color: inherit;
    text-decoration: none;
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.2);
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: var(--medium-black);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--secondary-orange);
}

.breadcrumb-nav .separator {
    color: var(--text-gray);
}

.breadcrumb-nav .current-category,
.breadcrumb-nav .current-tournament {
    color: var(--text-white);
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, var(--medium-black), var(--dark-black));
    padding: 3rem 0;
}

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

.category-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.category-icon {
    color: var(--primary-orange);
    font-size: 4rem;
}

.category-title {
    color: var(--primary-orange);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.category-stats {
    display: flex;
    gap: 2rem;
}

.create-tournament-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: var(--text-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.create-tournament-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

/* Tournament Filters */
.tournament-filters {
    background: var(--dark-black);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-gray);
}

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

.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-options label {
    color: var(--text-gray);
    font-weight: 600;
}

.sort-options select {
    background: var(--light-black);
    color: var(--text-white);
    border: 1px solid var(--border-gray);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: var(--light-black);
    color: var(--text-gray);
    border: 1px solid var(--border-gray);
    padding: 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary-orange);
    color: var(--text-white);
    border-color: var(--primary-orange);
}

/* Tournament Grid */
.tournaments-grid {
    padding: 3rem 0;
    background: var(--dark-black);
}

.tournaments-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.tournament-thumbnail {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, var(--light-black), var(--medium-black));
    display: flex;
    align-items: center;
    justify-content: center;
}

.tournament-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge.hot {
    background: linear-gradient(135deg, #ff4444, #ff6666);
    color: white;
}

.badge.new {
    background: linear-gradient(135deg, #44ff44, #66ff66);
    color: white;
}

.badge.trending {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
}

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

.preview-competitors {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.competitor-preview {
    background: var(--primary-orange);
    padding: 1rem;
    border-radius: 10px;
    min-width: 80px;
    text-align: center;
}

.vs-small {
    color: var(--text-white);
    font-weight: bold;
    font-size: 1.2rem;
}

.tournament-info {
    padding: 1.5rem;
}

.tournament-title {
    color: var(--primary-orange);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.tournament-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.tournament-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-gray);
    font-size: 0.8rem;
}

.meta-item i {
    color: var(--primary-orange);
}

.tournament-creator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-gray);
    padding-top: 1rem;
}

.tournament-creator i {
    color: var(--primary-orange);
    font-size: 1.2rem;
}

.load-more-section {
    text-align: center;
    margin-top: 3rem;
}

.load-more-tournaments-btn {
    background: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-tournaments-btn:hover {
    background: var(--primary-orange);
    color: var(--text-white);
}

/* Tournament Detail Page Specific */
.tournament-info-header {
    background: linear-gradient(135deg, var(--medium-black), var(--dark-black));
    padding: 3rem 0;
    border-bottom: 2px solid var(--border-gray);
}

.tournament-info-header .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.tournament-details h1 {
    color: var(--primary-orange);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tournament-details p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.tournament-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tournament-creator-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-gray);
}

.tournament-creator-info i {
    color: var(--primary-orange);
    font-size: 1.5rem;
}

.tournament-actions {
    display: flex;
    gap: 1rem;
}

.share-tournament-btn,
.favorite-btn {
    background: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-tournament-btn:hover,
.favorite-btn:hover {
    background: var(--primary-orange);
    color: var(--text-white);
}

/* Related Tournaments */
.related-tournaments {
    padding: 3rem 0;
    background: var(--medium-black);
}

.related-tournaments h3 {
    text-align: center;
    color: var(--primary-orange);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--dark-black);
    border: 2px solid var(--border-gray);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    display: block;
}

.related-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
    color: inherit;
    text-decoration: none;
}

.related-preview {
    margin-bottom: 1rem;
}

.stock-symbols {
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.1rem;
}

.related-info h4 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.items {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .category-header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .category-info {
        flex-direction: column;
        text-align: center;
    }
    
    .category-stats {
        justify-content: center;
    }
    
    .tournament-info-header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .tournaments-container {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Tournament Creation Page Styles */

/* Create Tournament Header */
.create-tournament-header {
    background: linear-gradient(135deg, var(--medium-black), var(--dark-black));
    padding: 3rem 0 2rem 0;
    text-align: center;
}

.create-tournament-header h1 {
    color: var(--primary-orange);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.create-tournament-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Wizard Container */
.wizard-container {
    background: var(--dark-black);
    padding: 2rem 0 4rem 0;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-black);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border: 3px solid var(--border-gray);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    border-color: var(--primary-orange);
    transform: scale(1.1);
}

.step.completed .step-number {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.step.completed .step-number::after {
    content: '✓';
    font-size: 1rem;
}

.step-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.step.active .step-label {
    color: var(--primary-orange);
    font-weight: 600;
}

.step.completed .step-label {
    color: #4CAF50;
}

.step-connector {
    flex: 1;
    height: 3px;
    background: var(--border-gray);
    margin: 0 1rem;
    position: relative;
    top: -25px;
    max-width: 150px;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

.step-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.step-content h2 {
    color: var(--primary-orange);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.step-content > p {
    color: var(--text-gray);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Category Selection */
.category-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-option {
    background: var(--medium-black);
    border: 3px solid var(--border-gray);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-option:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.2);
}

.category-option.selected {
    border-color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.1);
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
}

.category-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s;
}

.category-option:hover::before {
    left: 100%;
}

.category-icon {
    font-size: 3.5rem;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}

.category-option h3 {
    color: var(--text-white);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.category-option p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.category-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.example-tag {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-orange);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Form Styles */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-section {
    background: var(--medium-black);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-gray);
}

.form-section.full-width {
    grid-column: 1 / -1;
}

.form-section h3 {
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--light-black);
    border: 2px solid var(--border-gray);
    color: var(--text-white);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.char-counter {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.help-text {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.3rem;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 1rem !important;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    margin-right: 0.8rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    border-color: var(--primary-orange);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Tags Preview */
.tags-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag-preview {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-orange);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-preview i {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tag-preview i:hover {
    opacity: 1;
}

/* Tournament Settings Info */
.tournament-settings-info {
    background: var(--medium-black);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-gray);
}

.tournament-settings-info h3 {
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.tournament-settings-info h3 i {
    font-size: 1.2rem;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.setting-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-black);
    border-radius: 10px;
    border: 1px solid var(--border-gray);
}

.setting-info-item i {
    color: var(--primary-orange);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.setting-info-item span {
    flex: 1;
    color: var(--text-white);
    font-weight: 600;
}

.setting-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.setting-status.enabled {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.setting-status.continuous {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-orange);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.settings-notice {
    background: rgba(33, 150, 243, 0.1);
    border: 2px solid rgba(33, 150, 243, 0.3);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.settings-notice i {
    color: #2196F3;
    font-size: 1.2rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.settings-notice p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Participants Section */
.items-section {
    background: var(--medium-black);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid var(--border-gray);
}

/* Method Tabs */
.method-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: var(--light-black);
    border-radius: 10px;
    padding: 0.3rem;
}

.method-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-gray);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.method-tab.active {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
}

.method-tab:hover:not(.active) {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-orange);
}

/* Method Content */
.method-content {
    display: none;
    margin-bottom: 2rem;
}

.method-content.active {
    display: block;
}

/* Manual Input */
.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-group input {
    flex: 1;
    background: var(--light-black);
    border: 2px solid var(--border-gray);
    color: var(--text-white);
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.add-item-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

/* Search */
.search-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-group input {
    flex: 1;
    background: var(--light-black);
    border: 2px solid var(--border-gray);
    color: var(--text-white);
    padding: 0.8rem;
    border-radius: 8px;
}

.search-btn {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    background: var(--light-black);
    border-radius: 8px;
    margin-top: 1rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: rgba(255, 107, 53, 0.1);
}

.result-symbol {
    background: var(--primary-orange);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
    margin-right: 1rem;
}

.result-info {
    flex: 1;
}

.result-name {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.result-sector {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.add-result-btn {
    background: none;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-result-btn:hover {
    background: var(--primary-orange);
    color: white;
}

.search-loading,
.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-gray);
}

/* Templates */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.template-card {
    background: var(--light-black);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
}

.template-card h5 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.template-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.template-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.template-preview span {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-orange);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Participants List */
.items-list-section {
    border-top: 2px solid var(--border-gray);
    padding-top: 2rem;
    margin-top: 2rem;
}

.items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.items-header h4 {
    color: var(--text-white);
    font-size: 1.2rem;
}

.items-count {
    color: var(--primary-orange);
    font-weight: bold;
}

.list-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    background: var(--light-black);
    border: 2px solid var(--border-gray);
    color: var(--text-gray);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.action-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

/* Participants Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.item-slot {
    background: var(--light-black);
    border: 2px solid var(--border-gray);
    border-radius: 10px;
    padding: 1rem;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.item-slot.empty {
    border-style: dashed;
    cursor: pointer;
}

.item-slot.empty:hover {
    border-color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.05);
}

.item-slot.filled {
    border-color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.1);
}

.slot-number {
    background: var(--primary-orange);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.slot-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.item-slot.empty .slot-content {
    color: var(--text-gray);
}

.item-slot.empty .slot-content i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-orange);
}

.item-info {
    margin-bottom: 0.5rem;
}

.item-symbol {
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.item-name {
    color: var(--text-white);
    font-size: 0.9rem;
}

.slot-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.edit-item-btn,
.remove-item-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.edit-item-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-orange);
}

.remove-item-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* Preview Section */
.preview-section {
    max-width: 800px;
    margin: 0 auto;
}

.tournament-preview-card {
    background: var(--medium-black);
    border: 2px solid var(--border-gray);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.preview-header {
    border-bottom: 2px solid var(--border-gray);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.preview-header h3 {
    color: var(--primary-orange);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.preview-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.preview-category,
.preview-size,
.preview-type {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-orange);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.preview-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.preview-tag {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-orange);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.preview-settings {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-white);
}

.setting-item i {
    color: var(--primary-orange);
    width: 20px;
}

/* Bracket Preview */
.bracket-preview-section {
    background: var(--medium-black);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.bracket-preview-section h4 {
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}

.mini-bracket {
    display: flex;
    justify-content: center;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bracket-match-mini {
    background: var(--light-black);
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 200px;
}

.match-item {
    background: var(--primary-orange);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8rem;
}

.vs-mini {
    color: var(--text-white);
    font-weight: bold;
    font-size: 0.8rem;
}

.more-matches {
    color: var(--text-gray);
    font-style: italic;
    margin-top: 0.5rem;
}

.bracket-placeholder {
    color: var(--text-gray);
    font-style: italic;
    padding: 2rem;
}

/* Final Actions */
.final-actions {
    margin-top: 2rem;
}

.privacy-notice {
    background: rgba(33, 150, 243, 0.1);
    border: 2px solid rgba(33, 150, 243, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.notice-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.notice-content i {
    color: #2196F3;
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.notice-content h5 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.notice-content p {
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

.create-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-secondary,
.btn-primary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-secondary {
    background: var(--light-black);
    color: var(--text-white);
    border: 2px solid var(--border-gray);
}

.btn-secondary:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    border: 2px solid var(--primary-orange);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Wizard Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding: 0 2rem;
}

.nav-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.prev-btn {
    background: var(--light-black);
    color: var(--text-white);
    border: 2px solid var(--border-gray);
}

.prev-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .progress-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .step-connector {
        display: none;
    }
    
    .category-selection-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-container {
        gap: 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .items-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .wizard-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .create-buttons {
        flex-direction: column;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
}

/* Auth buttons styles */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-btn, .register-btn {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.login-btn {
    background: transparent;
    color: white;
    border: 2px solid var(--primary-orange);
}

.login-btn:hover {
    background: var(--primary-orange);
    color: white;
}

.register-btn {
    background: var(--primary-orange);
    color: white;
    border: 2px solid var(--primary-orange);
}

.register-btn:hover {
    background: var(--secondary-orange);
    border-color: var(--secondary-orange);
    color: white;
}

.google-login-btn {
    background: white;
    color: #555;
    border: 2px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.google-login-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-orange);
}

/* User menu styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.user-greeting {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 0.5rem 0;
    display: none;
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
}

.dropdown-menu hr {
    margin: 0.5rem 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* Hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-orange);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

/* Tournament count in category cards */
.tournament-count {
    font-size: 0.8rem;
    color: var(--primary-orange);
    font-weight: 500;
    margin-top: 0.5rem;
    display: block;
}

/* Popular tournaments section */
.popular-tournaments {
    padding: 4rem 0;
    background: #f8f9fa;
}

.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tournament-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.tournament-image {
    height: 200px;
    overflow: hidden;
}

.tournament-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.tournament-info {
    padding: 1.5rem;
}

.tournament-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-orange);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.tournament-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.tournament-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tournament-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.play-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.play-btn:hover {
    background: linear-gradient(135deg, var(--secondary-orange), var(--primary-orange));
    color: white;
    transform: translateY(-2px);
}

.no-tournaments {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-tournaments i {
    color: #ddd;
    margin-bottom: 1rem;
}

/* Mobile responsive updates */
@media (max-width: 768px) {
    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .user-menu {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* Category Page Responsive */
    .category-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .category-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .tournaments-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .filter-options {
        width: 100%;
    }
    
    .filter-options select {
        width: 100%;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Categories Page Responsive */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Tournament Page Responsive */
    .tournament-info-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .tournament-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .results-list {
        gap: 0.5rem;
    }
    
    .result-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .item-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .vote-stats {
        width: 100%;
    }
    
    .share-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Profile Page Responsive */
    .profile-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .activity-time {
        align-self: flex-end;
        font-size: 0.8rem;
    }
    
    /* My Tournaments Page Responsive */
    .tab-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tab-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .tournament-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tournament-actions a {
        width: 100%;
        text-align: center;
    }
    
    /* Create Tournament Page Responsive */
    .form-container {
        padding: 1rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .preview-card {
        margin-top: 2rem;
    }
    
    /* General Mobile Improvements */
    .breadcrumb {
        flex-wrap: wrap;
        gap: 0.25rem;
        font-size: 0.9rem;
    }
    
    .alert {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn,
    .create-btn,
    .login-btn,
    .register-btn {
        padding: 0.75rem 1rem;
        min-height: 44px; /* Better touch target */
    }
    
    /* Tournament Card Mobile */
    .tournament-card {
        margin-bottom: 1rem;
    }
    
    .tournament-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .tournament-stats span {
        font-size: 0.8rem;
    }
    
    /* Category Card Mobile */
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .category-card h3,
    .category-card h4 {
        font-size: 1.1rem;
    }
    
    .category-card p {
        font-size: 0.9rem;
    }
    
    /* Item Card Mobile (for voting) */
    .item-card {
        padding: 1rem;
    }
    
    .item-card h3 {
        font-size: 1rem;
    }
    
    .item-card p {
        font-size: 0.9rem;
    }
    
    /* Progress Bar Mobile */
    .progress-bar {
        height: 8px;
        margin-top: 0.5rem;
    }
    
    /* Navigation improvements */
    .nav {
        margin-top: 1rem;
    }
    
    .dropdown-menu {
        right: 0;
        left: auto;
        min-width: 200px;
    }
    
    /* Page Headers Mobile */
    .page-header h1,
    .profile-header h1,
    .create-tournament-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header,
    .profile-header,
    .create-tournament-header {
        padding: 2rem 0 1.5rem;
    }
    
    /* Additional Mobile Specific Styles */
    .voting-section {
        padding: 2rem 0;
    }
    
    .voting-form {
        margin-top: 1rem;
    }
    
    .vote-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }
    
    .results-section {
        padding: 2rem 0;
    }
    
    .success-message {
        padding: 1rem 0;
    }
    
    .tournament-preview {
        padding: 1.5rem 0;
    }
    
    .tournament-preview h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Create Tournament Section Mobile */
    .create-tournament {
        padding: 2rem 0;
    }
    
    .create-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .create-card h3 {
        font-size: 1.5rem;
    }
    
    .create-card p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .create-card .create-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    /* Popular Tournaments Mobile */
    .popular-tournaments {
        padding: 3rem 0;
    }
    
    .popular-tournaments h3 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .tournament-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .tournament-card {
        border-radius: 15px;
    }
    
    .tournament-image {
        height: 180px;
    }
    
    .tournament-info {
        padding: 1.25rem;
    }
    
    .tournament-info h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .tournament-info p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .tournament-stats {
        gap: 1rem;
        flex-wrap: wrap;
        padding: 0.75rem 0;
    }
    
    .tournament-stats span {
        font-size: 0.85rem;
    }
    
    .play-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .popular-tournaments .no-tournaments {
        padding: 3rem 1.5rem;
    }
    
    .popular-tournaments .no-tournaments h4 {
        font-size: 1.3rem;
    }
    
    .popular-tournaments .no-tournaments p {
        font-size: 1rem;
    }
}

/* Additional styles for new pages */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--dark-black), var(--medium-black));
    color: var(--text-white);
    padding: 3rem 0 2rem;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.page-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Tournament Tabs */
.tournament-tabs {
    padding: 2rem 0;
}

.tab-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-gray);
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.tab-btn.active {
    color: var(--primary-orange);
    border-bottom-color: var(--primary-orange);
}

.tab-btn:hover {
    color: var(--primary-orange);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.tab-header h2 {
    color: var(--text-black);
    margin: 0;
}

/* Tournament Status Badge */
.tournament-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-orange);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.tournament-status.draft {
    background: var(--text-gray);
}

.tournament-status.completed {
    background: #28a745;
}

/* Participation Badge */
.participation-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
}

/* Profile Styles */
.profile-header {
    background: linear-gradient(135deg, var(--dark-black), var(--medium-black));
    color: var(--text-white);
    padding: 3rem 0 2rem;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    font-size: 4rem;
    color: var(--primary-orange);
}

.profile-details h1 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.profile-details p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.user-role {
    background: var(--primary-orange);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.profile-content {
    padding: 3rem 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.profile-section {
    background: var(--light-black);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-gray);
}

.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

.section-header h2 {
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

/* Form Styles */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.form-group small {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.form-divider {
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
}

.form-divider h3 {
    color: var(--text-white);
    margin: 0;
    font-size: 1.1rem;
}

.update-btn {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.update-btn:hover {
    background: var(--secondary-orange);
    transform: translateY(-2px);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #e9ecef;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content {
    flex-grow: 1;
}

.activity-content p {
    margin: 0 0 0.25rem 0;
    font-weight: 500;
    color: var(--text-white);
}

.activity-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
}

.activity-link:hover {
    text-decoration: underline;
}

.activity-category {
    background: var(--border-gray);
    color: var(--text-gray);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.activity-time {
    color: var(--text-gray);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.no-activity {
    text-align: center;
    padding: 2rem;
    color: var(--text-gray);
}

.no-activity i {
    margin-bottom: 1rem;
    color: var(--border-gray);
}

.browse-btn {
    background: var(--primary-orange);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.browse-btn:hover {
    background: var(--secondary-orange);
    text-decoration: none;
    color: white;
}

/* Create Tournament Styles */
.create-tournament-header {
    background: linear-gradient(135deg, var(--dark-black), var(--medium-black));
    color: var(--text-white);
    padding: 3rem 0 2rem;
}

.create-tournament-form {
    padding: 3rem 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-black);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-gray);
}

.tournament-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-gray);
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section h2 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.tip-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.tip-card i {
    font-size: 2rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.tip-card h3 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tip-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
}

.cancel-btn {
    background: var(--text-gray);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cancel-btn:hover {
    background: #6c757d;
}

/* Tournament Preview */
.tournament-preview {
    padding: 2rem 0;
    background: var(--medium-black);
}

.tournament-preview h2 {
    text-align: center;
    color: var(--text-white);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.preview-card {
    max-width: 400px;
    margin: 0 auto;
    background: var(--light-black);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid var(--border-gray);
}

.preview-card .tournament-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-card .tournament-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-card .placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.preview-card .placeholder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-card .tournament-info {
    padding: 1.5rem;
}

.preview-card .tournament-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-orange);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.preview-card h3 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.preview-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.preview-card .tournament-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-gray);
}

.preview-card .tournament-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.preview-card .tournament-stats i {
    color: var(--primary-orange);
    font-size: 1rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-orange);
}

.breadcrumb span {
    color: var(--text-gray);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card.large {
    background: var(--light-black);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-gray);
}

.category-card.large:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    border-color: var(--primary-orange);
}

.category-card .category-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--medium-black), var(--light-black));
}

.category-card .category-header i {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.category-card .category-header h3 {
    color: var(--text-white);
    margin: 0;
    font-size: 1.5rem;
}

.category-body {
    padding: 1.5rem 2rem;
}

.category-body p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-orange);
}

.stat-label {
    display: block;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.category-footer {
    padding: 1.5rem 2rem;
    background: var(--medium-black);
    border-top: 1px solid var(--border-gray);
}

.explore-btn {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    font-weight: 500;
}

.explore-btn:hover {
    background: var(--secondary-orange);
    transform: translateY(-2px);
}

/* Category Insights */
.category-insights {
    padding: 3rem 0;
    background: var(--medium-black);
}

.category-insights h3 {
    text-align: center;
    color: var(--text-white);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.insight-card {
    background: var(--light-black);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-gray);
}

.insight-card i {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.insight-card h4 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.insight-card p {
    color: var(--text-gray);
    margin: 0;
    font-weight: 500;
}

/* No content states */
.no-categories,
.no-tournaments {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
}

.no-categories i,
.no-tournaments i {
    color: var(--border-gray);
    margin-bottom: 1rem;
}

.no-tournaments-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-tournaments-content h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.no-tournaments-content p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* Alert improvements */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    flex-shrink: 0;
}

/* Item Symbol */
.item-symbol {
    background: var(--primary-orange);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin: 0.25rem 0;
}

/* Winner styling */
.result-item.winner {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
}

.result-item.winner .rank {
    color: #ffc107;
    font-size: 1.5rem;
}

/* Progress fill */
.progress-fill {
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
    height: 100%;
    border-radius: inherit;
    transition: width 0.5s ease;
}

/* Login prompt */
.login-prompt {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #1565c0;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.login-prompt a {
    color: var(--primary-orange);
    font-weight: 500;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Tournament Page Specific Styles */
.tournament-header {
    background: linear-gradient(135deg, var(--dark-black), var(--medium-black));
    color: var(--text-white);
    padding: 3rem 0 2rem;
}

.tournament-info-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 2rem;
}

.tournament-details {
    flex: 1;
}

.tournament-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-orange);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.tournament-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tournament-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.tournament-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
}

.tournament-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Voting Section */
.voting-section {
    padding: 3rem 0;
    background: var(--dark-black);
}

.voting-section h2 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
    text-align: center;
}

.voting-section p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    text-align: center;
}

.voting-form {
    max-width: 1000px;
    margin: 0 auto;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.item-card {
    background: var(--light-black);
    border: 2px solid var(--border-gray);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.item-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

.item-card input[type="radio"] {
    display: none;
}

.item-card input[type="radio"]:checked + label {
    border-color: var(--primary-orange);
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
}

.item-card label {
    display: block;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

.item-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.item-card h3 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.item-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.vote-btn {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.vote-btn:hover {
    background: var(--secondary-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Results Section */
.results-section {
    padding: 3rem 0;
    background: var(--medium-black);
}

.results-section h2 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
    text-align: center;
}

.results-section p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    text-align: center;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.result-item {
    background: var(--light-black);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
}

.rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-gray);
    min-width: 50px;
    text-align: center;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
}

.item-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details h3 {
    color: var(--text-white);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.item-details p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

.vote-stats {
    text-align: right;
    min-width: 120px;
}

.vote-count {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-white);
}

.vote-percentage {
    color: var(--primary-orange);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-gray);
    border-radius: 3px;
    overflow: hidden;
}

/* Share Results */
.share-results {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.share-results h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    text-decoration: none;
}

.share-btn:hover {
    background: var(--secondary-orange);
    transform: translateY(-2px);
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #4267b2;
}

.share-btn.copy {
    background: var(--text-gray);
}

/* No Items State */
.no-items {
    padding: 4rem 0;
    text-align: center;
}

.no-items-content {
    max-width: 400px;
    margin: 0 auto;
    color: var(--text-gray);
}

.no-items-content i {
    color: var(--border-gray);
    margin-bottom: 1rem;
}

.no-items-content h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.no-items-content p {
    margin-bottom: 2rem;
}

.back-btn {
    background: var(--primary-orange);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background: var(--secondary-orange);
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
}

/* Success Message */
.success-message {
    padding: 1rem 0;
}

/* Edit and View buttons */
.view-btn, .edit-btn {
    background: var(--primary-orange);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.view-btn:hover, .edit-btn:hover {
    background: var(--secondary-orange);
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
}

.edit-btn {
    background: var(--text-gray);
}

.edit-btn:hover {
    background: #6c757d;
}

/* Create Tournament Section (Index Page) */
.create-tournament {
    padding: 3rem 0;
    background: var(--medium-black);
}

.create-card {
    background: var(--light-black);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-gray);
}

.create-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
}

.create-card h3 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.create-card p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.create-card .create-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.create-card .create-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    text-decoration: none;
    color: white;
}

.create-card .create-btn i {
    font-size: 1.2rem;
}

/* Popular Tournaments Section */
.popular-tournaments {
    padding: 4rem 0;
    background: var(--dark-black);
}

.popular-tournaments h3 {
    text-align: center;
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
}

.popular-tournaments h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
    border-radius: 2px;
}

.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.tournament-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--card-border);
}

.tournament-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--text-accent);
}

.tournament-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.tournament-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.placeholder-image i {
    font-size: 4rem;
    opacity: 0.8;
}

.tournament-info {
    padding: 1.5rem;
}

.tournament-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-orange);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.tournament-info h4 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.tournament-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tournament-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
}

.tournament-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.tournament-stats i {
    color: var(--primary-orange);
    font-size: 1rem;
}

.play-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    text-decoration: none;
    color: white;
}

.play-btn i {
    font-size: 0.9rem;
}

/* No Tournaments State */
.popular-tournaments .no-tournaments {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
    grid-column: 1 / -1;
}

.popular-tournaments .no-tournaments i {
    color: var(--border-gray);
    margin-bottom: 1.5rem;
}

.popular-tournaments .no-tournaments h4 {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.popular-tournaments .no-tournaments p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin: 0;
}

/*
==============================================
TOURNAMENT JOURNEY STYLES
==============================================
*/

.tournament-journey {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.journey-round-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.journey-round-section:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--card-shadow-hover);
}

.journey-round-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-orange);
    font-size: 1.25rem;
    font-weight: 600;
}

.journey-round-title i {
    font-size: 1.1rem;
}

.round-count {
    background: var(--primary-orange);
    color: var(--dark-black);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: auto;
}

.journey-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.journey-item-card {
    background: var(--section-bg-secondary);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.journey-item-card:hover {
    transform: translateY(-2px);
    border-color: var(--secondary-orange);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.journey-item-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: var(--light-black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.journey-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.journey-item-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.journey-item-content h5 {
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .journey-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .journey-item-image {
        height: 100px;
    }
    
    .journey-item-content {
        padding: 0.75rem;
    }
    
    .journey-item-content h5 {
        font-size: 0.8rem;
    }
    
    .journey-round-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .journey-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tournament-journey {
        gap: 1.5rem;
    }
    
    .journey-round-section {
        padding: 1rem;
    }
}
