/* REKTPAD - Leptos Frontend Styles */
/* Extracted from HTML templates - Glassmorphic Design System */

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

:root {
    --qtum-blue: #0066FF;
    --qtum-blue-light: #3385FF;
    --qtum-purple: #8B5CF6;
    --bg-primary: #0a0b0f;
    --bg-secondary: #12141a;
    --bg-tertiary: #1a1d26;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-tertiary: #718096;
    --border-color: rgba(255, 255, 255, 0.08);
    --hover-bg: rgba(255, 255, 255, 0.03);
    --green: #10b981;
    --red: #ef4444;
    --glow-blue: rgba(0, 102, 255, 0.15);
    --glow-blue-bright: rgba(0, 102, 255, 0.25);
    --glow-purple: rgba(139, 92, 246, 0.15);
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Animated background with multiple layers */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bg-gradient-1 {
    background: radial-gradient(circle at 20% 30%, var(--glow-blue), transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.bg-gradient-2 {
    background: radial-gradient(circle at 80% 70%, var(--glow-blue-bright), transparent 50%);
    animation: float 25s ease-in-out infinite reverse;
}

.bg-gradient-3 {
    background: radial-gradient(circle at 50% 50%, var(--glow-purple), transparent 60%);
    animation: float 30s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Glass noise texture overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 2;
}

/* Enhanced Sidebar with depth */
.sidebar {
    width: 70px;
    background: rgba(18, 20, 26, 0.8);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 16px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
    box-shadow:
        4px 0 24px rgba(0, 0, 0, 0.3),
        inset -1px 0 0 rgba(255, 255, 255, 0.05);
}

.sidebar-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 22px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    position: relative;
}

.sidebar-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 102, 255, 0.2);
}

.sidebar-icon:hover::before {
    opacity: 1;
}

.sidebar-icon.active {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.25), rgba(0, 102, 255, 0.15));
    color: var(--qtum-blue-light);
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow:
        0 0 20px rgba(0, 102, 255, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 70px;
    display: flex;
    flex-direction: column;
}

/* Enhanced Top Bar with glass effect */
.top-bar {
    height: 80px;
    background: rgba(18, 20, 26, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 32px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05),
        0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(0, 102, 255, 0.4));
}

.logo-text {
    background: linear-gradient(135deg, var(--qtum-blue), var(--qtum-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    height: 48px;
    background: rgba(26, 29, 38, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0 20px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-input:focus {
    outline: none;
    border-color: rgba(0, 102, 255, 0.5);
    background: rgba(26, 29, 38, 0.95);
    box-shadow:
        0 0 0 4px rgba(0, 102, 255, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--qtum-blue), var(--qtum-blue-light));
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 12px rgba(0, 102, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

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

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(0, 102, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

.btn-search:active {
    transform: translateY(0);
}

.top-actions {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.btn {
    height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--qtum-blue), var(--qtum-blue-light));
    color: #ffffff;
    box-shadow:
        0 4px 12px rgba(0, 102, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(0, 102, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(26, 29, 38, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

/* Glass Cards */
.glass-card {
    background: rgba(26, 29, 38, 0.7);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 20px;
    border: 1px solid rgba(79, 209, 197, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur()) {
    .glass-card {
        background: rgba(26, 29, 38, 0.95);
    }
}

/* Neon Text Effects */
.neon-text {
    color: #4FD1C5;
    text-shadow:
        0 0 10px rgba(79,209,197,0.8),
        0 0 20px rgba(79,209,197,0.6),
        0 0 30px rgba(79,209,197,0.4);
    animation: neon-pulse 2s infinite;
}

@keyframes neon-pulse {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(79,209,197,0.8),
            0 0 20px rgba(79,209,197,0.6);
    }
    50% {
        text-shadow:
            0 0 15px rgba(79,209,197,1),
            0 0 30px rgba(79,209,197,0.8),
            0 0 45px rgba(79,209,197,0.6);
    }
}

/* Degen Button */
.degen-button {
    background: linear-gradient(135deg, #0066FF, #8B5CF6);
    border: 2px solid rgba(79,209,197,0.5);
    border-radius: 16px;
    padding: 16px 32px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    box-shadow:
        0 0 20px rgba(0,102,255,0.5),
        0 0 40px rgba(139,92,246,0.3);
    transition: all 0.3s ease;
}

.degen-button:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 40px rgba(0,102,255,0.8),
        0 0 80px rgba(139,92,246,0.5);
}

.degen-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.4), rgba(0, 102, 255, 0.3));
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.6), rgba(0, 102, 255, 0.5));
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }

    .main-content {
        margin-left: 60px;
    }

    .top-bar {
        padding: 0 16px;
        height: 70px;
    }

    .search-container {
        display: none;
    }

    .content-area {
        padding: 16px;
    }
}

/* Loading Spinner */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Error Display */
.error {
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: var(--red);
}

/* Positive/Negative Numbers */
.positive {
    color: var(--green);
    font-weight: 700;
}

.negative {
    color: var(--red);
    font-weight: 700;
}

/* Landing Page Styles */
.landing-container {
    padding: 32px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Trending Section */
.trending-section {
    margin-bottom: 48px;
}

.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--glow-blue);
}

.trending-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 209, 197, 0.3) rgba(26, 29, 38, 0.5);
}

