/* UnityEarn - Modern 2025 Design System */

:root {
    --primary-color: #E0F2E9;
    --secondary-color: #C8E6C9;
    --accent-color: #A5D6A7;
    --dark-color: #388E3C;
    --light-color: #F1F8E9;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --warning-color: #FF9800;
    --info-color: #2196F3;
    --text-dark: #1B5E20;
    --text-light: #2E7D32;
    --text-white: #1B5E20;
    --text-on-light-bg: #1B5E20;
    --text-on-dark-bg: #ffffff;
    --text-black: #000000;
    --white: #ffffff;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(224, 242, 233, 0.25);
    --glass-border: rgba(224, 242, 233, 0.18);
    --glass-shadow: 0 8px 32px rgba(224, 242, 233, 0.37);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--success-color));
}

/* General Link Styles */
a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Responsive Text Colors */
.text-responsive {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.text-responsive:hover {
    color: var(--text-light);
}

.text-on-light {
    color: var(--text-dark);
}

.text-on-dark {
    color: var(--text-white);
}

.text-on-primary {
    color: var(--text-dark);
}

.text-on-secondary {
    color: var(--text-dark);
}

/* Auto-contrast text based on background */
.auto-contrast {
    color: var(--text-dark);
    background: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.auto-contrast:hover {
    color: var(--text-white);
    background: var(--dark-color);
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #E0F2E9 0%, #C8E6C9 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: -1;
}

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

/* Header */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-on-light-bg);
    padding: 1rem 0;
    box-shadow: var(--glass-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Mobile Header */
.mobile-header {
    display: none;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-on-light-bg);
    padding: 1rem 0;
    box-shadow: var(--glass-shadow);
    position: sticky;
    top: 0;
    z-index: 998;
}

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

.hamburger-menu {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-on-light-bg);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1001;
    background: var(--glass-bg);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-on-light-bg);
    font-weight: bold;
    font-size: 1.2rem;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-on-light-bg);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    position: relative;
    z-index: 1002;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    flex-shrink: 0;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-close:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

.sidebar-close .material-icons, .sidebar-close i {
    pointer-events: none;
    user-select: none;
}

/* Ensure close button is always accessible */
.sidebar-close:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Make sure close button is not covered by other elements */
@media (max-width: 1024px) {
    .sidebar-close {
        position: relative;
        z-index: 9999 !important;
        pointer-events: auto !important;
    }
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-on-light-bg);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--dark-color);
    text-decoration: none !important;
}

.sidebar-nav-item.active {
    background: rgba(56, 142, 60, 0.1);
    border-left-color: var(--dark-color);
}

.sidebar-nav-item .material-icons, .sidebar-nav-item i {
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Removed sidebar user info styles - no longer needed */

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
}

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

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

/* Removed user info styles - no longer needed */

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-on-light-bg);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
}

.nav-link.register {
    background: var(--dark-color);
    color: var(--white);
    border: 2px solid var(--dark-color);
}

.nav-link.register:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 142, 60, 0.3);
}

.nav-link.logout {
    background: var(--error-color);
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: 2px solid var(--dark-color);
    border-radius: 50%;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    animation: profileFloat 3s ease-in-out infinite;
}

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

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

.profile-btn:hover {
    background: var(--dark-color);
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(56, 142, 60, 0.4);
    animation-play-state: paused;
}

.profile-btn:active {
    transform: translateY(-1px) scale(0.95);
    transition: all 0.1s ease;
}

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

@keyframes profilePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 142, 60, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(56, 142, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 142, 60, 0);
    }
}

.profile-btn.animate-pulse {
    animation: profilePulse 1.5s infinite;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    margin-top: 8px;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: dropdownSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    transform: translateX(-10px);
    opacity: 0;
    animation: dropdownItemSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.dropdown-item:nth-child(1) { animation-delay: 0.1s; }
.dropdown-item:nth-child(2) { animation-delay: 0.15s; }
.dropdown-item:nth-child(3) { animation-delay: 0.2s; }
.dropdown-item:nth-child(4) { animation-delay: 0.25s; }

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

.dropdown-item:hover::before {
    left: 100%;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--dark-color);
    text-decoration: none;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(56, 142, 60, 0.1);
}

