:root {
    --primary: #006ba1;
    --primary-light: rgba(0, 107, 161, 0.1);
    --secondary: #f0b90b;
    --accent: #00c6ff;
    --dark-bg: #0a0a0a;
    --card-bg: #111111;
    --surface: #1a1a1a;
    --border: #222222;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --success: #00d68f;
    --warning: #ffaa00;
    --danger: #ff3d71;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* DEGX Branded Header Styles */
.dashboard-header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(40px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 80px;
    max-width: 1440px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 48px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.main-nav {
    display: flex;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    background: var(--surface);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-item.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    color: #ffffff;
    border: 1px solid transparent;
}

.user-info:hover {
    /* background: rgba(255, 255, 255, 0.08); */
    border-color: var(--border);
    transform: translateY(-1px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    transition: transform 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.profile-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px 0;
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    margin-top: 12px;
    backdrop-filter: blur(20px);
    animation: slideIn 0.3s ease-out;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateX(4px);
}

.dropdown-item i {
    width: 18px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.dropdown-item:hover i {
    color: var(--primary);
}

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

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav-content {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    background: #000000;
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 2001;
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.mobile-nav-header h2 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: var(--surface);
    transform: rotate(90deg);
}

.mobile-nav {
    padding: 24px 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-weight: 600;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
    transform: translateX(4px);
}

.mobile-nav-item i {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--primary);
    color: var(--text-primary);
    transform: scale(1.05);
}

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

/* Enhanced Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.header h1 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 20px;
    font-weight: 700;
   background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    color: #ffffff;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(240, 185, 11, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(240, 185, 11, 0.6)); }
}

.header h1 i {
    color: var(--primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Enhanced Progress Bar */
.progress-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 3rem;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border);
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: translateY(-50%);
    z-index: 2;
    border-radius: 2px;
    transition: var(--transition);
    width: 0%;
}

.progress-step {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--dark-light);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-secondary);
    position: relative;
    z-index: 3;
    transition: var(--transition);
    cursor: pointer;
}

.progress-step.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: var(--dark);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(240, 185, 11, 0.4);
}

.progress-step.completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.progress-step:hover:not(.active) {
    transform: scale(1.05);
    border-color: var(--primary-light);
}

.progress-step::after {
    content: attr(data-title);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition);
}

.progress-step.active::after {
    color: var(--primary);
    font-weight: 600;
}

/* Enhanced Form Container */
.ad-form {
    background: #000000;
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.ad-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* Enhanced Form Steps */
.form-step {
    display: none;
    animation: slideInRight 0.6s ease-out;
}

.form-step.active {
    display: block;
}

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

.form-step h2 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    color: #ffffff;
    margin-bottom: 2rem;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.form-step h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

/* Enhanced Form Groups */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label::before {
    content: '•';
    color: var(--primary);
    font-size: 1.2rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #000000;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.1);
    background: var(--dark-lighter);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--border-light);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(248, 73, 96, 0.1);
}

.form-group input:read-only {
    background: #000000;
    color: var(--text-secondary);
    cursor: not-allowed;
}

.form-group input:read-only:focus {
    border-color: var(--border);
    box-shadow: none;
    transform: none;
}

/* Enhanced Character Count */
.char-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count.warning {
    color: var(--warning);
}

.char-count.error {
    color: var(--danger);
}

/* Enhanced Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

button {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

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

button:hover::before {
    left: 100%;
}

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

.btn-prev {
    background: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-prev:hover:not(:disabled) {
    background: var(--border-light);
    transform: translateX(-5px);
    border-color: var(--text-secondary);
}

.btn-next,
.btn-submit {
    background: var(--gradient-primary);
    color: var(--dark);
    border: 2px solid transparent;
}

.btn-next:hover:not(:disabled),
.btn-submit:hover:not(:disabled) {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(240, 185, 11, 0.4);
}

.btn-submit {
    background: var(--gradient-primary);
    animation: pulse 2s infinite;
}

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

/* Enhanced Summary & Preview */
.summary-container, .preview-container {
    background: #000000;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-out;
}

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

.summary-item,
.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition-fast);
}

.summary-item:hover,
.preview-item:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0 -1rem;
    border-radius: 8px;
}

.summary-item:last-child,
.preview-item:last-child {
    border-bottom: none;
}

.summary-label,
.preview-label {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-value,
.preview-value {
    color: var(--text-secondary);
    font-weight: 500;
    text-align: right;
}

/* Enhanced Preview Section */
.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    animation: slideInDown 0.6s ease-out;
}

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

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

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 3px solid var(--primary);
    animation: rotate 10s linear infinite;
}

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

.user-details .username {
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--text-primary);
}

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

