/* Account Pages Glass Card Styling */
@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --theme-accent: var(--albion-theme-primary);
    --theme-text-primary: #f0f0f0;
    --theme-text-secondary: #b0b0b0;
}

.font-oxanium {
    font-family: 'Oxanium', cursive;
}

.glass-card {
    background: rgba(34, 36, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.glass-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--theme-accent);
}

.account-main-content {
    padding-top: 0;
}

/* Enhanced Account Hero - Redesigned */
.account-hero {
    position: relative;
    /* Removed fixed height of 220px for auto height based on content padding */
    min-height: 160px; 
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem !important;
    margin-top: 120px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #15171b; /* Fallback */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.account-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.account-hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) blur(0px); 
    /* Gradient mask to fade image at edges/bottom if desired, or just overlay */
    z-index: 0;
    transform: scale(1.05); /* Slight initial scale for parallax feel */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
}

.account-hero:hover .account-hero-banner {
    transform: scale(1.08);
    filter: brightness(0.7);
}

.account-hero-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* Glassmorphism gradient background for content area */
    /* background removed as requested */
    height: 100%;
}

.account-hero-content img.rounded-circle {
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    /* Enforce size via CSS */
    width: 90px !important; 
    height: 90px !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
}

.account-hero:hover .account-hero-content img.rounded-circle {
    transform: scale(1.05) rotate(3deg);
    border-color: var(--theme-accent);
}

.account-hero-content .title,
.account-hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.account-hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Mobile Adjustments */
@media (max-width: 767.98px) {
    .account-hero {
        margin-top: 100px;
        min-height: auto;
        border-radius: 16px;
    }
    
    .account-hero-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .account-hero-content img.rounded-circle {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 0.5rem;
    }

    .account-hero-content .title {
        font-size: 1.5rem;
    }
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: var(--theme-text-secondary);
    font-weight: 500;
}

.info-row .value {
    color: var(--theme-text-primary);
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--theme-accent);
    background: transparent;
    color: var(--theme-accent);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.action-btn:hover {
    background: var(--theme-accent);
    color: white;
    text-decoration: none;
}

.action-btn.primary {
    background: var(--theme-accent);
    color: white;
}

.action-btn.primary:hover {
    background: var(--theme-accent);
    border-color: var(--theme-accent);
    opacity: 0.9;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-around;
}

.stat-item {
    text-align: center;
    flex-grow: 1;
    min-width: 100px;
}

.stat-item .label {
    color: var(--theme-text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.stat-item .value {
    color: var(--theme-text-primary);
    font-size: 1.6rem;
    font-weight: 700;
    word-break: break-word;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.badge-success {
    background: rgba(var(--albion-theme-primary-rgb), 0.2);
    color: var(--albion-theme-primary);
    border: 1px solid var(--albion-theme-primary);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.badge-warning {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    border: 1px solid #f39c12;
}

.badge-info {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
}

/* Table styling for glass effect */
.glass-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.glass-table thead th {
    background: rgba(var(--albion-theme-primary-rgb), 0.3);
    color: var(--theme-text-primary);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.glass-table tbody tr {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
}

.glass-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.4);
}

.glass-table tbody td {
    padding: 1rem;
    color: var(--theme-text-primary);
}

.glass-table tbody td a {
    color: var(--theme-accent);
    text-decoration: none;
}

.glass-table tbody td a:hover {
    text-decoration: underline;
}

/* Device Cards for Devices Page */
.device-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.device-card:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.device-card.current-session {
    border-color: var(--theme-accent);
    background: rgba(var(--albion-theme-primary-rgb), 0.1);
}

.device-card.removing {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 1s;
}

.device-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.device-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--albion-theme-primary-rgb), 0.2);
    border-radius: 12px;
}

.device-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.device-details span {
    color: var(--theme-text-primary);
    font-size: 0.95rem;
}

.device-details strong {
    color: var(--theme-accent);
    margin-right: 0.5rem;
}

/* Friend Cards */
.friend-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.friend-card:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.friend-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.friend-info i {
    font-size: 1.2rem;
    color: var(--theme-accent);
    width: 30px;
    text-align: center;
}

.friend-info span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--theme-text-primary);
}

.friend-actions {
    display: flex;
    gap: 0.5rem;
}

.add-friend-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.add-friend-input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: var(--theme-text-primary);
    transition: all 0.3s;
}