@keyframes dropdownItemSlideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.dropdown-item.logout {
    color: var(--error-color);
}

.dropdown-item.logout:hover {
    background: #FFEBEE;
    color: var(--error-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.5rem 0;
}

/* Notification Dropdown */
.notification-dropdown {
    position: relative;
    display: inline-block;
}

.notification-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: 2px solid var(--dark-color);
    border-radius: 50%;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    position: relative;
    overflow: visible;
}

.notification-btn:hover {
    background: var(--dark-color);
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(56, 142, 60, 0.4);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: var(--white);
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0 6px;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
    animation: pulse 2s infinite;
}

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

.notification-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 380px;
    max-width: 90vw;
    max-height: 500px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notification-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: dropdownSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-header {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-color);
}

.notification-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: var(--dark-color);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mark-all-read-btn:hover {
    background: var(--primary-color);
    color: var(--dark-color);
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.notification-list::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    gap: 0.75rem;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--light-color);
}

.notification-item.unread {
    background: var(--primary-color);
}

.notification-item.unread:hover {
    background: var(--secondary-color);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--dark-color);
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.notification-message {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
}

.notification-time {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.notification-loading,
.notification-empty {
    padding: 2rem;
    text-align: center;
    color: var(--gray-500);
}

.notification-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    background: var(--gray-100);
}

.view-all-notifications {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.view-all-notifications:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Mobile notification styles */
.mobile-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-notification {
    position: relative;
}

.mobile-notification .notification-menu {
    right: 0;
    left: auto;
    width: 320px;
    max-width: calc(100vw - 2rem);
}

/* Mobile notification overlay */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .notification-menu {
        width: calc(100vw - 2rem);
        max-width: 400px;
    }
    
    /* Mobile notification dropdown - fixed position for better visibility */
    .mobile-notification .notification-menu {
        position: fixed !important;
        top: 70px !important;
        right: 1rem !important;
        left: auto !important;
        width: calc(100vw - 2rem) !important;
        max-width: 350px !important;
        transform-origin: top right;
        z-index: 1001 !important;
        max-height: calc(100vh - 90px);
    }
    
    /* Make notification items more touch-friendly on mobile */
    .notification-item {
        padding: 1.25rem 1rem;
        min-height: 70px;
    }
    
    .notification-header {
        padding: 0.875rem;
    }
    
    .notification-header h3 {
        font-size: 1rem;
    }
    
    .notification-title {
        font-size: 0.9rem;
    }
    
    .notification-message {
        font-size: 0.8rem;
    }
    
    .notification-footer {
        padding: 0.625rem 0.875rem;
    }
}

@media (max-width: 480px) {
    .mobile-notification .notification-menu {
        width: calc(100vw - 1.5rem) !important;
        right: 0.75rem !important;
        max-width: none !important;
        top: 65px !important;
    }
    
    .notification-item {
        padding: 1rem 0.875rem;
    }
    
    .notification-header {
        padding: 0.75rem;
    }
    
    .notification-footer {
        padding: 0.5rem 0.75rem;
    }
}

/* Mobile Sidebar Profile Section */
.sidebar-profile-section {
    border-top: 1px solid var(--glass-border);
    margin-top: 1rem;
    padding-top: 1rem;
}

/* Support Pages */
.support-container {
    padding: 2rem 0;
}

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

.support-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

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

.support-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.support-form label {
    font-weight: 600;
    color: var(--text-dark);
}

.support-form input,
.support-form select,
.support-form textarea {
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.1);
}

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

.ticket-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
    border-left: 4px solid var(--gray-300);
}

.ticket-item.open {
    border-left-color: var(--info-color);
}

.ticket-item.in_progress {
    border-left-color: var(--warning-color);
}