.online {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.verified {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
   background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    color: #ffffff;
    text-align: right;
}

.preview-item-group {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.preview-item-group h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preview-item-group h3::before {
    content: '';
    width: 3px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

/* Type Toggle Switch */
.type-toggle {
    display: flex;
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 2rem;
    border: 2px solid var(--border);
}

.toggle-option {
    flex: 1;
    padding: 1rem 1.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.toggle-option.active {
    background: var(--gradient-primary);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
}

.toggle-option:not(.active):hover {
    background: var(--border-light);
}

/* Floating Labels */
.floating-label {
    position: relative;
    margin-bottom: 2rem;
}

.floating-label input,
.floating-label select,
.floating-label textarea {
    padding-top: 1.5rem;
    padding-bottom: 0.75rem;
}

.floating-label label {
    position: absolute;
    top: 0.75rem;
    left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    pointer-events: none;
    transition: var(--transition-fast);
    margin: 0;
}

.floating-label input:focus + label,
.floating-label select:focus + label,
.floating-label textarea:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label select:not([value=""]) + label,
.floating-label textarea:not(:placeholder-shown) + label {
    top: 0.5rem;
    left: 1rem;
    font-size: 0.75rem;
    color: var(--primary);
}

/* Success Animation */
.success-animation {
    text-align: center;
    padding: 3rem 2rem;
    animation: zoomIn 0.6s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 2rem;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    z-index: 100;
    box-shadow: var(--shadow);
}

.bottom-nav button {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    width: 100%;
}

.bottom-nav button i {
    font-size: 18px;
    margin-bottom: 4px;
}

.bottom-nav .active-tab {
    color: var(--primary);
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
    
    .container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
   .header h1 {
    
    flex-direction: column;
    gap: 0.5rem;
}
    
    .ad-form {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .progress-step {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .progress-step::after {
        font-size: 0.7rem;
    }
    
    .preview-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .price {
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    button {
        width: 100%;
        justify-content: center;
    }
    
    .type-toggle {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .ad-form {
        padding: 1rem;
    }
    
    .form-step h2 {
        font-size: 1.4rem;
    }
    
    .progress-step {
        width: 35px;
        height: 35px;
    }
    
    button {
        padding: 0.875rem 1.5rem;
    }
}

/* Loading Animation */
.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: loadingDot 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingDot {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.hidden {
    display: none !important;
}

/* Enhanced Focus States */
.form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible {
    /* outline: 2px solid var(--primary); */
    outline-offset: 2px;
}

/* Custom Select Arrow */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23848e9c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 3rem;
}

/* Number Input Spinner */
.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: modalFadeIn 0.4s ease-out;
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

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

/* Modal Header */
.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.modal-header .close {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
}

.modal-header .close:hover {
    color: var(--text-primary);
    background: var(--border);
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
}

/* Modal Footer */
.modal-footer {
    padding: 25px 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 12px;
}

.modal-footer button {
    min-width: 120px;
    justify-content: center;
}

/* Success Modal Specific Styles */
.success-check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 20px;
    animation: bounceIn 0.6s ease-out;
}

/* Error Modal Specific Styles */
.error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 20px;
    animation: shake 0.6s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Warning Modal Specific Styles */
.warning-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

/* Loading Modal Specific Styles */
.loading-dots {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 20px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    animation: loadingBounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal Variations */
.modal-content.success {
    border-top: 4px solid var(--success);
}

.modal-content.error {
    border-top: 4px solid var(--danger);
}

.modal-content.warning {
    border-top: 4px solid var(--warning);
}

.modal-content.loading {
    border-top: 4px solid var(--primary);
}

/* Modal Backdrop Effects */
.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(240, 185, 11, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Modal Exit Animations */
.modal.fade-out {
    animation: modalFadeOut 0.3s ease-in forwards;
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

.modal-content.slide-out {
    animation: modalSlideOut 0.3s ease-in forwards;
}

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

/* Enhanced Focus States for Accessibility */
.modal:focus {
    outline: none;
}

.modal-content:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
    .modal {
        padding: 16px;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 0;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .modal-footer {
        padding: 20px;
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
    
    .success-check,
    .error-icon,
    .warning-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 16px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px 16px;
    }
    
    .modal-body p {
        font-size: 15px;
    }
    
    .modal-footer {
        padding: 16px;
    }
    
    .loading-dots span {
        width: 10px;
        height: 10px;
    }
}

/* Modal Stacking Context */
.modal {
    z-index: 10000;
}

.modal-content {
    z-index: 10001;
}

/* Prevent Body Scroll when Modal is Open */
body.modal-open {
    overflow: hidden;
}

/* Smooth Scrolling for Modal Content */
.modal-content {
    scroll-behavior: smooth;
}

/* Enhanced Button Styles in Modals */
.modal-footer .btn-primary {
    background: var(--gradient-primary);
    color: var(--dark);
    border: 2px solid transparent;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 185, 11, 0.4);
}

.modal-footer .btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.modal-footer .btn-secondary:hover {
    background: var(--border-light);
    border-color: var(--text-secondary);
}

/* Loading Text Animation */
.loading-text {
    background: linear-gradient(90deg, var(--text-primary), var(--primary), var(--text-primary));
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: loadingText 2s infinite;
}

@keyframes loadingText {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Modal Entrance Variations */
.modal-content.slide-from-top {
    animation: slideFromTop 0.5s ease-out;
}

@keyframes slideFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content.slide-from-bottom {
    animation: slideFromBottom 0.5s ease-out;
}

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

.modal-content.zoom-in {
    animation: zoomIn 0.4s ease-out;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #222222;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.mobile-menu-btn:hover {
    background: #006ba1;
    color: #ffffff;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-main {
        padding: 0 20px;
        height: 70px;
    }

    .main-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .user-name {
        display: none;
    }

    .profile-dropdown-menu {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 90%;
        max-width: 300px;
    }
}



/* Default dropdown look */
#type {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    /* border: 1px solid #ccc; */
    font-size: 16px;
    background-color: #000000;
    color: #fff;
    /* transition: background-color 0.3s ease, color 0.3s ease; */
}

/* Optional hover effect */
#type:hover {
    /* border-color: var(--primary); */
}

/* When "Buy" is selected */
#type.buy-selected {
  background: linear-gradient(135deg, #00c853, #00e676); /* green gradient */
  color: #fff;
}

/* When "Sell" is selected */
#type.sell-selected {
  background: linear-gradient(135deg, #d32f2f, #ff5252); /* red gradient */
  color: #fff;
}


/* Default style */
#asset {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  background-color: #000000;
  color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect */
#asset:hover {
  border-color: var(--primary);
}

/* When USDT is selected */
#asset.usdt-selected {
   /* green gradient */
  color: #fff;
}

/* When DEGX is selected */
#asset.degx-selected {
  /* background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); */
  color: #fff;
}