.add-friend-input:focus {
    border-color: var(--theme-accent);
    outline: none;
    background: rgba(0, 0, 0, 0.5);
}

.btn-accept { background-color: #28a745; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; transition: opacity 0.2s; }
.btn-accept:hover { opacity: 0.8; }

.btn-decline { background-color: #dc3545; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; transition: opacity 0.2s; }
.btn-decline:hover { opacity: 0.8; }

.btn-cancel { background-color: #6c757d; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; transition: opacity 0.2s; }
.btn-cancel:hover { opacity: 0.8; }

.btn-remove { background-color: #dc3545; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; transition: opacity 0.2s; }
.btn-remove:hover { opacity: 0.8; }

.btn-add { background-color: var(--theme-accent); color: white; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 500; transition: opacity 0.2s; }
.btn-add:hover { opacity: 0.9; }

/* Connection Cards */
.connections-table {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.connection-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 300px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.connection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.connection-card .header {
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connection-card.patreon .header {
    background: linear-gradient(45deg, #ff424d, #ff8a8f);
}

.connection-card.discord .header {
    background: linear-gradient(45deg, #5865F2, #7289da);
}

.connection-card .header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #22242a; /* Match card background roughly or dark theme bg */
    position: absolute;
    bottom: -40px;
    object-fit: cover;
    background: #22242a;
}

.connection-card .body {
    padding: 3rem 1.5rem 1.5rem;
    text-align: center;
}

.connection-card .name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 1.5rem;
    min-height: 1.5rem;
}

.connection-card .btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.connection-card .connect-btn {
    background: var(--theme-accent);
    color: white;
    border: none;
}

.connection-card .connect-btn:hover {
    opacity: 0.9;
    color: white;
}

.connection-card .disconnect-btn {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.connection-card .disconnect-btn:hover {
    background: #e74c3c;
    color: white;
}

.disconnect-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.disconnect-btn:hover {
    background: #e74c3c;
    color: white;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--theme-text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background: rgba(var(--albion-theme-primary-rgb), 0.2);
    border-color: var(--theme-accent);
}

.pagination .active {
   
    border-color: var(--theme-accent);
    color: white;
}

/* Sidebar Improvements */
.blog-sidebar .item__widget {
    margin-bottom: 1.5rem;
}

.blog-sidebar .item__widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--theme-accent);
}

.blog-sidebar .item__widget-inner {
    transition: all 0.3s;
}

.blog-sidebar .item__widget-inner:hover {
    transform: translateX(5px);
}

.blog-sidebar .trending__guilds-item {
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.blog-sidebar .trending__guilds-item:hover {
    background: rgba(var(--albion-theme-primary-rgb), 0.1);
}

.blog-sidebar .trending__guilds-content .title {
    color: var(--theme-text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.blog-sidebar .important-item {
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
}

.blog-sidebar .important-item:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

.blog-sidebar .discord-item {
    border: 1px solid rgba(114, 137, 218, 0.3);
    border-radius: 8px;
}

.blog-sidebar .discord-item:hover {
    background: rgba(114, 137, 218, 0.1);
    border-color: #7289da;
}

/* Modal/Popup Styling for Username/Password Changes */
.glass-modal {
    background: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px 0 rgba(0, 0, 0, 0.7);
    max-width: 500px;
    margin: 0 auto;
}

.glass-modal .modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.glass-modal .modal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--theme-accent), transparent);
}

.glass-modal .form-group {
    margin-bottom: 1.5rem;
}

.glass-modal label {
    display: block;
    color: var(--theme-text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.glass-modal input[type="text"],
.glass-modal input[type="password"],
.glass-modal input[type="email"],
.glass-modal select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--theme-text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.glass-modal input:focus,
.glass-modal select:focus {
    outline: none;
    border-color: var(--theme-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(var(--albion-theme-primary-rgb), 0.1);
}

.glass-modal .btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--theme-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.glass-modal .btn-submit:hover {
    background: var(--theme-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--albion-theme-primary-rgb), 0.4);
    opacity: 0.9;
}

.glass-modal .btn-cancel {
    width: 100%;
    padding: 1rem;
    background: transparent;
    color: var(--theme-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.glass-modal .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Discord Page Styling */
.discord-connection-card {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.discord-connection-card .discord-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 4px solid rgba(88, 101, 242, 0.5);
    display: block;
}

.discord-connection-card .discord-username {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
}

.discord-connection-card .discord-tag {
    color: var(--theme-text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.discord-connect-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #5865F2;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.discord-connect-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
    color: white;
    text-decoration: none;
}

/* Economy Gold Page Styling */
.gold-chart-container {
    background: rgba(34, 36, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.gold-chart-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.gold-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gold-stat-card {
    background: rgba(26, 188, 156, 0.15);
    border: 1px solid rgba(26, 188, 156, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.gold-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 188, 156, 0.2);
}

.gold-stat-card .stat-label {
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.gold-stat-card .stat-value {
    color: var(--theme-accent);
    font-size: 2rem;
    font-weight: 700;
}

/* Games Page Styling */
.game-card {
    background: rgba(34, 36, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.1), rgba(52, 152, 219, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(26, 188, 156, 0.3);
    border-color: var(--theme-accent);
}

.game-card:hover::before {
    opacity: 1;
}

.game-card .card-body {
    position: relative;
    z-index: 1;
}

.game-card i {
    font-size: 3.5rem !important;
    margin-bottom: 1rem;
    color: var(--theme-accent);
    transition: all 0.3s;
}

.game-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

.game-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.game-card .text-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-card .card-text {
    color: var(--theme-text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-custom-dark {
    background: var(--theme-accent);
    color: white;
    border: 2px solid var(--theme-accent);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-custom-dark:hover {
    background: transparent;
    color: var(--theme-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 188, 156, 0.3);
}

/* Preferences Page Glass Styling */
.guild__details-content-transparant {
    background: rgba(34, 36, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.general__form-wrap .input-grp {
    margin-bottom: 1.5rem;
}

.general__form-wrap p {
    color: var(--theme-text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.general__form-wrap .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--theme-text-primary);
    padding: 0.85rem 1rem;
    transition: all 0.3s;
}

.general__form-wrap .form-control:focus {
    outline: none;
    border-color: var(--theme-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}

.general__form-wrap button[type="submit"] {
    background: var(--theme-accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.general__form-wrap button[type="submit"]:hover {
    background: #16a085;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 188, 156, 0.4);
}

/* Sidebar Navigation */
.account-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-sidebar-nav li {
    margin-bottom: 0.8rem;
}

.account-sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--theme-text-secondary);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.account-sidebar-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--theme-accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.account-sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--theme-text-primary);
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.account-sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(26, 188, 156, 0.15), transparent);
    color: var(--theme-accent);
    border-color: rgba(26, 188, 156, 0.3);
    padding-left: 25px;
}

.account-sidebar-nav a.active::before {
    transform: scaleY(1);
}

.account-sidebar-nav a i {
    margin-right: 15px;
    width: 24px;
    text-align: center;
    color: var(--theme-text-secondary);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.account-sidebar-nav a:hover i,
.account-sidebar-nav a.active i {
    color: var(--theme-accent);
    transform: scale(1.2);
}

.account-sidebar-nav a.logout-link {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 12px 12px;
}

.account-sidebar-nav a.logout-link:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
    border-color: rgba(220, 53, 69, 0.3);
}

.account-sidebar-nav a.logout-link i {
    color: #ff6b6b;
}

.account-sidebar-nav a.logout-link:hover i {
    color: #ff6b6b;
    transform: rotate(90deg);
}

/* Pricing Table Styling */
.pricing-table {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    align-items: stretch;
    padding: 0 !important;
    width: 100%;
}

.pricing-card {
    flex: 1;
    min-width: 0;
    max-width: none !important;
    background: rgba(30, 35, 45, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible !important;
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(30, 35, 45, 0.8);
    z-index: 10;
}

.pricing-card .header {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.pricing-card .body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
    flex: 1;
}

.pricing-card ul li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
   
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.pricing-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.pricing-card ul li.not-included {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: line-through;
}

.pricing-card ul li.not-included::before {
    content: '\f00d' !important;
    color: #ff4757 !important;
    text-decoration: none;
}

.pricing-card .btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-top: auto;
    font-size: 0.8rem;
    background: transparent;
}

/* Theme: Basic (Green) */
.pricing-card.basic {
    border-top: 4px solid #45f882;
}
.pricing-card.basic .price { color: #45f882; }
.pricing-card.basic ul li::before { color: #45f882; }
.pricing-card.basic .btn {
    border: 1px solid #45f882;
    color: #45f882;
}
.pricing-card.basic .btn:hover {
    background: #45f882;
    color: #000;
    box-shadow: 0 0 20px rgba(69, 248, 130, 0.4);
}

/* Theme: Pro (Gold/Orange) */
.pricing-card.pro {
    border-top: 4px solid #f39c12;
    background: linear-gradient(180deg, rgba(243, 156, 18, 0.05) 0%, rgba(30, 35, 45, 0.6) 100%);
}
.pricing-card.pro .price { color: #f39c12; }
.pricing-card.pro ul li::before { color: #f39c12; }
.pricing-card.pro .btn {
    background: #f39c12;
    color: #fff;
    border: none;
}
.pricing-card.pro .btn:hover {
    background: #e67e22;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.4);
}

/* Theme: Lifetime (Blue) */
.pricing-card.lifetime {
    border-top: 4px solid #45aaf8;
    background: linear-gradient(180deg, rgba(69, 170, 248, 0.05) 0%, rgba(30, 35, 45, 0.6) 100%);
}
.pricing-card.lifetime .price { color: #45aaf8; }
.pricing-card.lifetime ul li::before { color: #45aaf8; }
.pricing-card.lifetime .btn {
    border: 1px solid #45aaf8;
    color: #45aaf8;
}
.pricing-card.lifetime .btn:hover {
    background: #45aaf8;
    color: #fff;
    box-shadow: 0 0 20px rgba(69, 170, 248, 0.4);
}

/* Recommended Badge */
.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #f39c12;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    white-space: nowrap;
    z-index: 20;
    letter-spacing: 1px;
}

/* Recommended Card Styling Override */
.pricing-card.recommended {
    transform: scale(1.05);
    z-index: 5;
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.15);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.pricing-card.recommended:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 50px rgba(243, 156, 18, 0.25);
    z-index: 15;
}

@media (max-width: 991px) {
    .pricing-table {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 400px !important;
        margin-bottom: 2rem;
    }

    .pricing-card.recommended {
        transform: scale(1);
        margin: 2rem 0;
    }
    
    .pricing-card.recommended:hover {
        transform: translateY(-5px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .account-hero {
        /* height: 150px; removed specific height */
        min-height: auto;
    }

    .account-main-content {
        /* padding-top: 60px; removed extra padding since margin-bottom is handled */
    }

    .glass-card {
        padding: 1.5rem;
    }

    .device-info {
        flex-direction: column;
        text-align: center;
    }

    .gold-stats-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        padding: 2rem;
    }
}

/* Battle Table Specifics */
.battle-table thead th {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.battle-table tbody tr {
    transition: all 0.3s ease;
}

.battle-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.fame-text {
    font-family: 'Roboto Mono', monospace;
    color: #f1c40f;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.3);
}

/* Battle Action Buttons */
.battle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-left: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
}

.battle-btn:hover {
    transform: translateY(-3px) scale(1.1);
    color: #fff;
}

.btn-view {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.btn-view:hover {
    background: #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-delete {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-delete:hover {
    background: #e74c3c;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Table Responsive Scrollbar - Hidden */
.table-responsive {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.table-responsive::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Webkit */
}



/* Active Plan Styling */
.pricing-card.active-plan {
    border: 2px solid #2ecc71 !important;
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.1) 0%, rgba(30, 35, 45, 0.8) 100%) !important;
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(46, 204, 113, 0.2);
    z-index: 5;
}

.pricing-card.active-plan::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    box-shadow: inset 0 0 20px rgba(46, 204, 113, 0.1);
    pointer-events: none;
}

.pricing-card.active-plan .header {
    color: #2ecc71 !important;
}

.pricing-card.active-plan .price {
    color: #2ecc71 !important;
}

.pricing-card.active-plan .btn {
    background: rgba(46, 204, 113, 0.2) !important;
    color: #2ecc71 !important;
    border: 1px solid rgba(46, 204, 113, 0.3) !important;
    cursor: default;
}

/* --- Mobile Account Menu --- */
.mobile-menu-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 16px; /* Squircle shape */
    background: rgba(34, 36, 42, 0.95); /* Glass-like dark background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--theme-accent); /* Accent color for icon */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mobile-menu-fab:hover {
    transform: scale(1.05);
    background: rgba(34, 36, 42, 1);
    border-color: var(--theme-accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.mobile-menu-fab:active {
    transform: scale(0.95);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    justify-content: flex-end;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    background: #1a1b1e;
    width: 85%;
    max-width: 350px;
    height: 100%;
    padding: 25px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,0.08);
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
}
.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.mobile-menu-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}
.mobile-menu-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav-list li {
    margin-bottom: 8px;
}
.mobile-nav-list li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.mobile-nav-list li a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    transform: translateX(5px);
}
.mobile-nav-list li a.active {
    background: rgba(211, 47, 47, 0.15); /* Theme accent semi-transparent */
    color: #fff; /* Theme accent color */
    border-color: rgba(211, 47, 47, 0.3);
    font-weight: 500;
}
.mobile-nav-list li a i {
    width: 35px;
    text-align: center;
    margin-right: 10px;
    font-size: 1.1rem;
    color: inherit; /* Use link color */
}
.mobile-nav-list li a.logout-link {
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
    padding-top: 15px;
    color: #ff6b6b;
}

/* Scrollbar for mobile menu */
.mobile-menu-content::-webkit-scrollbar {
    width: 6px;
}
.mobile-menu-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.mobile-menu-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

/* --- Account Hero Mobile Fixes --- */
@media (max-width: 767.98px) {
    .account-hero {
        overflow: hidden !important; /* Contain content */
        margin-bottom: 2rem !important;
        height: auto !important; /* Allow height to adapt to content */
        display: flex;
        flex-direction: column;
    }
    
    .account-hero-banner {
        height: 120px !important; /* Smaller banner height */
        border-radius: 12px 12px 0 0;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 0;
    }
    
    .account-hero-content {
        position: relative;
        z-index: 10;
        margin-top: 60px; /* Push content down slightly but keep overlapping banner */
        padding: 1.5rem;
        background: transparent; /* Remove gradient background block causing issues */
        text-align: center !important; /* Center everything on mobile */
        clip-path: none;
        overflow: visible;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Gradient overlay for readability */
    .account-hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0.9) 100%);
        pointer-events: none;
        z-index: 1;
        border-radius: 12px;
    }

    /* Fix avatar sizing */
    .account-hero-content > div:first-child img {
        width: 100px !important; /* Larger avatar */
        height: 100px !important;
        border: none !important; /* Remove border */
        box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    }

    .account-hero-content > div:first-child {
        margin-top: 0;
        margin-bottom: 15px;
    }
    
    /* Fix text sizes */
    .account-hero-content .title {
        font-size: 1.5rem !important; /* Smaller title */
        margin-bottom: 5px;
    }
    
    .account-hero-content p, 
    .account-hero-content .small {
        font-size: 0.85rem !important;
    }
    
    /* Ensure text visibility */
    .account-hero-content .title,
    .account-hero-content span,
    .account-hero-content i {
        text-shadow: 0 2px 4px rgba(0,0,0,0.8);
        position: relative;
    }
    
    /* Notification bell positioning - Removed */
    .account-hero-content .dropdown {
        display: none !important;
    }
}

/* --- Enhanced Quick Actions --- */
.action-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem !important;
    height: 100%;
}

.action-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3) !important;
    border-color: rgba(255,255,255,0.2) !important;
}

.action-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.action-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.action-card h6 {
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
    color: var(--theme-text-primary);
}

/* Color Variants */
.action-card.primary .icon-wrapper { background: rgba(13, 110, 253, 0.1); color: #0d6efd; box-shadow: 0 0 15px rgba(13, 110, 253, 0.1); }
.action-card.primary:hover { border-color: rgba(13, 110, 253, 0.5) !important; }

.action-card.success .icon-wrapper { background: rgba(25, 135, 84, 0.1); color: #198754; box-shadow: 0 0 15px rgba(25, 135, 84, 0.1); }
.action-card.success:hover { border-color: rgba(25, 135, 84, 0.5) !important; }

.action-card.warning .icon-wrapper { background: rgba(255, 193, 7, 0.1); color: #ffc107; box-shadow: 0 0 15px rgba(255, 193, 7, 0.1); }
.action-card.warning:hover { border-color: rgba(255, 193, 7, 0.5) !important; }

.action-card.info .icon-wrapper { background: rgba(13, 202, 240, 0.1); color: #0dcaf0; box-shadow: 0 0 15px rgba(13, 202, 240, 0.1); }
.action-card.info:hover { border-color: rgba(13, 202, 240, 0.5) !important; }

.action-card.secondary .icon-wrapper { background: rgba(173, 181, 189, 0.1); color: #adb5bd; box-shadow: 0 0 15px rgba(173, 181, 189, 0.1); }
.action-card.secondary:hover { border-color: rgba(173, 181, 189, 0.5) !important; }