.ticket-item.resolved {
    border-left-color: var(--success-color);
}

.ticket-item.closed {
    border-left-color: var(--gray-400);
}

.ticket-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

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

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

.ticket-id {
    font-family: monospace;
    font-weight: 600;
    color: var(--text-light);
}

.ticket-priority,
.ticket-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ticket-priority.priority-low {
    background: #E3F2FD;
    color: #1976D2;
}

.ticket-priority.priority-medium {
    background: #FFF3E0;
    color: #F57C00;
}

.ticket-priority.priority-high {
    background: #FFEBEE;
    color: #D32F2F;
}

.ticket-priority.priority-urgent {
    background: #F3E5F5;
    color: #7B1FA2;
}

.ticket-status.status-open {
    background: #E3F2FD;
    color: #1976D2;
}

.ticket-status.status-in_progress {
    background: #FFF3E0;
    color: #F57C00;
}

.ticket-status.status-resolved {
    background: #E8F5E8;
    color: #388E3C;
}

.ticket-status.status-closed {
    background: #F5F5F5;
    color: #616161;
}

.ticket-preview p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Ticket Details */
.ticket-details {
    margin-top: 2rem;
}

.ticket-header-info h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.conversation {
    margin-bottom: 2rem;
}

.message {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.message.user-message {
    border-left: 4px solid var(--primary-color);
}

.message.admin-message {
    border-left: 4px solid var(--success-color);
    background: var(--light-color);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.message-author {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-badge {
    background: var(--success-color);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.message-time {
    color: var(--text-light);
    font-size: 0.9rem;
}

.message-content {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Response Form */
.response-form {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.response-form h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

.response-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
}

.response-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.1);
}

/* Admin Support Styles */
.filter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.filter-form label {
    font-weight: 600;
    color: var(--text-dark);
}

.filter-form select {
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.filter-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.1);
}

.tickets-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tickets-table .table-header {
    display: grid;
    grid-template-columns: 80px 1fr 2fr 100px 120px 120px 100px;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--text-dark);
}

.tickets-table .table-row {
    display: grid;
    grid-template-columns: 80px 1fr 2fr 100px 120px 120px 100px;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    align-items: center;
    transition: var(--transition);
}

.tickets-table .table-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ticket-subject {
    font-weight: 500;
    color: var(--text-dark);
}

.priority-badge,
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.priority-low {
    background: #E3F2FD;
    color: #1976D2;
}

.priority-badge.priority-medium {
    background: #FFF3E0;
    color: #F57C00;
}

.priority-badge.priority-high {
    background: #FFEBEE;
    color: #D32F2F;
}

.priority-badge.priority-urgent {
    background: #F3E5F5;
    color: #7B1FA2;
}

.status-badge.status-open {
    background: #E3F2FD;
    color: #1976D2;
}

.status-badge.status-in_progress {
    background: #FFF3E0;
    color: #F57C00;
}

.status-badge.status-resolved {
    background: #E8F5E8;
    color: #388E3C;
}

.status-badge.status-closed {
    background: #F5F5F5;
    color: #616161;
}

.ticket-info {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-dark);
}

.info-value {
    color: var(--text-light);
}

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

.status-update,
.response-form {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.status-update h3,
.response-form h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.status-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-form select {
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.status-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.1);
}

/* Responsive Design for Support */
@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .tickets-table .table-header,
    .tickets-table .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .tickets-table .table-header > div,
    .tickets-table .table-row > div {
        padding: 0.25rem 0;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .tickets-table .table-header > div:before,
    .tickets-table .table-row > div:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--text-light);
    }
    
    .admin-actions {
        grid-template-columns: 1fr;
    }
}