.trending-scroll::-webkit-scrollbar {
    height: 8px;
}

.trending-scroll::-webkit-scrollbar-track {
    background: rgba(26, 29, 38, 0.5);
    border-radius: 4px;
}

.trending-scroll::-webkit-scrollbar-thumb {
    background: rgba(79, 209, 197, 0.3);
    border-radius: 4px;
}

.trending-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 209, 197, 0.5);
}

/* Trending Cards */
.trending-card {
    min-width: 240px;
    background: rgba(26, 29, 38, 0.6);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: inherit;
    display: block;
}

.trending-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.trending-card:hover {
    border-color: rgba(0, 102, 255, 0.4);
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 12px 32px rgba(0, 102, 255, 0.3),
        0 0 0 1px rgba(0, 102, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(26, 29, 38, 0.8);
}

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

.trending-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.trending-image {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--qtum-blue), var(--qtum-blue-light));
    box-shadow:
        0 4px 12px rgba(0, 102, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.trending-name {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.trending-symbol {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.trending-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.trending-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trending-stats:first-of-type {
    border-top: none;
    padding-top: 0;
}

.trending-stats .stat-label {
    color: var(--text-tertiary);
    font-weight: 500;
}

.trending-stats .stat-value {
    color: #4FD1C5;
    font-weight: 700;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.tab {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px 12px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab:hover {
    background: rgba(79, 209, 197, 0.1);
    color: #4FD1C5;
}

.tab.active {
    background: rgba(79, 209, 197, 0.15);
    border-color: #4FD1C5;
    color: #4FD1C5;
    box-shadow: 0 0 20px rgba(79, 209, 197, 0.3);
}

/* Table Container */
.table-container {
    background: rgba(26, 29, 38, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: rgba(18, 20, 26, 0.8);
    border-bottom: 1px solid rgba(79, 209, 197, 0.3);
}

th {
    padding: 16px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

th.sortable {
    cursor: pointer;
    user-select: none;
}

th.sortable:hover {
    color: #4FD1C5;
}

tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: rgba(79, 209, 197, 0.05);
}

td {
    padding: 16px 12px;
    font-size: 14px;
    color: var(--text-primary);
    vertical-align: middle;
    white-space: nowrap;
}

/* Responsive Tables */
@media (max-width: 1024px) {
    .table-wrapper {
        overflow-x: scroll;
    }

    th, td {
        padding: 12px 8px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .landing-container {
        padding: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .tab {
        padding: 10px 16px;
        font-size: 12px;
        white-space: nowrap;
    }
}

/* Create Token Page */
.create-token-container {
    padding: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.create-token-form {
    padding: 40px;
}

.form-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
    background: linear-gradient(135deg, #4FD1C5 0%, #0066FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

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

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.required {
    color: var(--red);
    margin-left: 4px;
}

.glass-input {
    padding: 12px 16px;
    background: rgba(26, 29, 38, 0.6);
    border: 1px solid rgba(79, 209, 197, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: #4FD1C5;
    box-shadow: 0 0 20px rgba(79, 209, 197, 0.3);
    background: rgba(26, 29, 38, 0.8);
}

.glass-input::placeholder {
    color: var(--text-tertiary);
}

textarea.glass-input {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* Image Upload */
.image-upload-area {
    position: relative;
    width: 100%;
    min-height: 200px;
    border: 2px dashed rgba(79, 209, 197, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.image-upload-area:hover {
    border-color: #4FD1C5;
    background: rgba(79, 209, 197, 0.05);
}

.image-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 200px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.btn-large {
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 700;
    min-width: 250px;
}

/* Form Info */
.form-info {
    padding: 24px;
    background: rgba(79, 209, 197, 0.05);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: 16px;
}

.form-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #4FD1C5;
    margin-bottom: 12px;
}

.form-info ul {
    list-style: none;
    padding: 0;
}

.form-info li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4FD1C5;
    font-weight: bold;
}

@media (max-width: 768px) {
    .create-token-container {
        padding: 16px;
    }

    .create-token-form {
        padding: 24px;
    }

    .form-title {
        font-size: 28px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .btn-large {
        min-width: 100%;
    }
}

/* Portfolio Page */
.portfolio-container {
    padding: 32px;
    max-width: 1600px;
    margin: 0 auto;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.empty-state {
    padding: 80px 40px;
    text-align: center;
}

.empty-state h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 16px;
}

.portfolio-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.summary-card {
    padding: 24px;
    text-align: center;
}

.summary-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.summary-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.portfolio-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portfolio-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.portfolio-token-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #4FD1C5;
}

.portfolio-token-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.portfolio-token-symbol {
    font-size: 14px;
    color: #4FD1C5;
    font-weight: 600;
}

.portfolio-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.portfolio-view-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: rgba(79, 209, 197, 0.1);
    border: 1px solid rgba(79, 209, 197, 0.3);
    border-radius: 12px;
    color: #4FD1C5;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portfolio-view-btn:hover {
    background: rgba(79, 209, 197, 0.2);
    border-color: #4FD1C5;
}

@media (max-width: 768px) {
    .portfolio-container {
        padding: 16px;
    }

    .page-title {
        font-size: 28px;
    }

    .portfolio-summary {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Profile Page */
.profile-container {
    padding: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header {
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
}

.profile-avatar {
    font-size: 80px;
}

.profile-address {
    font-size: 24px;
    font-family: monospace;
    margin-bottom: 16px;
}

.profile-stats-inline {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-inline {
    padding: 8px 16px;
    background: rgba(79, 209, 197, 0.1);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.profile-section {
    padding: 32px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.profile-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* Leaderboard Page */
.leaderboard-container {
    padding: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.rank-badge {
    font-weight: 700;
    font-size: 16px;
}

/* Graduated Page */
.graduated-container {
    padding: 32px;
    max-width: 1600px;
    margin: 0 auto;
}

.graduated-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.graduated-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 32px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #4FD1C5;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .profile-container, .leaderboard-container, .graduated-container {
        padding: 16px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats-inline {
        justify-content: center;
    }

    .graduated-stats {
        grid-template-columns: 1fr;
    }
}

/* ==================== Toast Notifications ==================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    min-width: 320px;
    max-width: 450px;
    background: rgba(26, 29, 38, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(79, 209, 197, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    transition: all 0.3s ease;
}

.toast:hover {
    transform: translateX(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

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

.toast-icon {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

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

/* Toast type variants */
.toast-success {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(26, 29, 38, 0.95);
}

.toast-success .toast-icon {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(26, 29, 38, 0.95);
}

.toast-error .toast-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.toast-warning {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(26, 29, 38, 0.95);
}

.toast-warning .toast-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

.toast-info {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(26, 29, 38, 0.95);
}

.toast-info .toast-icon {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
}

@media (max-width: 768px) {
    .toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* ==================== Loading Spinners ==================== */
.spinner {
    border: 3px solid rgba(79, 209, 197, 0.2);
    border-top-color: #4FD1C5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 11, 15, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
    background: rgba(26, 29, 38, 0.9);
    border: 1px solid rgba(79, 209, 197, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.loading-message {
    font-size: 16px;
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    min-height: 200px;
}

.loading-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.inline-spinner {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    vertical-align: middle;
}

/* ==================== Enhanced Mobile Responsiveness ==================== */
@media (max-width: 768px) {
    /* Create Token Form */
    .create-token-container {
        padding: 16px;
    }

    .create-token-form {
        padding: 24px 16px;
    }

    .form-title {
        font-size: 28px;
    }

    .form-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .image-upload-area {
        min-height: 160px;
    }

    /* Portfolio Page */
    .portfolio-container {
        padding: 16px;
    }

    .portfolio-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .summary-value {
        font-size: 28px;
    }

    /* Token Detail Page */
    .token-header-info h1 {
        font-size: 28px;
    }

    .token-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .token-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 20px;
    }

    .trading-panel {
        padding: 20px 16px;
    }

    .trade-input-group {
        flex-direction: column;
        gap: 12px;
    }

    .trade-button {
        width: 100%;
    }

    /* Tables */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 800px;
        font-size: 12px;
    }

    th, td {
        padding: 10px 8px;
    }

    .token-info {
        min-width: 140px;
    }

    /* Buttons */
    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
    }

    /* Glass Cards */
    .glass-card {
        padding: 20px 16px;
    }

    /* Page Titles */
    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    /* Sidebar - Hide on very small screens */
    body {
        font-size: 13px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .sidebar {
        width: 50px;
    }

    .main-content {
        margin-left: 50px;
    }

    .top-bar {
        padding: 0 12px;
        height: 60px;
    }

    .logo-text {
        font-size: 16px;
    }

    .content-area {
        padding: 12px;
    }

    .form-title {
        font-size: 24px;
    }

    .token-stats {
        grid-template-columns: 1fr;
    }

    .graduated-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 32px;
    }

    table {
        min-width: 700px;
        font-size: 11px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .sidebar {
        width: 50px;
    }

    .main-content {
        margin-left: 50px;
    }

    .top-bar {
        height: 60px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn, button {
        min-height: 44px;
        padding: 12px 20px;
    }

    .tab {
        min-height: 44px;
        padding: 12px 20px;
    }

    .nav-item {
        min-height: 60px;
        min-width: 60px;
    }

    /* Prevent accidental zooming */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* Improve scrolling */
    .trending-scroll,
    .table-wrapper {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* ==================== Accessibility Features ==================== */
/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #4FD1C5;
    color: #0a0b0f;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible styles for keyboard navigation */
*:focus-visible {
    outline: 2px solid #4FD1C5;
    outline-offset: 2px;
    border-radius: 4px;
}

.btn:focus-visible,
button:focus-visible {
    outline: 2px solid #4FD1C5;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(79, 209, 197, 0.2);
}

.sidebar-icon:focus-visible {
    outline: 2px solid #4FD1C5;
    outline-offset: 2px;
    background: rgba(79, 209, 197, 0.15);
}

.glass-input:focus-visible {
    outline: 2px solid #4FD1C5;
    outline-offset: 1px;
    box-shadow: 0 0 20px rgba(79, 209, 197, 0.4);
}

a:focus-visible {
    outline: 2px solid #4FD1C5;
    outline-offset: 2px;
}

.tab:focus-visible {
    outline: 2px solid #4FD1C5;
    outline-offset: -2px;
    box-shadow: 0 0 0 4px rgba(79, 209, 197, 0.2);
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .spinner {
        animation: none;
        border: 3px solid #4FD1C5;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-card {
        background: rgba(26, 29, 38, 1);
        border: 2px solid rgba(79, 209, 197, 0.8);
    }

    .btn {
        border-width: 2px;
    }

    .glass-input {
        border-width: 2px;
    }
}

/* Dark mode is default, but support forced colors */
@media (forced-colors: active) {
    .glass-card {
        border: 1px solid;
    }

    .btn {
        border: 1px solid;
    }
}

/* ==================== Pagination ==================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 120px;
    text-align: center;
}

.pagination .btn {
    min-width: 120px;
}

.pagination .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==================== Favorites/Watchlist ==================== */
.star-button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all 0.3s;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.star-button:hover {
    color: #fbbf24;
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

.star-button.starred {
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(79, 209, 197, 0.15);
    border: 1px solid rgba(79, 209, 197, 0.3);
    border-radius: 8px;
    font-size: 13px;
    color: #4FD1C5;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.filter-badge:hover {
    background: rgba(79, 209, 197, 0.25);
    border-color: rgba(79, 209, 197, 0.5);
}

.filter-badge.active {
    background: rgba(79, 209, 197, 0.3);
    box-shadow: 0 0 20px rgba(79, 209, 197, 0.3);
}
