/* ============================================
   CARD INTERFACE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --dark-bg: #000000;
    --light-bg: #F2F2F7;
    --card-bg: #1C1C1E;
    --text-primary: #FFFFFF;
    --text-secondary: #8E8E93;
    --border-color: #38383A;
    --accent-gradient: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

html {
    overflow: hidden;
    height: 100%;
}

.hidden {
    display: none !important;
}

/* ============================================
   MAIN MENU
   ============================================ */

.main-menu {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--dark-bg);
}

.menu-content {
    max-width: 600px;
    width: 100%;
}

.menu-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.menu-subtitle {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.4;
    color: var(--text-secondary);
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-button {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: var(--text-primary);
    width: 100%;
}

.menu-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.menu-button.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.menu-button.primary:hover {
    background: #0066DD;
}

.menu-button .icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.menu-button > div {
    flex: 1;
    text-align: left;
}

.menu-button h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-align: left;
}

.menu-button p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    text-align: left;
}

.menu-button.primary p {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   GUIDE SECTIONS
   ============================================ */

.guide-section {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    padding: 20px;
    background: var(--dark-bg);
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    background: var(--dark-bg);
    padding: 10px 0;
    z-index: 100;
}

.guide-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.guide-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.step-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.step-card.completed {
    border-color: #34C759;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

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

.step-header h3 {
    flex: 1;
    font-size: 1.2rem;
}

.check-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--text-secondary);
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.step-card.completed .check-circle {
    background: #34C759;
    border-color: #34C759;
}

.step-card.completed .check-circle::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-action-btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.step-body ul {
    list-style-position: inside;
    line-height: 1.8;
}

.step-body li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.step-body strong {
    color: var(--text-primary);
}

.step-body p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Progress Bars */
.progress-bars {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 4px;
    z-index: 1000;
}

.progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar.completed {
    background: var(--text-primary);
}

.progress-bar.active {
    background: var(--primary-color);
}

/* Cards Container */
.cards-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.cards-container.hidden {
    display: none;
}

/* Individual Cards */
.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    padding: 60px 30px 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.card.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.card-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.card h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -2px;
}

.card h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.big-text {
    font-size: 1.8rem;
    margin: 30px 0;
    font-weight: 600;
    line-height: 1.4;
}

.small-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

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

.highlight {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 30px 0;
}

.clean-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 400px;
    margin: 30px auto;
}

.clean-list li {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    border-radius: 12px;
    font-size: 1.1rem;
}

/* Layout Options */
.layout-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.layout-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.layout-option.active {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
}

.layout-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.layout-preview {
    margin-bottom: 15px;
}

.preview-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-screen {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
}

.preview-dock-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 10px;
}

.preview-dock,
.preview-home {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.preview-home {
    flex-direction: column;
    align-items: flex-start;
}

.preview-dock span,
.preview-home span {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.8rem;
}

.preview-dock span {
    background: var(--primary-color);
    font-size: 0.75rem;
}

.preview-home span {
    width: 100%;
    text-align: left;
}

/* Toggle Group */
.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.toggle-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.toggle-option.active {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
}

.toggle-option .icon {
    font-size: 2.5rem;
}

.toggle-option .note {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* App Selector */
.app-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.app-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.app-option.active {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
}

.app-option .app-icon {
    font-size: 2rem;
}

.app-option .app-name {
    font-size: 0.95rem;
    font-weight: 500;
}

.custom-input-wrapper {
    grid-column: 1 / -1;
}

.custom-app-input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
}

.custom-app-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.05);
}

/* Handedness Toggle */
.handedness-toggle {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    justify-content: center;
}

