/* U.RW URL Shortener - Glassmorphism Design */

/* Import the new awesome menu */
@import url('urw-menu.css');

:root {
    --primary-gold: #cc9933;
    --gold-light: #d4a853;
    --gold-dark: #b8861a;
    --bg-black: #000000;
    --bg-dark: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: rgba(204, 153, 51, 0.2);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --backdrop-blur: blur(8px);
}

/* Light Theme */
[data-theme="light"] {
    --bg-black: #ffffff;
    --bg-dark: #f5f5f5;
    --bg-card: rgba(0, 0, 0, 0.05);
    --bg-card-hover: rgba(0, 0, 0, 0.08);
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --border-color: rgba(204, 153, 51, 0.3);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-black);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(204, 153, 51, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(204, 153, 51, 0.08) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: -1;
}

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

/* Glass Card Component */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-glass);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

/* Ensure main content stays below menu */
main {
    position: relative;
    z-index: 1;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

/* Light mode header */
[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    height: 40px;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    vertical-align: middle;
}

/* Theme-based logo visibility */
[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

[data-theme="light"] .logo-light {
    display: block;
}

[data-theme="light"] .logo-dark {
    display: none;
}

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

.logo:hover .logo-img {
    filter: brightness(1.1) contrast(1.1);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo {
        height: 32px;
    }
    
    .logo-img {
        height: 32px;
    }
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle .hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
}

.mobile-menu-toggle .hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.mobile-menu-toggle .hamburger span:nth-child(1) {
    top: 0px;
}

.mobile-menu-toggle .hamburger span:nth-child(2) {
    top: 8px;
}

.mobile-menu-toggle .hamburger span:nth-child(3) {
    top: 16px;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-black);
    backdrop-filter: var(--backdrop-blur);
    z-index: 1000;
    padding-top: 80px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav.active {
    display: block;
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
}

.mobile-nav-links a,
.mobile-nav-links span {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--primary-gold);
}

.mobile-nav-footer {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.nav-links a:hover {
    color: var(--primary-gold);
    background: rgba(204, 153, 51, 0.1);
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* URL Shortener Form */
.url-shortener {
    max-width: 600px;
    margin: 0 auto;
}

.shortener-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.form-group {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(204, 153, 51, 0.3);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* URL Input Group */
.url-input-group {
    position: relative;
}

.form-input.with-paste-btn {
    padding-right: 60px;
}

/* Paste Button Inside Input */
.paste-btn-inside {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(204, 153, 51, 0.1);
    border: 1px solid rgba(204, 153, 51, 0.3);
    border-radius: 8px;
    color: var(--primary-gold);
    cursor: pointer;
    padding: 6px 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paste-btn-inside:hover {
    background: rgba(204, 153, 51, 0.2);
    border-color: var(--primary-gold);
    transform: translateY(-50%) scale(1.05);
}

.paste-btn-inside:active {
    transform: translateY(-50%) scale(0.98);
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-light));
    color: var(--bg-black);
    box-shadow: 0 4px 20px rgba(204, 153, 51, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(204, 153, 51, 0.5);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-gold);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.4);
}

/* Result Section */
.result-section {
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.result-section.show {
    opacity: 1;
    transform: translateY(0);
}

.result-card {
    background: rgba(204, 153, 51, 0.1);
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.short-url {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-gold);
    word-break: break-all;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.url-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-gold);
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* URL List */
.url-list {
    display: grid;
    gap: 1rem;
}

.url-item {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    transition: all 0.3s ease;
}

.url-item:hover {
    transform: translateX(5px);
}

.url-info h3 {
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.url-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.url-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    padding: 2rem;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

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

@keyframes modalSlideIn {
    from { transform: translateY(-20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

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

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

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-gold);
}

/* Form Styles */
.form-row {
    margin-bottom: 1.5rem;
}

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

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.form-checkbox input {
    width: auto;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pricing-card {
    position: relative;
    text-align: center;
    padding: 2.5rem 2rem;
}

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

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

.pricing-tier {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pricing-period {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 3000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, #2ed573, #1e90ff);
}

.toast.error {
    background: linear-gradient(135deg, #ff4757, #ff3742);
}

.toast.info {
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-light));
    color: var(--bg-black);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .nav-links {
        gap: 0.5rem;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
    }
    
    /* Show mobile menu toggle on tablets and below */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hide pricing link on mobile, show via hamburger menu */
    .nav-links a:not(.icon-btn):not(.mobile-nav-link) {
        display: none;
    }
    
    /* Hide nav-spacer on mobile to prevent spacing issues */
    .nav-spacer {
        display: none !important;
    }
    
    .nav-links span {
        display: none; /* Hide welcome text on mobile */
    }
    
    .nav-links a:not(.icon-btn) {
        display: none; /* Hide text links on mobile, keep icon buttons */
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .shortener-form {
        flex-direction: column;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .url-actions {
        flex-direction: column;
    }
    
    /* Make shorten button full width on mobile */
    #shorten-btn, 
    .btn-primary {
        width: 100% !important;
        max-width: none !important;
        padding: 1.2rem 1rem !important;
        font-size: 1.1rem !important;
        min-height: 50px !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
    }
    
    /* Ensure buttons are properly sized for touch */
    .btn {
        width: 100% !important;
        max-width: none !important;
        padding: 1.2rem 1rem !important;
        min-height: 50px !important;
        font-size: 1.1rem !important;
    }
    
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .url-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .url-actions-inline {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .modal {
        padding: 1rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 480px) {
    /* Header adjustments for very small screens */
    header {
        padding: 0.75rem 0;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .logo {
        height: 28px;
    }
    
    .logo-img {
        height: 28px;
    }
    
    /* Ensure nav buttons are visible and properly sized */
    .nav-links {
        gap: 0.25rem !important;
    }
    
    .icon-btn {
        width: 32px !important;
        height: 32px !important;
        padding: 4px !important;
    }
    
    .icon-btn .icon {
        width: 24px !important;
        height: 24px !important;
    }
    
    /* Ensure dropdown container doesn't overflow */
    .account-dropdown-container {
        position: static;
        display: inline-block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
    }
    
    .url-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 375px) {
    .container {
        padding: 0 8px;
    }
    
    .header-content {
        gap: 5px;
    }
    
    .logo {
        height: 26px;
    }
    
    .logo-img {
        height: 26px;
    }
    
    .icon-btn {
        width: 30px !important;
        height: 30px !important;
        padding: 3px !important;
    }
    
    .icon-btn .icon {
        width: 22px !important;
        height: 22px !important;
    }
    
    /* Ensure all buttons are mobile-optimized on small screens */
    .btn, .btn-primary, .btn-secondary {
        width: 100% !important;
        max-width: none !important;
        padding: 1.2rem 1rem !important;
        min-height: 50px !important;
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Very small devices (320px and below) */
@media (max-width: 320px) {
    .nav-links {
        gap: 0.2rem !important;
    }
    
    .icon-btn {
        width: 28px !important;
        height: 28px !important;
        padding: 2px !important;
    }
    
    .icon-btn .icon {
        width: 20px !important;
        height: 20px !important;
    }
    
    /* Ensure all buttons are mobile-optimized on very small screens */
    .btn, .btn-primary, .btn-secondary {
        width: 100% !important;
        max-width: none !important;
        padding: 1.2rem 1rem !important;
        min-height: 50px !important;
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .glass-card {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    header, .nav-links, .btn, .modal {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --bg-card: rgba(255, 255, 255, 0.15);
        --border-color: rgba(204, 153, 51, 0.5);
        --text-secondary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body::before {
        animation: none;
    }
}

/* Icon Buttons - Minimal style without containers */
.icon-btn {
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    background: none;
    border: none;
}

.icon-btn:hover {
    transform: scale(1.1);
    color: var(--primary-gold);
}

.icon-btn:hover .icon {
    stroke: var(--primary-gold);
    fill: none;
}

.icon-btn .icon,
.icon-btn svg.icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    stroke: var(--text-primary);
    fill: none;
    stroke-width: 1.5;
    pointer-events: none;
}

/* Theme Toggle Specific */
.theme-toggle {
    position: relative;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    width: 20px !important;
    height: 20px !important;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
}

[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
}

/* Feature Icons */
.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(204, 153, 51, 0.2), rgba(204, 153, 51, 0.1));
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-gold);
    stroke-width: 1.5;
}

.glass-card:hover .feature-icon {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Button Icons */
.btn .icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.paste-btn-inside .icon {
    width: 18px;
    height: 18px;
}

/* Ensure icons are visible on mobile */
@media (max-width: 768px) {
    .icon-btn {
        width: 36px;
        height: 36px;
    }
    
    .icon-btn .icon {
        width: 26px !important;
        height: 26px !important;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

/* Selection */
::selection {
    background: var(--primary-gold);
    color: var(--bg-black);
}

::-moz-selection {
    background: var(--primary-gold);
    color: var(--bg-black);
}

/* Account Dropdown Styles */
.nav-spacer {
    flex: 1;
}

.account-dropdown-container {
    position: relative;
    display: inline-block;
}

.account-dropdown-container.active {
    z-index: 9000;
}

/* Hide mobile quick actions by default */
.mobile-quick-actions {
    display: none;
}

/* Desktop menu items styling */
.desktop-menu-items a {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    background: transparent;
    transition: all 0.2s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.desktop-menu-items a:hover {
    background: rgba(204, 153, 51, 0.1);
    color: var(--primary-gold);
}

.desktop-menu-items a.active {
    background: rgba(204, 153, 51, 0.15);
    color: var(--primary-gold);
}

.desktop-menu-items a .icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Overlay when dropdown is active */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 8997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Ensure overlay works properly on mobile */
@media (max-width: 768px) {
    .dropdown-overlay {
        z-index: 99998;
    }
    
    .dropdown-overlay.active {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        background: rgba(0, 0, 0, 0.7);
    }
}

.account-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
}

.account-btn .dropdown-arrow {
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.3s ease;
}

.account-dropdown-container:hover .dropdown-arrow,
.account-dropdown-container.active .dropdown-arrow {
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 250px;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 8999;
    background: var(--bg-card);
}

.account-dropdown-container.active .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown.glass-card {
    padding: 0;
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.dropdown-header strong {
    display: block;
    color: var(--primary-gold);
    margin-bottom: 0.25rem;
    padding-right: 2rem;
}

.dropdown-header span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.dropdown-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.2s ease;
}

.dropdown-close:hover {
    color: var(--primary-gold);
    transform: rotate(90deg);
}

.dropdown-close .icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* Remove global account-dropdown a styles - handled by desktop-menu-items now */

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

/* Mobile responsiveness for dropdown */
@media (max-width: 768px) {
    .account-dropdown-container {
        position: relative !important;
    }
    
    .account-dropdown-container.active .account-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        display: flex !important;
    }
    
    .account-dropdown {
        position: fixed;
        top: 55px;
        right: 5px;
        left: 5px;
        bottom: 5px;
        width: calc(100% - 10px);
        max-width: 450px;
        margin: 0 auto;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        z-index: 8999;
        background: var(--bg-card) !important;
        backdrop-filter: var(--backdrop-blur) !important;
        -webkit-backdrop-filter: var(--backdrop-blur) !important;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-spacer {
        flex: 0.5;
    }
    
    /* Hide desktop menu items on mobile */
    .desktop-menu-items {
        display: none !important;
    }
    
    /* Show and style mobile menu with text */
    .mobile-quick-actions {
        display: flex !important;
        flex-direction: column;
        padding: 0.5rem;
        overflow-y: auto;
        flex: 1;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        position: relative !important;
        z-index: 9001 !important;
    }
    
    .mobile-quick-actions a {
        display: flex !important;
        align-items: center;
        gap: 1rem;
        padding: 1rem !important;
        margin-bottom: 0.5rem;
        color: var(--text-primary) !important;
        background: rgba(255, 255, 255, 0.03) !important;
        text-decoration: none !important;
        transition: all 0.2s ease;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 15px;
        font-weight: 500;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative;
        transform: translateY(0);
        pointer-events: none;
    }
    
    .mobile-quick-actions a:last-child {
        margin-bottom: 0;
        margin-top: auto;
        background: rgba(255, 71, 87, 0.1) !important;
        border-color: rgba(255, 71, 87, 0.2);
        color: #ff4757;
    }
    
    .mobile-quick-actions a:active {
        transform: scale(0.98);
        background: rgba(204, 153, 51, 0.15) !important;
    }
    
    .mobile-quick-actions a.active {
        background: rgba(204, 153, 51, 0.15) !important;
        border-color: rgba(204, 153, 51, 0.3);
        color: var(--primary-gold);
    }
    
    .mobile-quick-actions a .icon {
        width: 22px !important;
        height: 22px !important;
        stroke-width: 2;
        flex-shrink: 0;
    }
    
    .mobile-quick-actions a span {
        display: block !important;
        font-size: 15px;
    }
    
    /* Ensure dropdown header is styled nicely */
    .dropdown-header {
        flex-shrink: 0;
        padding: 1.25rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.02);
        position: relative;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 9002 !important;
    }
    
    .dropdown-header strong {
        font-size: 18px;
        color: var(--primary-gold) !important;
        display: block !important;
        margin-bottom: 0.25rem;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .dropdown-header span {
        font-size: 13px;
        color: var(--text-secondary);
        opacity: 0.8 !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .dropdown-header .dropdown-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    
    .dropdown-header .dropdown-close:active {
        transform: scale(0.9);
        background: rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-header .dropdown-close .icon {
        width: 18px;
        height: 18px;
    }
    
    /* Add separator before logout */
    .mobile-quick-actions a:last-child::before {
        content: '';
        position: absolute;
        top: -0.75rem;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    }
    
    /* Add hover effects for mobile */
    .mobile-quick-actions a:hover {
        background: rgba(204, 153, 51, 0.1) !important;
        border-color: rgba(204, 153, 51, 0.2);
    }
    
    /* Improve logout button hover */
    .mobile-quick-actions a:last-child:hover {
        background: rgba(255, 71, 87, 0.15) !important;
        border-color: rgba(255, 71, 87, 0.3);
    }
    
    /* Add subtle animation */
    @keyframes slideInMobile {
        from {
            opacity: 0.5;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .account-dropdown-container.active .mobile-quick-actions {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .account-dropdown-container.active .mobile-quick-actions a {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        animation: slideInMobile 0.2s ease forwards;
    }
    
    .mobile-quick-actions a:nth-child(1) { animation-delay: 0.02s; animation-fill-mode: forwards; }
    .mobile-quick-actions a:nth-child(2) { animation-delay: 0.04s; animation-fill-mode: forwards; }
    .mobile-quick-actions a:nth-child(3) { animation-delay: 0.06s; animation-fill-mode: forwards; }
    .mobile-quick-actions a:nth-child(4) { animation-delay: 0.08s; animation-fill-mode: forwards; }
    .mobile-quick-actions a:nth-child(5) { animation-delay: 0.1s; animation-fill-mode: forwards; }
    
    /* Fallback for browsers that don't support animations */
    @supports not (animation: slideInMobile 0.2s) {
        .mobile-quick-actions a {
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateY(0) !important;
        }
    }
}

/* Additional dropdown fixes for small screens */
@media (max-width: 480px) {
    .account-dropdown {
        top: 50px !important;
        border-radius: 12px !important;
    }
    
    .dropdown-header {
        padding: 1rem !important;
    }
    
    .dropdown-header strong {
        font-size: 16px;
    }
    
    .dropdown-header span {
        font-size: 12px;
    }
    
    .mobile-quick-actions {
        padding: 0.4rem !important;
    }
    
    .mobile-quick-actions a {
        padding: 0.9rem !important;
        font-size: 14px !important;
    }
    
    .mobile-quick-actions a .icon {
        width: 20px !important;
        height: 20px !important;
    }
}

@media (max-width: 375px) {
    .account-dropdown {
        right: 3px !important;
        left: 3px !important;
        width: calc(100% - 6px) !important;
    }
}

@media (max-width: 320px) {
    .account-dropdown {
        top: 48px !important;
        right: 2px !important;
        left: 2px !important;
        width: calc(100% - 4px) !important;
        border-radius: 10px !important;
    }
    
    .mobile-quick-actions a {
        padding: 0.8rem !important;
        font-size: 13px !important;
    }
}