/**
 * ========================================
 * PLAKALIK TASARIM CSS - PROFESYONEL
 * Otodark.com Tarzı - Temiz & Düzenli
 * ========================================
 */
 
/* ==========================================
   1. GLOBAL RESET & BASE
   ========================================== */
* {
    box-sizing: border-box;
}
 
#plakalik-fullpage {  
    max-width: 100%;  
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ========================================== 
   2. LAYOUT COMPONENTS
   ========================================== */

/* Editor Layout */
.editor-layout {
    display: flex; 
    align-items: stretch; 
    gap: 15px;
}

.center-area {
    flex: 1;
    z-index: 1;
}

/* Side Control Panel */
.side-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    position: relative;
    z-index: 2000 !important;
    overflow: visible !important;
}

.side-control.left-side {
    background: #f3f4f7;
    border: 1px solid #e2e6ee;
    border-radius: 12px;
}

.side-btn {
    width: 42px;
    height: 42px;
    background: #e74c3c;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.22);
}

.side-arrow {
    color: #fff;
    font-size: 16px;
}

.side-label {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 8px;
    background: #ffffff;
    border: 1px solid #dfe3ea;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #30384a;
    text-align: center;
    line-height: 1.25;
    letter-spacing: 0.2px;
}

/* ==========================================
   3. PRICE TIERS
   ========================================== */
.price-section {
    margin-bottom: 30px;
}

