/* Modern Dark Theme - Memoryiit Style */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&display=swap');

:root {
    --bg-color: #0b0b0b;
    --card-bg: #151515;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-gradient: linear-gradient(90deg, #8A2BE2 0%, #E100FF 100%);
    --button-gradient: linear-gradient(90deg, #8A2BE2 0%, #E100FF 100%);
    --font-main: 'Outfit', system-ui, sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo span {
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: inline-block;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 20px;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0b0b0b 70%);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background: var(--button-gradient);
    color: #ffffff;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(225, 0, 255, 0.4);
}

/* Steps Section */
.steps-container {
    padding: 80px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #222;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: #333;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #E100FF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 20px;
    font-size: 1.2rem;
}

.step-card h3 {
    margin: 15px 0;
    font-size: 1.5rem;
}

.step-card p {
    color: var(--text-secondary);
}

/* Footer */
footer {
    border-top: 1px solid #222;
    padding: 40px;
    text-align: center;
    color: #555;
    background: #0b0b0b;
}

/* Inputs & Forms (Global Dark) */
input,
textarea,
select {
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
}

input:focus,
textarea:focus {
    border-color: #E100FF;
    outline: none;
}

/* Input with Icon */
.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon-wrapper i,
.input-icon-wrapper svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff0000;
    /* YouTube Red */
    font-size: 1.2rem;
}

.input-with-icon {
    padding-left: 45px !important;
}

/* Wizard Box */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Wizard Layout */
.wizard-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding-top: 40px;
}

.wizard-form {
    flex: 1;
    min-width: 300px;
}

.wizard-preview {
    flex: 1;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 100px;
}

/* Wizard Box */
.container {
    max-width: 1200px;
    margin: 50px auto;
    background: #0f0f0f;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    overflow: hidden;
    min-height: 700px;
    border: 1px solid #333;
}

/* Plan Cards (Right Side Replacement) */
.plans-container {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.plan-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 25px;
    width: 320px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: #555;
}

.plan-card.selected {
    border: 2px solid #E100FF;
    background: radial-gradient(circle at top right, rgba(225, 0, 255, 0.1), transparent 60%), #111;
    box-shadow: 0 0 20px rgba(225, 0, 255, 0.2);
}

.plan-tag {
    position: absolute;
    top: -12px;
    left: 20px;
    background: rgba(225, 0, 255, 0.1);
    color: #E100FF;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid #E100FF;
    display: flex;
    align-items: center;
    gap: 5px;
}

.plan-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #E100FF;
}

.plan-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
}

.plan-price-block {
    margin-bottom: 20px;
}

.plan-old-price {
    font-size: 0.9rem;
    color: #ff3b30;
    text-decoration: line-through;
}

.plan-price {
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.plan-period {
    font-size: 0.8rem;
    color: #888;
    float: right;
    text-align: right;
    line-height: 1.2;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 12px;
}

.plan-features li i {
    color: #555;
    /* default check */
    background: #222;
    border-radius: 50%;
    padding: 3px;
    font-size: 0.7rem;
}

.plan-card.selected .plan-features li i {
    background: #E100FF;
    color: #fff;
}

.plan-features li.disabled {
    opacity: 0.5;
    text-decoration: line-through;
}

.plan-features li.disabled i {
    background: #333;
    color: #555;
}

/* Video Card Info */
.video-card {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    /* Ensure padding doesn't break width */
}

.video-thumbnail {
    width: 120px;
    /* Increased for better aspect ratio */
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.video-info {
    flex: 1;
    min-width: 0;
    /* Enable truncation for flex children */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-title {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    /* Ensure it takes available space */
}

.video-meta {
    font-size: 0.85rem;
    color: #aaa;
}

.remove-video-btn {
    background: transparent;
    border: 1px solid #333;
    color: #ff3b30;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 10px;
    flex-shrink: 0;
}

.remove-video-btn:hover {
    background: #ff3b30;
    color: white;
    border-color: #ff3b30;
}

/* Music Controls */
.music-controls {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333;
    width: 100%;
}

.control-label {
    font-size: 0.95rem;
    color: white;
    margin-bottom: 12px;
    display: block;
    font-weight: bold;
}

.time-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.custom-range {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    background: #333;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #E100FF;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(225, 0, 255, 0.5);
    transition: transform 0.1s;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* Toggle Switch */
.toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    background: #151515;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #222;
}

.device-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 0 50px rgba(225, 0, 255, 0.2);
    position: relative;
    border: 4px solid #333;
}

.device-screen {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    color: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Preview Content elements */
.p-header {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.p-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.p-header small {
    color: #666;
    font-size: 0.8rem;
}

.p-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #444;
    white-space: pre-wrap;
}

.p-footer {
    padding: 10px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.7rem;
    color: #999;
}

/* Stepper */
.stepper {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.step-dot.active {
    background: var(--accent-gradient);
    color: #000;
}

/* Preview Themes */
.device-screen.p-theme-light {
    background: #fafafa;
    color: #333;
}

.device-screen.p-theme-dark {
    background: #1a1a1a;
    color: #f0f0f0;
}

.device-screen.p-theme-dark .p-header {
    background: #222;
    border-color: #333;
}

.device-screen.p-theme-dark .p-header h3 {
    color: #fff;
}

.device-screen.p-theme-dark .p-header small {
    color: #aaa;
}

.device-screen.p-theme-sunset {
    background: linear-gradient(to bottom, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    color: #fff;
}

.device-screen.p-theme-sunset .p-header {
    background: rgba(255, 255, 255, 0.2);
}

/* Carousel Preview */
.p-gallery-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 12px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
    height: 300px;
    background: #000;
    width: 100%;
}

.p-gallery-carousel::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.p-gallery-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.p-gallery-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Emoji Picker Styles */
.emoji-picker-container {
    background: #151515;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.emoji-search {
    width: 100%;
    background: #222;
    border: 1px solid #333;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: var(--font-main);
}

.emoji-scroll-area {
    height: 200px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding-right: 5px;
}

/* Custom Scrollbar for Emoji Area */
.emoji-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.emoji-scroll-area::-webkit-scrollbar-track {
    background: #222;
    border-radius: 3px;
}

.emoji-scroll-area::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.emoji-option {
    font-size: 1.5rem;
    background: transparent;
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.emoji-option:hover {
    background: #333;
}

.emoji-option.selected {
    background: #E100FF;
    color: white;
    box-shadow: 0 0 10px rgba(225, 0, 255, 0.3);
}

/* Selected Emoji Status */
.selected-emoji-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.current-emoji {
    width: 50px;
    height: 50px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.remove-emoji-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 59, 48, 0.1);
    /* Red tint */
    border: 1px solid #ff3b30;
    color: #ff3b30;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-emoji-btn:hover {
    background: #ff3b30;
    color: white;
}

/* Rain Animation */
.rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    top: -50px;
    font-size: 1.5rem;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(600px);
        opacity: 0;
    }
}

@media (max-width: 800px) {
    .wizard-layout {
        flex-direction: column-reverse;
        align-items: center;
    }

    .wizard-preview {
        position: static;
        width: 100%;
    }
}