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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.tokens {
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.homeL {
    background: linear-gradient(45deg, #3498db, #764ba2);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    transform: scale(1);
}

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

.homeL:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    background: linear-gradient(45deg, #2980b9, #6a4c93);
}

.homeL:active {
    transform: scale(1.02) translateY(0px);
}

.username {
    font-weight: 600;
    color: #333;
}

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

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

.dashboard-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.dashboard-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
}

.section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-icon {
    font-size: 1.5rem;
}

.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.hero-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.hero-card.legendary {
    border-color: #f39c12;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.3);
}

.hero-card.epic {
    border-color: #9b59b6;
    box-shadow: 0 4px 20px rgba(155, 89, 182, 0.3);
}

.hero-card.rare {
    border-color: #3498db;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
}

.hero-card.common {
    border-color: #95a5a6;
    box-shadow: 0 4px 20px rgba(149, 165, 166, 0.3);
}

.hero-card.godly {
    border-color: #792222;
    box-shadow: 0 4px 20px rgba(149, 165, 166, 0.3);
}

.hero-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

.hero-info {
    padding: 1.5rem;
}

.hero-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.hero-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero-rarity {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rarity-legendary {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
}

.rarity-epic {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: white;
}

.rarity-rare {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.rarity-common {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: white;
}

.rarity-godly {
    background: linear-gradient(45deg, #8d1a1a, #941e1e);
    color: white;
}

.trades-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trade-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.trade-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.trade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.trade-from {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.trade-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pending {
    background: #f39c12;
    color: white;
}

.status-accepted {
    background: #27ae60;
    color: white;
}

.status-declined {
    background: #e74c3c;
    color: white;
}

.trade-heroes {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.trade-hero {
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.trade-arrow {
    font-size: 1.5rem;
    color: #3498db;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-accept {
    background: #27ae60;
    color: white;
}

.btn-decline {
    background: #e74c3c;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .heroes-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .trade-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Home Page Styles */
.home-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.main-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: bold;
}

.subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 800px;
    color: white;
}

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    color: white;
}

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

.welcome-back {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1), rgba(255, 255, 255, 0.3));
    border: 2px solid rgba(52, 152, 219, 0.3);
}

.welcome-back h2,
.welcome-back p {
    color: white !important;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(1);
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, #3498db, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    background: linear-gradient(45deg, #2980b9, #6a4c93);
}

.btn-secondary {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-secondary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
    background: linear-gradient(45deg, #229954, #27ae60);
}

.features-section {
    width: 100%;
    max-width: 800px;
}

.features-title {
    text-align: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .home-container {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Trading Page Styles */
.trade-header {
    text-align: center;
    margin-bottom: 3rem;
}

.trade-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.trade-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Selectable Heroes */
.selectable-hero,
.selectable-target {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.selectable-hero:hover,
.selectable-target:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.selectable-hero.selected,
.selectable-target.selected {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.5);
    border-color: #3498db;
    border-width: 3px;
}

.selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 152, 219, 0.8);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.selected .selection-overlay {
    opacity: 1;
}

.selection-checkmark {
    font-size: 3rem;
    color: white;
    font-weight: bold;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-input,
.filter-select {
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

/* Other Players' Heroes */
.other-heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.other-hero-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
}

.other-hero-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ccc;
    overflow: hidden;
}

.other-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.other-hero-info {
    padding: 1rem;
}

.other-hero-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.other-hero-owner {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.8rem;
}

/* Trade Proposal Section */
.trade-proposal {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
    border: 2px solid rgba(52, 152, 219, 0.3);
}

.trade-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.trade-side {
    flex: 1;
    min-width: 200px;
}

.trade-side h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.selected-hero {
    background: rgba(255,255,255,0.8);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 2px dashed rgba(52, 152, 219, 0.3);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-hero .placeholder {
    color: #999;
    font-style: italic;
}

.mini-hero {
    color: #333;
    font-weight: bold;
}

.trade-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arrow-icon {
    font-size: 2.5rem;
    color: #3498db;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* Home button in navbar */
.navbar .home {
    background: linear-gradient(45deg, #3498db, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    transform: scale(1);
    font-size: 0.9rem;
}

.navbar .home:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    background: linear-gradient(45deg, #2980b9, #6a4c93);
}

/* Responsive Design */
@media (max-width: 768px) {
    .trade-title {
        font-size: 2rem;
    }
    
    .trade-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .trade-arrow {
        transform: rotate(90deg);
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .other-heroes-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .trade-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Roll Section Styles */
.roll-section {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 15px;
    margin-top: 1rem;
}

.roll-section p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-roll {
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
    transition: all 0.3s ease;
    transform: scale(1);
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.btn-roll:hover::before {
    left: 100%;
}

.btn-roll:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.5);
    background: linear-gradient(45deg, #e67e22, #c0392b);
    animation: pulse 1s infinite;
}

.btn-roll:active {
    transform: scale(1.05) translateY(-1px);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(243, 156, 18, 0.5);
    }
    50% {
        box-shadow: 0 10px 30px rgba(243, 156, 18, 0.7), 0 0 20px rgba(243, 156, 18, 0.3);
    }
}

/* Responsive Design for Roll Section */
@media (max-width: 768px) {
    .roll-section {
        padding: 1.5rem;
    }
    
    .btn-roll {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Roll Page Specific Styles */

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

.roll-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

.roll-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@keyframes glow {
    from { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(243, 156, 18, 0.5); }
    to { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(243, 156, 18, 0.8); }
}

.roll-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

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

.roll-option {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.roll-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    border-color: #f39c12;
}

.roll-option::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.roll-option:hover::before {
    opacity: 1;
}

.roll-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.roll-type {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.roll-cost {
    font-size: 1.2rem;
    color: #f39c12;
    font-weight: bold;
    margin-bottom: 1rem;
}

.roll-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.rarity-chances {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.rarity-chance {
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.legendary-chance { background: rgba(243, 156, 18, 0.2); color: #f39c12; }
.epic-chance { background: rgba(155, 89, 182, 0.2); color: #9b59b6; }
.rare-chance { background: rgba(52, 152, 219, 0.2); color: #3498db; }
.common-chance { background: rgba(149, 165, 166, 0.2); color: #95a5a6; }

.btn-roll {
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
    transition: all 0.3s ease;
    transform: scale(1);
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 200px;
}

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

.btn-roll:hover::before {
    left: 100%;
}

.btn-roll:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.6);
    background: linear-gradient(45deg, #e67e22, #c0392b);
}

.btn-roll:active {
    transform: scale(1.02) translateY(0px);
}

.btn-roll:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    background: #bdc3c7;
}

.btn-roll:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #bdc3c7 !important;
}

.roll-result {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(46, 204, 113, 0.1));
    border: 2px solid rgba(39, 174, 96, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    display: none;
    animation: slideIn 0.5s ease-out;
}

.roll-result.show {
    display: block;
}

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

.result-title {
    font-size: 2rem;
    color: #27ae60;
    margin-bottom: 1rem;
    font-weight: bold;
}

.rolled-hero {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem auto;
    max-width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.rolled-hero.legendary { border-color: #f39c12; }
.rolled-hero.epic { border-color: #9b59b6; }
.rolled-hero.rare { border-color: #3498db; }
.rolled-hero.common { border-color: #95a5a6; }

.hero-image-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
    margin: 0 auto 1rem;
}

/* Responsive Design for Roll Page */
@media (max-width: 768px) {
    .roll-title {
        font-size: 2.5rem;
    }
    
    .roll-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rarity-chances {
        grid-template-columns: 1fr;
    }
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.flash-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease-out;
    font-weight: 500;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.flash-message.error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-left-color: rgba(255, 255, 255, 0.4);
}

.flash-message.success {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    border-left-color: rgba(255, 255, 255, 0.4);
}

.flash-message.warning {
    background: linear-gradient(135deg, #ffd93d 0%, #ffcc02 100%);
    color: #333;
    border-left-color: rgba(0, 0, 0, 0.2);
}

.flash-message.info {
    background: linear-gradient(135deg, #74c0fc 0%, #339af0 100%);
    border-left-color: rgba(255, 255, 255, 0.4);
}

.flash-content {
    flex: 1;
    margin-right: 1rem;
    line-height: 1.4;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    opacity: 0.8;
}

.flash-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.flash-message.warning .flash-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

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

/* Optional: Auto-fade animation */
.flash-message.auto-fade {
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s;
    animation-fill-mode: forwards;
}

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