/* Alerts */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: var(--light-color);
    color: var(--dark-color);
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background: #FFEBEE;
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.alert-info {
    background: #E3F2FD;
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

.alert-warning {
    background: #FFF3E0;
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert strong {
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 142, 60, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
}

.btn-outline:hover {
    background: var(--dark-color);
    color: var(--white);
    border-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 142, 60, 0.3);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-warning {
    background: var(--warning-color);
    color: var(--white);
}

.btn-danger {
    background: var(--error-color);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    background: var(--light-color);
    border-bottom: 1px solid var(--gray-200);
}

.card-content {
    padding: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-on-light-bg);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--text-on-light-bg);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-on-light-bg);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--text-on-light-bg);
}

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

/* Features Section */
.features-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--white);
    border: 2px solid var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(56, 142, 60, 0.2);
}

.feature-icon .material-icons, .feature-icon i {
    font-size: 2rem;
    color: var(--dark-color);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 0;
    background: var(--light-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.pricing-features {
    margin-bottom: 2rem;
}

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

.feature .material-icons, .feature i {
    color: var(--dark-color);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: var(--secondary-color);
    color: var(--text-on-light-bg);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.auth-footer a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

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

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

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

/* Checkbox styling */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
}

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

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-400);
    border-radius: 4px;
    background: var(--white);
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--success-color);
    border-color: var(--success-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus + .checkmark {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.checkbox-label a {
    color: var(--dark-color);
    text-decoration: underline;
    font-weight: 500;
}

.checkbox-label a:hover {
    color: var(--accent-color);
}

/* Password input wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 3rem;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: rgba(77, 182, 172, 0.1);
}

.password-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.password-toggle .material-icons, .password-toggle i {
    font-size: 1.25rem;
}

/* Remove unwanted hover lines and outlines */
button:hover,
input:hover,
.btn:hover {
    outline: none !important;
    text-decoration: none !important;
}

/* Ensure no unwanted borders on hover */
button:focus,
input:focus,
.btn:focus {
    outline: none;
}

/* Remove any default browser button styling */
button {
    outline: none;
    border: none;
    background: none;
    cursor: pointer;
}

button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dashboard */
.dashboard-container {
    padding: 2rem 0;
}

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

.dashboard-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 2px solid var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(56, 142, 60, 0.2);
}

.stat-icon .material-icons, .stat-icon i {
    font-size: 1.5rem;
    color: var(--dark-color);
    transition: transform 0.3s ease;
}

/* Icon Animations */
.stat-icon.animate-bounce {
    animation: statBounce 2s ease-in-out infinite;
}

.stat-icon.animate-rotate {
    animation: statRotate 3s linear infinite;
}

.stat-icon.animate-pulse {
    animation: statPulse 2s ease-in-out infinite;
}

.stat-icon.animate-swing {
    animation: statSwing 2s ease-in-out infinite;
}

/* Bounce Animation */
@keyframes statBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Rotate Animation */
@keyframes statRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Pulse Animation */
@keyframes statPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(56, 142, 60, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(56, 142, 60, 0.4);
    }
}

/* Swing Animation */
@keyframes statSwing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(10deg);
    }
    75% {
        transform: rotate(-10deg);
    }
}

.stat-content h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

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

.dashboard-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-card .card-header {
    background: var(--light-color);
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.dashboard-card .card-header h2 {
    color: var(--text-dark);
    margin: 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--light-color);
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    cursor: pointer;
}

.action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.action-btn .material-icons, .action-btn i {
    font-size: 2rem;
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-dark);
}

.info-value {
    color: var(--text-light);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.basic {
    background: var(--accent-color);
    color: var(--white);
}

.badge.premium {
    background: var(--warning-color);
    color: var(--white);
}

.badge.pending {
    background: var(--warning-color);
    color: var(--white);
}

.badge.approved {
    background: var(--success-color);
    color: var(--white);
}

.badge.rejected {
    background: var(--error-color);
    color: var(--white);
}

.badge.available {
    background: var(--success-color);
    color: var(--white);
}

.badge.used {
    background: var(--gray-400);
    color: var(--white);
}

.badge.active {
    background: var(--success-color);
    color: var(--white);
}

.badge.inactive {
    background: var(--gray-400);
    color: var(--white);
}

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

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
}

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