.hand-option {
    flex: 1;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.hand-option.active {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
}

.hand-option .icon {
    font-size: 2rem;
}

/* Color Controls */
.color-controls {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
}

.color-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.color-input label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.color-input input[type="color"] {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    background: transparent;
}

/* Generate Button */
.generate-button {
    margin-top: 30px;
    padding: 18px 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-button:hover {
    background: #0066DD;
    transform: translateY(-2px);
}

/* Wallpaper Generator */
.wallpaper-generator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark-bg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

.wallpaper-generator.hidden {
    display: none;
}

.generator-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 16px;
    height: 56px;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.generator-header h2,
.generator-header .header-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    grid-column: 2;
}

.header-spacer {
    grid-column: 3;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: -4px;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
    justify-self: start;
    grid-column: 1;
    width: 40px;
    height: 40px;
}

.back-button:hover {
    opacity: 0.7;
}

.back-icon {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
}

/* Mobile Tabs */
.mobile-tabs {
    display: none;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-tab {
    flex: 1;
    padding: 14px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.mobile-download {
    display: none;
}

.generator-content {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
    max-width: 100vw;
    box-sizing: border-box;
    position: relative;
}

.generator-sidebar {
    width: 380px;
    background: #0a0a0a;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
}

.generator-canvas {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
    background: #000000;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.canvas-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.control-group {
    margin-bottom: 16px;
}

.control-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Combined Selectors Row */
.selectors-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.selectors-row .size-btn,
.selectors-row .hand-btn {
    width: 100%;
}

/* Size Button */
.size-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.size-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.size-btn.active {
    background: rgba(0, 122, 255, 0.15);
    border-color: var(--primary-color);
}

.size-icon {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-block;
}

.size-text {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
}

.size-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
}

.toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn .icon-small {
    font-size: 1.2rem;
}

.toggle-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Hand Button */
.hand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}

.hand-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.hand-btn.active {
    background: rgba(0, 122, 255, 0.15);
    border-color: var(--primary-color);
}

.hand-icon {
    font-size: 1.4rem;
    line-height: 1;
}

/* Colors Row */
.colors-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.color-pairs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.color-pairs::-webkit-scrollbar {
    height: 6px;
}

.color-pairs::-webkit-scrollbar-track {
    background: transparent;
}

.color-pairs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.color-pairs::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.color-pair-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.color-pair-btn:first-child {
    padding-left: 4px;
}

.color-pair-btn:last-child {
    padding-right: 4px;
}

.color-pair-btn:hover {
    transform: scale(1.05);
}

.color-pair-btn.active .pair-circle {
    box-shadow: 0 0 0 3px var(--primary-color);
}

.pair-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pair-name {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
}

.colors-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.color-item {
    flex: 1 1 50%;
    max-width: 50%;
    box-sizing: border-box;
}

.color-item label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin: 0 0 8px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
}

.color-item input[type="color"] {
    display: block;
    width: 100%;
    height: 44px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    background: transparent;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.color-item input[type="color"]:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.color-item input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 4px;
    border-radius: 8px;
}

.color-item input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.color-item input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 6
    border-radius: 4px;
}

/* Watermark Toggle */
.watermark-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.watermark-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.watermark-toggle label {
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    margin: 0;
    text-transform: none;
    font-weight: 500;
}

/* Presets Grid */
.presets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.preset-btn[data-preset="none"] {
    grid-column: 1 / -1;
}

.preset-btn.edit-mode-btn {
    grid-column: 1 / -1;
}