.price-tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.tier-box {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.tier-box:hover {
    border-color: #e74c3c;
    transform: translateY(-3px);
}

.tier-box.active {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fff5f5, #fff);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.2);
}

.tier-title {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.tier-info {
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
}

.tier-price {
    font-size: 28px;
    font-weight: 700;
    color: #27ae60;
}

/* ==========================================
   4. PLATE EDITOR
   ========================================== */
.plate-editor {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.plate-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.plate-wrapper {
    position: relative;
    max-width: 1360px;
    margin: 0 auto;
    padding: 10px 100px;
}

/* ==========================================
   5. PLATE PREVIEW & CONTENT
   ========================================== */
.plate-preview {
    width: 100%;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.plate-frame img {
    width: 100%;
    display: block;
}

/* Plate Content Container */
.plate-content {
    background: #000;
    padding: 0px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0px;
    min-height: 60px;
    height: 60px;
    overflow: hidden;
}

/* Çıta Color Classes */
.plate-content.cita-black { background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%) !important; }
.plate-content.cita-white { background: linear-gradient(135deg, #ffffff 0%, #eaeaea 100%) !important; }
.plate-content.cita-yellow { background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important; }
.plate-content.cita-red { background: linear-gradient(135deg, #8B0000 0%, #FF0000 100%) !important; }
.plate-content.cita-blue { background: linear-gradient(135deg, #00008B 0%, #0000FF 100%) !important; }
.plate-content.cita-green { background: linear-gradient(135deg, #006400 0%, #00FF00 100%) !important; }
.plate-content.cita-purple { background: linear-gradient(135deg, #4B0082 0%, #9370DB 100%) !important; }
.plate-content.cita-orange { background: linear-gradient(135deg, #FF4500 0%, #FFA500 100%) !important; }
.plate-content.cita-carbon { background: repeating-linear-gradient(45deg, #1a1a1a 0px, #1a1a1a 10px, #2d2d2d 10px, #2d2d2d 20px) !important; }

/* ==========================================
   6. ICONS
   ========================================== */
.icon-slot {
    width: 0;
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
}

.icon-slot.has-icon {
    width: auto;
    min-width: 26px;
    height: 100%;
    max-width: 200px;
    max-height: 100%;
    align-self: stretch;
}

.icon-slot img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;    
}

.icon-pointer {
    font-size: 40px;
    opacity: 0.8;
}

/* Icon Remove Button */
.icon-remove-btn {
    display: none;
    position: absolute;
    top: -6px;
    right: -6px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 999px;
    background: #ff2d2d;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    z-index: 50;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.icon-slot.show-remove .icon-remove-btn {
    display: flex;
}

/* ==========================================
   7. LINES (ÇIZGILER)
   ========================================== */
.line-slot {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

.line-slot svg,
.line-slot img {
    display: block;
    object-fit: contain;
}

.left-line {
    justify-content: flex-end;
}

.right-line {
    justify-content: flex-start;
}

/* Line Remove Button */
.line-remove-btn {
    display: none;
    position: absolute;
    top: -6px;
    right: -6px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 999px;
    background: #ff2d2d;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    z-index: 50;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.line-slot.show-remove .line-remove-btn {
    display: flex;
}

/* ==========================================
   8. TEXT AREA
   ========================================== */
.plate-text-wrapper {
    width: 100%;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    position: relative;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.plate-text-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    color: transparent;
    caret-color: #fff;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    z-index: 2;
}

.plate-text-display {
    font-size: 38px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
    white-space: nowrap;
    pointer-events: none;
    display: block;
    max-width: 100%;
}

/* Text Glow Effects */
.glow-yellow { color: #FFD700; text-shadow: none; }
.glow-white { color: #FFFFFF; text-shadow: 0 0 10px #FFFFFF, 0 0 20px #FFFFFF, 0 0 30px #FFFFFF, 0 0 40px #FFFFFF; }
.glow-red { color: #FF0000; text-shadow: 0 0 10px #FF0000, 0 0 20px #FF0000, 0 0 30px #FF0000, 0 0 40px #FF0000; }
.glow-green { color: #00FF00; text-shadow: 0 0 10px #00FF00, 0 0 20px #00FF00, 0 0 30px #00FF00, 0 0 40px #00FF00; }
.glow-blue { color: #00BFFF; text-shadow: 0 0 10px #00BFFF, 0 0 20px #00BFFF, 0 0 30px #00BFFF, 0 0 40px #00BFFF; }

/* ==========================================
   9. BOTTOM CONTROLS TOOLBAR
   ========================================== */
.bottom-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    z-index: 2000 !important;
    overflow: visible !important;
}

.control-group-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #FF9800;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    padding: 10px;
    min-width: 130px;
}

.group-title {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 0px;
    font-size: 14px; 
    font-weight: 700;
    color: #111; 
    padding: 6px 10px;
    margin-bottom: 10px;
    letter-spacing: .4px;
    text-transform: uppercase;
        width: 90%;
    text-align: center;
}
.control-group-box.yazi-group {
    background: #FF5722;
}
.control-group-box.sekil-group {
    background: #009688;
}
.group-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

/* Control Buttons */
.ctrl-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 14px;
    cursor: pointer;
    min-width: unset;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ctrl-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.10);
}

.ctrl-btn.active {
    box-shadow: 0 0 0 3px rgba(17,17,17,0.14);
}

.btn-icon {
    font-size: 18px;
    margin-bottom: 6px;
    opacity: .95;
}

.btn-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .2px;
    line-height: 1.15;
    text-align: center;
    color: inherit;
}

/* Button Colors */
.btn-orange { background: linear-gradient(145deg, #ff6b35, #e55a2b); color: #fff; }
.btn-yellow { background: linear-gradient(145deg, #ffd93d, #f5c800); color: #333; }
.btn-gray { background: linear-gradient(145deg, #6c757d, #5a6268); color: #fff; }
.btn-gray.active { background: linear-gradient(145deg, #28a745, #1e7e34); box-shadow: 0 0 0 3px rgba(39,174,96,0.22); }

/* Upload Row */
.upload-row {
    margin-top: 8px;
    width: 100%;
    display: flex;
    gap: 8px;
}

.upload-label {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 10px;
    background: #ffffff;
    border: 1px dashed #d8dbe3;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    transition: background 0.2s;
}

.upload-label:hover {
    background: #f3f6ff;
    border-color: #b9c6ff;
}

/* ==========================================
   10. DROPDOWNS
   ========================================== */
.dropdown-wrapper {
    position: relative;
    z-index: 1000 !important;
}

.cita-dropdown,
.color-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    min-width: 180px;
    z-index: 9999 !important;
    margin-top: 5px;
    display: none;
}

.color-dropdown {
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
}

.dropdown-title {
    padding: 12px 15px;
    background: #f8f9fa;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.cita-option,
.color-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    border-bottom: 1px solid #f5f5f5;
}

.cita-option:hover,
.color-option:hover {
    background: #f0f0f0;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Yazı Rengi Dropdown (Özel) */
.yazi-group .color-dropdown {
    min-width: 220px;
    border: 1px solid #ececec;
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
    padding: 10px;
}

.yazi-group .color-dropdown .dropdown-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #444;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.yazi-group .color-dropdown .color-option {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    transition: 0.15s ease;
}

.yazi-group .color-dropdown .color-option:hover {
    background: #f6f7fb;
    transform: translateX(2px);
}

.yazi-group .color-dropdown .color-dot {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.yazi-group .color-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 22px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-left: 1px solid #ececec;
    border-top: 1px solid #ececec;
    transform: rotate(45deg);
}

/* ==========================================
   11. FONT SIZE CONTROLS
   ========================================== */
.font-size-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.control-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.size-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-btn:hover {
    transform: scale(1.1);
}

.size-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    min-width: 40px;
    text-align: center;
}

.size-slider {
    width: 120px;
    height: 6px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 3px;
    outline: none;
}

.size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #27ae60;
    border-radius: 50%;
    cursor: pointer;
}

/* ==========================================
   12. CHECKOUT SECTION
   ========================================== */
.checkout-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
}

.checkout-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.price-summary {
    color: #fff;
    font-size: 18px;
}

.summary-price {
    font-size: 36px;
    font-weight: 700;
    color: #FFD700;
    margin-left: 15px;
}

.checkout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    background: linear-gradient(145deg, #27ae60, #1e8449);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(39, 174, 96, 0.4);
    transition: transform 0.2s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
}

/* ==========================================
   13. MODALS
   ========================================== */
.plakalik-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-box {
    background: #fff;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-box.modal-lg {
    max-width: 900px;
}

.modal-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 20px;
    max-height: calc(85vh - 70px);
    overflow-y: auto;
}

/* Font Grid */
.font-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.font-option {
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.font-option:hover {
    border-color: #e74c3c;
    background: #fff5f5;
}

/* Icon Categories */
.icon-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 14px;
    padding: 12px 6px 16px;
    background: #f7f7f9;
    border-bottom: 1px solid #e6e8ec;
}

.cat-btn {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
    min-height: 128px;
    padding: 6px 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.cat-btn:hover {
    transform: translateY(-2px);
}

.cat-btn.active {
    transform: translateY(-2px);
}

.cat-ring {
    position: absolute;
    top: 3px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 3px solid #cfd4dc;
}

.cat-btn.active .cat-ring {
    border-color: #ff4545;
}

.cat-inner {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #e8ebf0);
    border: 1px solid #d9dce2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 7px;
}

.cat-thumb {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.cat-emoji {
    font-size: 34px;
}

.cat-name {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: .2px;
    color: #2b2f3a;
    text-align: center;
    word-break: break-word;
}

/* Icon Grid */
.icon-grid-container {
    padding: 14px 6px 8px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 14px;
}

.icon-item {
    border: 2px solid #e7eaf0;
    border-radius: 18px;
    cursor: pointer;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 8px;
    min-height: 132px;
    padding: 10px 8px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.icon-item:hover {
    border-color: #26b563;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.icon-visual {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #edf0f5);
    border: 1px solid #d8dde6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.icon-item img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.icon-name {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    color: #242b35;
    text-align: center;
    word-break: break-word;
}

@media (max-width: 768px) {
    .icon-categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        padding: 10px 4px 12px;
    }

    .cat-btn {
        min-height: 112px;
    }

    .cat-ring {
        width: 72px;
        height: 72px;
        border-width: 2px;
    }

    .cat-inner {
        width: 66px;
        height: 66px;
        margin-top: 6px;
    }

    .cat-thumb {
        width: 56px;
        height: 56px;
    }

    .cat-name {
        font-size: 14px;
    }

    .icon-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .icon-item {
        min-height: 118px;
        border-radius: 14px;
        padding: 8px 6px;
    }

    .icon-visual {
        width: 62px;
        height: 62px;
    }

    .icon-item img {
        width: 52px;
        height: 52px;
    }

    .icon-name {
        font-size: 12px;
    }
}

/* Line Grid */
.line-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.line-item {
    aspect-ratio: 3/1;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #000;
    transition: all 0.2s;
}

.line-item:hover {
    border-color: #27ae60;
    transform: scale(1.05);
}

.line-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==========================================
   14. LOADING OVERLAY
   ========================================== */
#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #333;
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loading-overlay p {
    color: #fff;
    margin-top: 20px;
    font-size: 16px;
}

/* ==========================================
   15. RESPONSIVE DESIGN
   ========================================== */

/* Tablet (992px and below) */
@media (max-width: 992px) {
    .price-tiers {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plate-wrapper {
        padding: 10px 80px;
    }
    
    .bottom-controls {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding: 12px;
    }
    
    .control-group-box {
        flex: 0 0 auto;
        min-width: 220px;
    }
    
    .control-group-box.yazi-group {
        min-width: 340px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    #plakalik-fullpage {
        padding: 10px;
    }
    
    .editor-layout {
        flex-direction: column;
    }
    
    .side-control.left-side {
        flex-direction: row;
        justify-content: flex-start;
        padding: 10px 15px;
    }
    
    .side-label {
        margin-top: 0;
        margin-left: 10px;
    }
    
    .side-label br {
        display: none;
    }
    
    .plate-editor {
        padding: 15px;
    }
    
    .plate-wrapper {
        position: static;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .plate-preview {
        border-radius: 14px;
    }
    
    .plate-content {
        min-height: 27px !important;
        height: 27px !important;
        padding: 6px 14px !important;
        gap: 10px !important;
        overflow: hidden;
    }
    
    .icon-slot.has-icon {
        width: auto !important;
        min-width: 18px !important;
        height: 100% !important;
        max-width: 32px !important;
    }
    
    .icon-pointer {
        font-size: 22px;
    }
    
    .plate-text-display,
    .plate-text-input {
        font-size: 13px !important;
        letter-spacing: 1px !important;
    }
    
    .plate-text-display {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .font-size-controls {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }
    
    .checkout-section {
        padding: 15px;
    }
    
    .checkout-content {
        flex-direction: column;
        text-align: center;
    }
    
    .checkout-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-box.modal-lg {
        max-width: 100%;
    }
    
    .icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
    
    .font-grid {
        grid-template-columns: 1fr;
    }
    
    .yazi-group .color-dropdown {
        min-width: 200px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .plate-content {
        min-height: 52px !important;
        height: 52px !important;
        padding: 6px 12px !important;
        overflow: hidden;
    }
    
    .plate-text-display,
    .plate-text-input {
        font-size: 18px !important;
        letter-spacing: 0.8px !important;
    }
    
    .icon-slot.has-icon {
        width: auto !important;
        min-width: 20px !important;
        height: 100% !important;
        max-width: 34px !important;
    }
    
    .icon-pointer {
        font-size: 18px;
    }
    
    .icon-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Extra Small (576px and below) */
@media (max-width: 576px) {
    .bottom-controls {
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .control-group-box {
        flex-shrink: 0;
    }
    
    .ctrl-btn {
        min-width: 40px;
    }
    
    .btn-label {
        font-size: 6px;
        white-space: nowrap;
    }
    
    .btn-label br {
        display: none;
    }
}/* ==========================================
   16. COMPACT TOOLBAR TUNING (READABILITY)
   ========================================== */
.bottom-controls {
    gap: 8px;
    margin-top: 14px;
    padding: 10px;
    border-radius: 14px;
}

.control-group-box {
    border-radius: 12px;
    padding: 8px;
    min-width: 118px;
}

.group-title {
    font-size: 13px;
    padding: 5px 9px;
    margin-bottom: 8px;
}

.group-buttons {
    gap: 6px;
}

.ctrl-btn {
    padding: 8px 7px;
    border-radius: 12px;
}

.btn-icon {
    font-size: 16px;
    margin-bottom: 4px;
}

.btn-label {
    font-size: 10px;
    line-height: 1.22;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.btn-yellow .btn-label {
    color: #2b2b2b;
    text-shadow: none;
}

.upload-row {
    margin-top: 6px;
}

.upload-label {
    font-size: 11px;
    padding: 7px 9px;
}

.font-size-controls {
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
}

.control-label {
    font-size: 22px;
    font-weight: 700;
    color: #2f3a4b;
}

.size-value {
    font-size: 28px;
    color: #1f2a3b;
    min-width: 34px;
}

.control-group {
    margin-top: 8px !important;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
}

.control-group > label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #596377 !important;
    margin-bottom: 6px !important;
}

.control-group .line-width-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
}

.control-group .line-width-slider {
    height: 8px !important;
}

.control-group .line-width-value {
    min-width: 54px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #d39b00 !important;
}

@media (max-width: 992px) {
    .control-group-box {
        min-width: 190px;
    }

    .control-group-box.yazi-group {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .bottom-controls {
        gap: 6px;
        padding: 8px;
    }

    .control-group-box {
        padding: 7px;
        min-width: 170px;
    }

    .btn-label {
        font-size: 9px;
    }

    .control-group .line-width-value {
        font-size: 12px !important;
    }
}

/* ==========================================
   17. MOBILE USABILITY OVERRIDES
   ========================================== */
@media (max-width: 768px) {
    .bottom-controls {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px !important;
        overflow: visible !important;
        justify-content: initial !important;
        padding: 10px !important;
    }

    .control-group-box {
        min-width: 0 !important;
        width: 100%;
        padding: 10px 8px !important;
        height: 100%;
    }

    .control-group-box.yazi-group {
        grid-column: 1 / -1;
        min-width: 0 !important;
    }

    .group-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .yazi-group .group-buttons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .upload-row {
        grid-column: 1 / -1;
        margin-top: 2px;
    }

    .ctrl-btn {
        width: 100%;
        min-height: 66px;
        padding: 8px 6px !important;
    }

    .sekil-group .group-buttons {
        grid-template-columns: 1fr;
        align-content: start;
    }

    .sekil-group .icon-btn {
        width: 100%;
        min-height: 86px;
    }

    .sekil-group,
    .control-group-box:not(.yazi-group) {
        min-height: 238px;
    }

    .btn-label {
        font-size: 10px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        letter-spacing: 0 !important;
    }

    .btn-label br {
        display: block !important;
    }

    .font-size-controls {
        gap: 8px;
        padding: 10px !important;
    }

    .control-label {
        font-size: 16px !important;
        font-weight: 700;
    }

    .size-value {
        font-size: 24px !important;
        min-width: 30px;
    }
}

@media (max-width: 480px) {
    .bottom-controls {
        grid-template-columns: 1fr;
    }

    .control-group-box.yazi-group {
        grid-column: auto;
    }

    .yazi-group .group-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sekil-group .group-buttons {
        grid-template-columns: 1fr;
    }

    .ctrl-btn {
        min-height: 60px;
    }

    .btn-label {
        font-size: 9px !important;
    }
}

/* ==========================================
   18. MOBILE POLISH (SHAPE + FONT ACTIONS)
   ========================================== */
@media (max-width: 768px) {
    .bottom-controls {
        background: #f5f6f8;
        border: 1px solid #e4e8ef;
        border-radius: 16px;
    }

    .control-group-box {
        border-radius: 14px;
        box-shadow: 0 3px 10px rgba(14, 24, 42, 0.08);
    }
 
    .group-title {
        font-size: 16px;
        font-weight: 800;
        letter-spacing: 0.25px;
        padding: 7px 10px;
    }

    .ctrl-btn {
        border-radius: 12px;
        min-height: 70px;
        border-color: rgba(255, 255, 255, 0.38);
    }

    .btn-icon {
        font-size: 17px;
        margin-bottom: 5px;
    }

    .btn-label {
        font-size: 11px !important;
        line-height: 1.18 !important;
        font-weight: 700;
    }

    .yazi-group .btn-label {
        font-size: 10px !important;
    }

    .icon-btn,
    .font-btn {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    }

    .font-btn {
        border-color: rgba(255, 255, 255, 0.45);
    }

    .upload-label {
        font-size: 12px;
        font-weight: 700;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .group-title {
        font-size: 15px;
    }  
 
    .ctrl-btn { 
        min-height: 64px;
    }
   
    .yazi-group .group-buttons {
        grid-template-columns: 1fr 1fr;
    }
 
    .yazi-group .btn-label {
        font-size: 9.5px !important;
    }
}

@media (max-width: 768px) {
    .control-group-box .group-title {
        cursor: pointer;
        position: relative;
        padding-right: 34px;
    }

    .control-group-box .group-title::after {
        content: "v";
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        line-height: 1;
        color: #243047;
        transition: transform 0.2s ease;
    }

    .control-group-box.is-collapsed .group-buttons {
        display: none !important;
    }

    .control-group-box.is-collapsed .group-title {
        margin-bottom: 0;
    }

    .control-group-box.is-collapsed .group-title::after {
        transform: translateY(-50%) rotate(-90deg);
    }
}

/* ==========================================
   20. MOBILE ACCORDION LAYOUT FIX
   ========================================== */
@media (max-width: 768px) {
    .bottom-controls {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .control-group-box,
    .control-group-box:not(.yazi-group),
    .sekil-group {
        height: auto !important;
        min-height: unset !important;
        max-height: none !important;
    }

    .control-group-box .group-buttons {
        margin-top: 8px;
    }

    .control-group-box.is-collapsed {
        padding-bottom: 10px !important;
    } 
 
    .control-group-box.is-collapsed .group-buttons {
        display: none !important;
        margin-top: 0;
    }
}   
  
/* ==========================================
   21. MOBILE PREVIEW BAR SIZE
   ========================================== */
@media (max-width: 768px) {
    .plate-content {
        min-height: 32px !important;
        height: 32px !important;
        padding: 4px 8px !important;
        gap: 6px !important;
    }
 
    .icon-slot.has-icon { 
        width: auto !important;
        min-width: 18px !important;
        height: 100% !important;
        max-width: 32px !important;
    }

    .icon-pointer {
        font-size: 16px !important;
    }

    .plate-text-display,
    .plate-text-input {
        font-size: 13px !important;
        letter-spacing: 0.4px !important;
        line-height: 1 !important;
    }
}

/* ==========================================
   22. MOBILE HORIZONTAL SPACE FIX
   ========================================== */
@media (max-width: 768px) {
    #plakalik-fullpage {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .plate-editor {
        padding: 10px 8px !important;
        border-radius: 12px;
    }

    .plate-title {
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }

    .editor-layout {
        gap: 8px !important;
    }

    .side-control {
        padding: 8px 6px !important;
    }

    .side-control.left-side {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .center-area {
        width: 100%;
    }

    .plate-preview {
        width: 100% !important;
        position: sticky;
        top: 64px;
        z-index: 1200;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    }
}

/* ==========================================
   19. DESKTOP SPACING + READABILITY
   ========================================== */
@media (min-width: 769px) {
    .editor-layout {
        align-items: flex-start;
    }

    .side-control {
        justify-content: flex-start;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .side-control.left-side {
        margin-top: clamp(190px, 14vw, 260px);
    }

    .bottom-controls {
        justify-content: space-between;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }

    .control-group-box {
        flex: 1 1 0;
        min-width: 0;
        padding: 9px 8px;
    }

    .control-group-box.yazi-group {
        flex: 1.35 1 0;
    }

    .group-title {
        font-size: 15px;
        padding: 6px 12px; 
        margin-bottom: 8px;
    }
 
    .ctrl-btn {
        padding: 9px 8px;
        border-radius: 12px;
    }

    .btn-label {
        font-size: 11px;
        line-height: 1.28;
        letter-spacing: 0.1px;
    }

    .control-group {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .control-group > label {
        margin: 0 !important;
        min-width: 160px;
        white-space: nowrap;
    }

    .control-group > div {
        flex: 1;
    }
}