.activity-icon .material-icons, .activity-icon i {
    color: var(--white);
    font-size: 1.2rem;
}

.activity-content {
    flex: 1;
}

.activity-description {
    font-weight: 600;
    color: var(--text-dark);
}

.activity-time {
    font-size: 0.9rem;
    color: var(--text-light);
}

.activity-amount {
    font-weight: bold;
    color: var(--success-color);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.empty-state .material-icons, .empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

/* Tasks */
.earn-container {
    padding: 2rem 0;
}

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

.earn-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

.task-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.task-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--white);
    border: 2px solid var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(56, 142, 60, 0.2);
}

.task-icon .material-icons, .task-icon i {
    font-size: 2rem;
    color: var(--dark-color);
}

.task-content h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.task-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.task-reward {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--success-color);
    font-weight: 600;
}

.task-actions {
    margin-top: 1.5rem;
}

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

.info-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.info-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.info-card ul,
.info-card ol {
    padding-left: 1.5rem;
}

.info-card li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Task Pages */
.task-container {
    padding: 2rem 0;
}

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

.task-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.task-card {
    max-width: 600px;
    margin: 0 auto;
}

.task-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.timer-container {
    text-align: center;
    margin-bottom: 2rem;
}

.timer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--warning-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: bold;
}

.problem-display,
.captcha-display,
.question-display {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.problem-display h2,
.captcha-display h2,
.question-display h2 {
    font-size: 2rem;
    color: var(--text-dark);
}

.answer-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.answer-container input {
    flex: 1;
    padding: 1rem;
    font-size: 1.2rem;
    text-align: center;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
}

.answer-container input:disabled {
    background: var(--gray-100);
    color: var(--gray-500);
}

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

.option-btn {
    padding: 1rem;
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.option-btn:hover:not(:disabled) {
    background: var(--light-color);
    border-color: var(--primary-color);
}

.option-btn.selected {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.option-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-container {
    text-align: center;
}

.task-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Referral Page */
.referral-container {
    padding: 2rem 0;
}

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

.referral-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

.referral-share {
    margin-bottom: 3rem;
}

.share-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.referral-link-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.referral-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-family: monospace;
}

.referral-info ul {
    padding-left: 1.5rem;
}

.referral-info li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

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

.referral-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.referral-icon .material-icons, .referral-icon i {
    color: var(--white);
}

.referral-content {
    flex: 1;
}

.referral-name {
    font-weight: 600;
    color: var(--text-dark);
}

.referral-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.referral-bonus {
    font-weight: bold;
    color: var(--success-color);
}

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

.tip-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
}

.tip-card .material-icons, .tip-card i {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

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

.tip-card p {
    color: var(--text-light);
}

/* Payout Page */
.payout-container {
    padding: 2rem 0;
}

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

.payout-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

.balance-display {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.balance-coins,
.balance-pesos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.balance-coins .material-icons,
.balance-pesos .material-icons,
.balance-coins i,
.balance-pesos i {
    font-size: 1.2rem;
    color: var(--dark-color);
}

.payout-form-section {
    margin-bottom: 3rem;
}

.form-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-card h3 {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.payout-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.payout-summary {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.payout-summary h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.summary-item.total {
    font-weight: bold;
    color: var(--text-dark);
    border-top: 1px solid var(--gray-300);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.history-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--text-dark);
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    align-items: center;
}

.table-row .amount {
    font-weight: 600;
    color: var(--text-dark);
}

.table-row .method {
    color: var(--text-light);
}

.table-row .date {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Admin Pages */
.admin-container {
    padding: 2rem 0;
}

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

.admin-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

.admin-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.admin-card .card-header {
    background: var(--light-color);
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.admin-card .card-header h2 {
    color: var(--text-dark);
    margin: 0;
}

.generate-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.users-table,
.payouts-table,
.codes-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.table-header {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--text-dark);
}

.users-table .table-header {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.payouts-table .table-header {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.codes-table .table-header {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.table-row {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    align-items: center;
}

.users-table .table-row {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.payouts-table .table-row {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.codes-table .table-row {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
}

.user-email {
    font-size: 0.9rem;
    color: var(--text-light);
}

.user-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-coins {
    font-weight: 600;
    color: var(--text-dark);
}

.user-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.payout-user {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.payout-amount {
    font-weight: 600;
    color: var(--text-dark);
}

.payout-amount small {
    display: block;
    font-weight: normal;
    color: var(--text-light);
}

.payout-method {
    color: var(--text-light);
}

.payout-details {
    text-align: center;
}

.payout-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.processed-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.code-value {
    font-family: monospace;
    font-weight: 600;
    color: var(--text-dark);
}

.code-type {
    text-align: center;
}

.code-status {
    text-align: center;
}

.code-user {
    color: var(--text-light);
}

.code-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
}

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

.modal-header h3 {
    margin: 0;
    color: var(--text-dark);
}

.close {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-dark);
}

/* User modal header override - dark green for better contrast */
.user-dashboard .modal-header,
.user-container .modal-header,
#ticketModal .modal-header {
    background: linear-gradient(135deg, var(--dark-color), var(--success-color));
}

.user-dashboard .modal-header h2,
.user-dashboard .modal-header h3,
.user-container .modal-header h2,
.user-container .modal-header h3,
#ticketModal .modal-header h2,
#ticketModal .modal-header h3 {
    color: white !important;
}

.user-dashboard .modal-ticket-meta .ticket-id,
.user-dashboard .modal-ticket-meta .ticket-priority,
.user-dashboard .modal-ticket-meta .ticket-status,
.user-container .modal-ticket-meta .ticket-id,
.user-container .modal-ticket-meta .ticket-priority,
.user-container .modal-ticket-meta .ticket-status,
#ticketModal .modal-ticket-meta .ticket-id,
#ticketModal .modal-ticket-meta .ticket-priority,
#ticketModal .modal-ticket-meta .ticket-status {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
}

.user-dashboard .modal-close,
.user-container .modal-close,
#ticketModal .modal-close {
    color: white !important;
}

.user-dashboard .modal-close:hover,
.user-container .modal-close:hover,
#ticketModal .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.5rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 0rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: var(--gray-400);
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-500);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    /* Show mobile header, hide desktop header */
    .header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid,
    .pricing-grid,
    .tasks-grid,
    .earn-info,
    .payout-info {
        grid-template-columns: 1fr;
    }
    
    .tasks-grid {
        gap: 3rem;
        margin-bottom: 4rem;
    }
    
    .earn-container {
        padding: 3rem 0;
    }
    
    .earn-header {
        margin-bottom: 4rem;
    }
    
    .task-card {
        margin-bottom: 2rem;
    }
    
    .progress-info {
        margin-bottom: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .referral-link-container {
        flex-direction: column;
    }
    
    .answer-container {
        flex-direction: column;
    }
    
    .task-actions {
        flex-direction: column;
    }
    
    .nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .user-info {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .alert {
        flex-wrap: wrap;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.6;
    }
    
    .alert i {
        flex-shrink: 0;
    }
    
    .question-display h2 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
    }
    
    .table-header > div,
    .table-row > div {
        padding: 0.25rem 0;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .table-header > div:before,
    .table-row > div:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--text-light);
    }
    
    /* Mobile sidebar adjustments */
    .mobile-sidebar {
        width: 100%;
        max-width: 320px;
    }
    
    .sidebar-nav-item {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .alert {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .alert strong {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .question-display h2 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tasks-grid {
        gap: 2.5rem;
        margin-bottom: 3.5rem;
    }
    
    .earn-container {
        padding: 2.5rem 0;
    }
    
    .earn-header {
        margin-bottom: 3.5rem;
    }
    
    .progress-info {
        margin-bottom: 0.75rem;
    }
    
    .auth-card {
        margin: 0 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Animation for success states */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn.success {
    animation: successPulse 0.5s ease-in-out;
    background: var(--success-color) !important;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}