.preset-btn {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.preset-btn.active {
    background: rgba(0, 122, 255, 0.15);
    border-color: var(--primary-color);
    color: white;
}

.preset-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.action-btn {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.action-btn span {
    font-size: 1rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

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

/* Apps List */
.apps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.apps-list input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    box-sizing: border-box;
}

.apps-list input[type="text"]:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.apps-list input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.apps-list input[type="text"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

#wallpaperCanvas {
    display: block;
    max-width: 280px;
    max-height: 600px;
    width: auto;
    height: auto;
    border-radius: 35px;
    border: 3px solid #555;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin: 0 auto 30px;
    padding: 0;
    vertical-align: middle;
}

.download-btn {
    padding: 16px 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.download-btn:hover {
    background: #0066DD;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 122, 255, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .generator-content {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
    }
    
    .generator-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 0.1);
        max-height: none;
        height: auto;
        overflow-y: visible;
        flex-shrink: 0;
    }
    
    .generator-canvas {
        padding: 20px;
        min-height: 50vh;
        flex-shrink: 0;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    body {
        overflow: hidden;
        height: 100vh;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .generator-header h2,
    .generator-header .header-title {
        font-size: 0.95rem;
    }
    
    .back-text {
        font-size: 0.9rem;
    }
    
    .back-button {
        margin-left: -4px !important;
    }
    
    .main-menu {
        height: auto;
        min-height: 100vh;
        padding: 30px 20px;
        overflow-y: auto;
    }
    
    .menu-title {
        font-size: 2.2rem;
    }
    
    .menu-subtitle {
        font-size: 1.2rem;
    }
    
    .menu-button {
        padding: 15px;
    }
    
    .menu-button .icon {
        font-size: 2rem;
        width: 50px;
    }
    
    .menu-button h3 {
        font-size: 1.1rem;
    }
    
    .card {
        height: 100%;
        overflow-y: auto;
    }
    
    .card h1 {
        font-size: 2.2rem;
    }
    
    .card h2 {
        font-size: 1.8rem;
    }
    
    .big-text {
        font-size: 1.4rem;
    }
    
    .app-selector {
        grid-template-columns: 1fr;
    }
    
    .layout-options {
        gap: 15px;
    }
    
    .layout-option {
        padding: 15px;
    }
    
    /* Generator layout mobile */
    .wallpaper-generator {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100vh;
    }
    
    .mobile-tabs {
        display: none;
    }
    
    .generator-content {
        display: flex;
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .generator-canvas {
        order: 1;
        height: calc(50vh - 56px);
        min-height: calc(50vh - 56px);
        max-height: calc(50vh - 56px);
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #000000;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        overflow: hidden;
        box-sizing: border-box;
        width: 100%;
    }
    
    .canvas-container {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .generator-canvas.hidden-mobile {
        display: flex;
    }
    
    .generator-sidebar {
        order: 2;
        height: 50vh;
        min-height: 50vh;
        max-height: 50vh;
        padding: 0 16px;
        padding-bottom: 120px;
        margin: 0;
        overflow-y: auto;
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
        background: #000000;
    }
    
    .generator-sidebar.hidden-mobile {
        display: block;
    }
    
    .download-btn {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        padding: 16px;
        font-size: 1rem;
        font-weight: 600;
        width: 100%;
        box-sizing: border-box;
        border-radius: 0;
        z-index: 100;
        border: none;
        border-top: 1px solid rgba(0, 122, 255, 0.3);
    }
    
    .control-group {
        margin-bottom: 20px;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
        background: transparent;
        border-radius: 0;
        border: none;
    }
    
    .control-group:first-child {
        padding-top: 16px;
    }
    
    .control-group label {
        font-size: 0.8rem;
        margin-bottom: 10px;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Size selector mobile */
    .size-selector {
        gap: 8px;
    }
    
    .size-btn {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .size-icon {
        font-size: 1.5rem;
        display: inline-block;
        line-height: 1;
    }
    
    .size-text {
        font-size: 0.85rem;
    }
    
    .size-desc {
        font-size: 0.7rem;
    }
    
    /* Hand selector mobile */
    .hand-btn {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .hand-icon {
        display: inline-block;
        line-height: 1;
    }
    
    /* Color pairs mobile layout */
    .color-pairs {
        gap: 10px;
        padding: 12px 4px;
        width: 100%;
        box-sizing: border-box;
        margin-left: -4px;
        margin-right: -4px;
    }
    
    .pair-circle {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    /* Color inputs mobile */
    .colors-row {
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .color-item label {
        text-align: center;
    }
    
    .color-item {
        flex: 1;
        min-width: 0;
        max-width: 50%;
    }
    
    .color-item input[type="color"] {
        height: 50px;
        width: 100%;
    }
    
    /* Preset buttons mobile layout */
    .presets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .preset-btn {
        padding: 10px 8px;
        font-size: 0.8rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Apps list mobile */
    .apps-list {
        width: 100%;
        box-sizing: border-box;
    }
    
    .apps-list input[type="text"] {
        padding: 10px 12px;
        font-size: 0.85rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .canvas-container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
        height: 100%;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative;
        left: 0;
        right: 0;
    }
    
    /* Canvas mobile adjustments */
    #wallpaperCanvas {
        max-height: calc(50vh - 120px);
        max-width: 180px;
        height: auto;
        width: auto;
        border-radius: 30px;
        border-width: 3px;
        object-fit: contain;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* Toggle switch mobile */
    .toggle-switch {
        gap: 6px;
        padding: 3px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .toggle-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .toggle-btn .icon-small {
        font-size: 1rem;
    }
    
    /* Watermark toggle mobile */
    .watermark-toggle {
        padding: 10px 12px;
    }
    
    /* Preset actions mobile */
    .preset-actions {
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .action-btn {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .main-menu {
        padding: 20px 15px;
    }
    
    .menu-title {
        font-size: 1.8rem;
    }
    
    .menu-subtitle {
        font-size: 1rem;
    }
    
    .menu-button {
        padding: 12px;
        gap: 15px;
    }
    
    .menu-button .icon {
        font-size: 1.8rem;
        width: 45px;
    }
    
    .menu-button h3 {
        font-size: 1rem;
    }
    
    .menu-button p {
        font-size: 0.85rem;
    }
    
    .card {
        padding: 15px;
    }
    
    .card h1 {
        font-size: 1.8rem;
    }
    
    .card h2 {
        font-size: 1.5rem;
    }
    
    .back-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .generator-sidebar {
        padding: 12px;
    }
    
    .control-group {
        margin-bottom: 20px;
    }
    
    .control-group label {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    /* Size selector extra small */
    .size-selector {
        gap: 6px;
    }
    
    .size-btn {
        padding: 10px;
    }
    
    .size-icon {
        font-size: 1.3rem;
    }
    
    .size-text {
        font-size: 0.8rem;
    }
    
    .size-desc {
        font-size: 0.65rem;
    }
    
    /* Hand selector extra small */
    .hand-selector {
        gap: 6px;
    }
    
    .hand-btn {
        padding: 10px;
        font-size: 0.8rem;
    }
    
    /* Color pairs extra small */
    .pair-circle {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    /* Color inputs extra small */
    .colors-row {
        gap: 6px;
    }
    
    .color-item input[type="color"] {
        height: 45px;
    }
    
    /* Preset buttons extra small */
    .presets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .preset-btn {
        padding: 10px;
        font-size: 0.8rem;
    }
    
    /* Action buttons extra small */
    .preset-actions {
        gap: 6px;
    }
    
    .action-btn {
        padding: 8px;
        font-size: 0.75rem;
    }
    
    /* Canvas extra small */
    #wallpaperCanvas {
        max-height: 50vh;
        border-radius: 25px;
        border-width: 2px;
    }
    
    .generator-canvas {
        padding: 10px;
    }
    
    .download-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    /* Toggle switch extra small */
    .toggle-switch {
        padding: 2px;
    }
    
    .toggle-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    /* Layout options extra small */
    .layout-option {
        padding: 12px;
    }
    
    .preview-screen {
        padding: 12px;
    }
    
    /* Watermark toggle extra small */
    .watermark-toggle {
        padding: 8px 10px;
    }
}

/* ============================================
   OLD STYLES (HIDDEN)
   ============================================ */

body:not(.card-interface) {
    overflow-y: auto;
    height: auto;
}

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

/* Hero Section */
.hero {
    background: var(--accent-gradient);
    padding: 100px 20px 80px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--text-primary);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Generator Section */
.generator-section {
    padding: 80px 20px;
    background-color: var(--dark-bg);
}

.generator-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.generator-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.control-group {
    margin-bottom: 25px;
}

/* Setup Section */
.setup-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0A0A0A 100%);
}

.setup-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.steps {
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.step:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.step.completed {
    background: #0A3A0A;
    border-color: #2E7D32;
    opacity: 0.7;
}

.step.completed .step-number {
    background: #2E7D32;
}

.step.completed .step-content h3,
.step.completed .step-content p,
.step.completed .step-content ul li {
    text-decoration: line-through;
    opacity: 0.6;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.step-content ul {
    list-style: none;
    padding-left: 0;
}

.step-content ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

.step-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.step-content ul li strong {
    color: var(--text-primary);
}

/* Best Practices Section */
.best-practices-section {
    padding: 80px 20px;
    background-color: var(--dark-bg);
}

.best-practices-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.practice-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, border-color 0.2s;
}

.practice-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.practice-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.practice-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Settings Section */
.settings-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0A0A0A 100%);
}

.settings-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
}

.settings-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.settings-category {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.settings-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.settings-category ul {
    list-style: none;
    padding-left: 0;
}

.settings-category ul li {
    padding: 10px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.settings-category ul li:last-child {
    border-bottom: none;
}

.settings-category ul li strong {
    color: var(--text-primary);
}

/* Bingo Section */
.bingo-section {
    padding: 80px 20px;
    background-color: var(--dark-bg);
}

.bingo-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.bingo-card {
    max-width: 900px;
    margin: 0 auto 40px;
    background: var(--card-bg);
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 50px rgba(0, 122, 255, 0.2);
}

.bingo-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.bingo-letter {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    padding: 10px;
}

.bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.bingo-cell {
    aspect-ratio: 1;
    background: #FFFFFF;
    border: 3px solid #333333;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.cell-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.cell-text {
    font-size: 0.7rem;
    line-height: 1.3;
    color: #333333;
    font-weight: 500;
}

.bingo-cell:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.bingo-cell.completed {
    background: #333333 !important;
    position: relative;
    border-color: #FF3B30 !important;
}

.bingo-cell.completed::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: #00FF00;
    font-weight: bold;
    z-index: 3;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    pointer-events: none;
}

.bingo-cell.completed .cell-number {
    color: #FFFFFF !important;
    opacity: 0.6;
}

.bingo-cell.completed .cell-text {
    color: #FFFFFF !important;
    opacity: 0.5;
    text-decoration: line-through;
}

.bingo-cell.free {
    background: var(--accent-gradient);
    border-color: var(--primary-color);
    cursor: default;
}

.bingo-cell.free .cell-number {
    font-size: 2rem;
    margin-bottom: 8px;
}

.bingo-cell.free .cell-text {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.bingo-cell.free:hover {
    transform: none;
}

.bingo-actions {
    text-align: center;
}

.reset-bingo-btn {
    padding: 12px 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-bingo-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.bingo-note {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    padding: 60px 20px 40px;
    text-align: center;
    background-color: var(--dark-bg);
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {

    .bingo-card {
        padding: 15px;
    }

    .bingo-letter {
        font-size: 1.8rem;
    }

    .bingo-grid {
        gap: 6px;
    }

    .cell-number {
        font-size: 0.6rem;
        margin-bottom: 4px;
    }

    .cell-text {
        font-size: 0.55rem;
    }

    .bingo-cell {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .bingo-card {
        padding: 10px;
    }
    
    .bingo-letter {
        font-size: 1.5rem;
    }
    
    .bingo-grid {
        gap: 4px;
    }
    
    .cell-number {
        font-size: 0.5rem;
    }
    
    .cell-text {
        font-size: 0.5rem;
    }
    
    .bingo-cell {
        padding: 6px;
    }
        font-size: 1.2rem;
    }

    .generator-card {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        gap: 20px;
    }

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

    .settings-categories {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--primary-color);
    color: white;
}
