        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

        body {
            font-family: 'Inter', sans-serif;
        }

        /* Mobile menu — akıcı açılma/kapanma animasyonu */
        #mobileMenu {
            display: block !important;
            overflow: hidden;
            max-height: 0;
            opacity: 0;
            transform: translateY(-6px);
            transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
            pointer-events: none;
        }
        #mobileMenu.menu-open {
            max-height: 500px;
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }
        /* Hamburger butonu → X animasyonu */
        .hamburger-icon {
            transition: transform 0.3s ease;
        }
        .hamburger-icon.is-open {
            transform: rotate(90deg);
        }

        .jewelry-btn {
            transition: all 0.3s ease;
        }

        .jewelry-btn:hover {
            border-color: rgba(251, 191, 36, 0.5);
            background: rgba(251, 191, 36, 0.05);
        }

        .jewelry-btn.selected {
            border-color: #fbbf24;
            background: rgba(251, 191, 36, 0.1);
        }

        .jewelry-btn.selected svg {
            color: #fbbf24;
        }

        .jewelry-btn.selected span {
            color: #fbbf24;
        }

        .prompt-card {
            transition: all 0.3s ease;
        }

        .prompt-card:hover {
            transform: translateY(-2px);
        }

        .loading-spinner {
            border: 3px solid rgba(251, 191, 36, 0.1);
            border-top: 3px solid #fbbf24;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .api-input {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(251, 191, 36, 0.3);
            color: white;
        }

        /* ==================== DASHBOARD v5 CSS ==================== */
        .dash-container {
            max-width: 1100px;
            margin: auto;
            padding: 40px 20px;
        }

        .dash-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .dash-header h1 {
            font-size: 2.4rem;
            font-weight: 300;
            background: linear-gradient(180deg, #fef3c7, #f59e0b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 8px;
        }

        .dash-header p {
            color: #64748b;
            font-size: 1rem;
        }

        .tabs {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-bottom: 32px;
        }

        .tab-btn {
            padding: 12px 28px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #94a3b8;
            cursor: pointer;
            border-radius: 12px;
            font-family: 'Inter', sans-serif;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s;
        }

        .tab-btn:hover {
            border-color: rgba(251, 191, 36, 0.4);
        }

        .tab-btn.active {
            border-color: #f59e0b;
            background: rgba(245, 158, 11, 0.1);
            color: #fbbf24;
        }

        .dash-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }

        @media(max-width:768px) {
            .dash-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .dash-card {
            position: relative;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.3s;
        }

        .dash-card:hover {
            border-color: rgba(251, 191, 36, 0.3);
        }

        .dash-card img {
            width: 100%;
            aspect-ratio: 1;
            object-fit: cover;
            display: block;
        }

        .dash-card .overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 40%, transparent 60%, rgba(0, 0, 0, 0.6) 100%);
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }

        .dash-card:hover .overlay {
            opacity: 1;
        }

        .dash-delete-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 32px;
            height: 32px;
            background: rgba(239, 68, 68, 0.85);
            border: none;
            color: white;
            cursor: pointer;
            border-radius: 50%;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.3s;
            z-index: 2;
        }

        .dash-card:hover .dash-delete-btn {
            opacity: 1;
        }

        .dash-delete-btn:hover {
            background: #ef4444;
            transform: scale(1.1);
        }

        .dash-order-btn {
            position: absolute;
            bottom: 12px;
            right: 12px;
            background: rgba(245, 158, 11, 0.9);
            border: none;
            color: #000;
            padding: 8px 16px;
            cursor: pointer;
            border-radius: 8px;
            font-family: 'Inter', sans-serif;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            opacity: 0;
            transition: all 0.3s;
            z-index: 2;
        }

        .dash-card:hover .dash-order-btn {
            opacity: 1;
        }

        .dash-order-btn:hover {
            background: #f59e0b;
            transform: scale(1.05);
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #475569;
        }

        .empty-state p {
            font-size: 1.1rem;
            margin-bottom: 16px;
        }

        .empty-state button {
            padding: 12px 24px;
            background: rgba(245, 158, 11, 0.15);
            border: 1px solid rgba(245, 158, 11, 0.4);
            color: #fbbf24;
            border-radius: 12px;
            cursor: pointer;
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            transition: all 0.3s;
        }

        .empty-state button:hover {
            background: rgba(245, 158, 11, 0.25);
        }

        .order-card {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 12px;
            display: flex;
            gap: 16px;
            align-items: flex-start;
            cursor: pointer;
            transition: all 0.3s;
        }

        .order-card:hover {
            border-color: rgba(251, 191, 36, 0.3);
            background: rgba(255, 255, 255, 0.03);
        }

        .order-card.selected-order {
            border-color: #f59e0b;
            background: rgba(245, 158, 11, 0.05);
        }

        .order-card img {
            width: 80px;
            height: 80px;
            border-radius: 12px;
            object-fit: cover;
            flex-shrink: 0;
        }

        .order-info {
            flex: 1;
        }

        .order-info .order-id {
            color: #fbbf24;
            font-weight: 600;
            font-size: 0.85rem;
        }

        .order-info .order-design {
            color: #64748b;
            font-size: 0.75rem;
            margin-top: 2px;
        }

        .status-badge {
            display: inline-block;
            margin-top: 8px;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .status-discussion {
            background: rgba(59, 130, 246, 0.15);
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.3);
        }

        .status-price_set {
            background: rgba(245, 158, 11, 0.15);
            color: #fbbf24;
            border: 1px solid rgba(245, 158, 11, 0.3);
        }

        .status-paid_full {
            background: rgba(34, 197, 94, 0.15);
            color: #4ade80;
            border: 1px solid rgba(34, 197, 94, 0.3);
        }

        .status-in_design {
            background: rgba(168, 85, 247, 0.15);
            color: #c084fc;
            border: 1px solid rgba(168, 85, 247, 0.3);
        }

        .status-in_production {
            background: rgba(236, 72, 153, 0.15);
            color: #f472b6;
            border: 1px solid rgba(236, 72, 153, 0.3);
        }

        .status-shipped {
            background: rgba(14, 165, 233, 0.15);
            color: #38bdf8;
            border: 1px solid rgba(14, 165, 233, 0.3);
        }

        .status-delivered {
            background: rgba(34, 197, 94, 0.2);
            color: #4ade80;
            border: 1px solid rgba(34, 197, 94, 0.4);
        }

        .status-cancelled {
            background: rgba(239, 68, 68, 0.15);
            color: #f87171;
            border: 1px solid rgba(239, 68, 68, 0.3);
        }

        .status-prepaid {
            background: rgba(59, 130, 246, 0.15);
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.3);
        }

        .orders-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            min-height: 500px;
        }

        @media(max-width:768px) {
            .orders-layout {
                grid-template-columns: 1fr;
            }
        }

        .orders-list-col {
            max-height: 600px;
            overflow-y: auto;
            padding-right: 8px;
        }

        .orders-list-col::-webkit-scrollbar {
            width: 4px;
        }

        .orders-list-col::-webkit-scrollbar-track {
            background: transparent;
        }

        .orders-list-col::-webkit-scrollbar-thumb {
            background: #333;
            border-radius: 4px;
        }

        .chat-panel {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            min-height: 500px;
        }

        .chat-header {
            padding: 16px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .chat-header h3 {
            font-size: 0.9rem;
            color: #fbbf24;
            font-weight: 600;
        }

        .chat-header .chat-status {
            font-size: 0.7rem;
            color: #64748b;
        }

        .price-bar {
            padding: 12px 20px;
            background: rgba(245, 158, 11, 0.05);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 0.8rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .price-bar .price-label {
            color: #94a3b8;
        }

        .price-bar .price-value {
            color: #fbbf24;
            font-weight: 600;
        }

        .pay-remaining-btn {
            padding: 6px 14px;
            background: #f59e0b;
            color: #000;
            border: none;
            border-radius: 8px;
            font-family: 'Inter', sans-serif;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
        }

        .pay-remaining-btn:hover {
            background: #fbbf24;
        }

        .chat-messages {
            flex: 1;
            padding: 16px 20px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .chat-messages::-webkit-scrollbar {
            width: 4px;
        }

        .chat-messages::-webkit-scrollbar-thumb {
            background: #333;
            border-radius: 4px;
        }

        .msg {
            max-width: 80%;
            padding: 10px 14px;
            border-radius: 12px;
            font-size: 0.85rem;
            line-height: 1.5;
        }

        .msg.user {
            align-self: flex-end;
            background: rgba(245, 158, 11, 0.15);
            color: #fef3c7;
            border-bottom-right-radius: 4px;
        }

        .msg.admin {
            align-self: flex-start;
            background: rgba(255, 255, 255, 0.06);
            color: #cbd5e1;
            border-bottom-left-radius: 4px;
        }

        .msg .msg-time {
            font-size: 0.65rem;
            color: #64748b;
            margin-top: 4px;
        }

        .msg img {
            max-width: 200px;
            border-radius: 8px;
            margin-top: 6px;
            display: block;
        }

        .chat-input {
            padding: 12px 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .chat-input input[type="text"] {
            flex: 1;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 10px 14px;
            border-radius: 10px;
            font-family: 'Inter', sans-serif;
            font-size: 0.85rem;
            outline: none;
            transition: border-color 0.3s;
        }

        .chat-input input[type="text"]:focus {
            border-color: rgba(251, 191, 36, 0.5);
        }

        .chat-input input[type="text"]::placeholder {
            color: #475569;
        }

        .chat-input .photo-btn {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #94a3b8;
            border-radius: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.3s;
            flex-shrink: 0;
        }

        .chat-input .photo-btn:hover {
            border-color: rgba(251, 191, 36, 0.4);
            color: #fbbf24;
        }

        .chat-input .send-btn {
            width: 40px;
            height: 40px;
            background: #f59e0b;
            border: none;
            color: #000;
            border-radius: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 700;
            transition: all 0.3s;
            flex-shrink: 0;
        }

        .chat-input .send-btn:hover {
            background: #fbbf24;
        }

        .no-chat-selected {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #475569;
            font-size: 0.9rem;
        }

        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            z-index: 100;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal-overlay.open {
            display: flex;
        }

        .modal {
            background: #111;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            width: 100%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            padding: 32px;
        }

        .modal::-webkit-scrollbar {
            width: 4px;
        }

        .modal::-webkit-scrollbar-thumb {
            background: #333;
            border-radius: 4px;
        }

        .modal h2 {
            text-align: center;
            font-size: 1.4rem;
            font-weight: 300;
            background: linear-gradient(180deg, #fef3c7, #f59e0b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 8px;
        }

        .modal .modal-sub {
            text-align: center;
            color: #64748b;
            font-size: 0.85rem;
            margin-bottom: 28px;
        }

        .modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: none;
            border: none;
            color: #64748b;
            font-size: 24px;
            cursor: pointer;
        }

        .form-group {
            margin-bottom: 24px;
        }

        .form-group label {
            display: block;
            color: #94a3b8;
            font-size: 0.8rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 10px;
        }

        .material-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
        }

        .mat-option {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .mat-circle {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s;
        }

        .mat-option:hover .mat-circle {
            transform: scale(1.1);
        }

        .mat-option.selected .mat-circle {
            border-color: #f59e0b;
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
        }

        .mat-option span {
            font-size: 0.65rem;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            text-align: center;
        }

        .mat-option.selected span {
            color: #fbbf24;
        }

        .stone-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        @media(max-width:480px) {
            .stone-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .stone-option {
            padding: 10px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.8rem;
            color: #94a3b8;
        }

        .stone-option:hover {
            border-color: rgba(251, 191, 36, 0.3);
        }

        .stone-option.selected {
            border-color: #f59e0b;
            background: rgba(245, 158, 11, 0.1);
            color: #fbbf24;
        }

        .size-input {
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 12px 16px;
            border-radius: 12px;
            font-family: 'Inter', sans-serif;
            font-size: 0.9rem;
            outline: none;
            transition: border-color 0.3s;
        }

        .size-input:focus {
            border-color: rgba(251, 191, 36, 0.5);
        }
        .size-input option {
            background: #1e293b;
            color: #e2e8f0;
        }

        .size-input::placeholder {
            color: #475569;
        }

        .notes-input {
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 12px 16px;
            border-radius: 12px;
            font-family: 'Inter', sans-serif;
            font-size: 0.85rem;
            outline: none;
            resize: vertical;
            min-height: 80px;
            transition: border-color 0.3s;
        }

        .notes-input:focus {
            border-color: rgba(251, 191, 36, 0.5);
        }

        .notes-input::placeholder {
            color: #475569;
        }

        .prepay-box {
            background: rgba(245, 158, 11, 0.05);
            border: 1px solid rgba(245, 158, 11, 0.2);
            border-radius: 14px;
            padding: 20px;
            text-align: center;
        }

        .prepay-box .prepay-amount {
            font-size: 2rem;
            font-weight: 700;
            color: #fbbf24;
            margin: 8px 0;
        }

        .prepay-box .prepay-note {
            font-size: 0.75rem;
            color: #64748b;
            line-height: 1.5;
        }

        .card-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 10px;
        }

        .submit-order-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(90deg, #b45309, #f59e0b, #b45309);
            color: #000;
            border: none;
            border-radius: 14px;
            font-family: 'Inter', sans-serif;
            font-size: 0.9rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 8px;
        }

        .submit-order-btn:hover {
            filter: brightness(1.1);
        }

        .cancel-order-link {
            display: block;
            text-align: center;
            margin-top: 12px;
            color: #64748b;
            font-size: 0.8rem;
            cursor: pointer;
            transition: color 0.3s;
        }

        .cancel-order-link:hover {
            color: #f87171;
        }

        .remaining-modal .modal {
            max-width: 440px;
        }

        /* Admin Slide-out Panel */
        .admin-toggle {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, #dc2626, #991b1b);
            border: none;
            color: white;
            border-radius: 50%;
            font-size: 22px;
            cursor: pointer;
            z-index: 200;
            box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
            transition: all 0.3s;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .admin-toggle:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 30px rgba(220, 38, 38, 0.6);
        }

        .admin-toggle.visible {
            display: flex;
        }

        .admin-panel-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
            z-index: 210;
            display: none;
        }

        .admin-panel-overlay.open {
            display: block;
        }

        .admin-slide {
            position: fixed;
            top: 0;
            right: -480px;
            width: 460px;
            height: 100vh;
            background: #111;
            border-left: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 220;
            overflow-y: auto;
            transition: right 0.35s ease;
            padding: 24px;
        }

        .admin-slide.open {
            right: 0;
        }

        @media(max-width:500px) {
            .admin-slide {
                width: 100%;
                right: -100%;
            }
        }

        .admin-slide::-webkit-scrollbar {
            width: 4px;
        }

        .admin-slide::-webkit-scrollbar-thumb {
            background: #333;
            border-radius: 4px;
        }

        .admin-slide h2 {
            font-size: 1.2rem;
            color: #f87171;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .admin-slide .admin-sub {
            color: #64748b;
            font-size: 0.8rem;
            margin-bottom: 20px;
        }

        .admin-panel-close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: none;
            border: none;
            color: #64748b;
            font-size: 24px;
            cursor: pointer;
        }

        .admin-panel-close:hover {
            color: white;
        }

        .admin-order-item {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 14px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .admin-order-item:hover {
            border-color: rgba(248, 113, 113, 0.4);
        }

        .admin-order-item.admin-selected {
            border-color: #f87171;
            background: rgba(248, 113, 113, 0.05);
        }

        .admin-order-item .ao-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
        }

        .admin-order-item .ao-id {
            color: #f87171;
            font-weight: 600;
            font-size: 0.85rem;
        }

        .admin-order-item .ao-detail {
            color: #64748b;
            font-size: 0.75rem;
            line-height: 1.6;
        }

        .admin-detail-section {
            margin-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding-top: 20px;
        }

        .admin-detail-section h3 {
            color: #f87171;
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 14px;
        }

        .admin-info-row {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            font-size: 0.8rem;
        }

        .admin-info-row .air-label {
            color: #64748b;
        }

        .admin-info-row .air-value {
            color: #e2e8f0;
            font-weight: 500;
        }

        .admin-action-group {
            margin-top: 16px;
        }

        .admin-action-group label {
            display: block;
            color: #94a3b8;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 6px;
        }

        .admin-select {
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 10px 12px;
            border-radius: 10px;
            font-family: 'Inter', sans-serif;
            font-size: 0.85rem;
            outline: none;
            cursor: pointer;
        }

        .admin-select option {
            background: #1a1a2e;
        }

        .admin-price-row {
            display: flex;
            gap: 8px;
            margin-top: 10px;
        }

        .admin-price-input {
            flex: 1;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 10px 12px;
            border-radius: 10px;
            font-family: 'Inter', sans-serif;
            font-size: 0.85rem;
            outline: none;
        }

        .admin-price-input::placeholder {
            color: #475569;
        }

        .admin-btn {
            padding: 10px 18px;
            border: none;
            border-radius: 10px;
            font-family: 'Inter', sans-serif;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .admin-btn-red {
            background: #dc2626;
            color: white;
        }

        .admin-btn-red:hover {
            background: #ef4444;
        }

        .admin-btn-amber {
            background: #f59e0b;
            color: #000;
        }

        .admin-btn-amber:hover {
            background: #fbbf24;
        }

        .admin-chat-box {
            margin-top: 16px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            max-height: 250px;
            overflow-y: auto;
            padding: 12px;
        }

        .admin-chat-box::-webkit-scrollbar {
            width: 3px;
        }

        .admin-chat-box::-webkit-scrollbar-thumb {
            background: #333;
            border-radius: 3px;
        }

        .admin-chat-input {
            display: flex;
            gap: 8px;
            margin-top: 10px;
        }

        .admin-chat-input input {
            flex: 1;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 10px 12px;
            border-radius: 10px;
            font-family: 'Inter', sans-serif;
            font-size: 0.8rem;
            outline: none;
        }

        .admin-chat-input input::placeholder {
            color: #475569;
        }

/* ==================== MERGED ADDITIONS ==================== */

/* Admin Panel */
#adminSection {
    display: none;  /* Tailwind hidden class'a güvenme — explicit CSS ile gizle */
    padding-top: 4.5rem;
    min-height: 100vh;
    background: #05050a;
}

.admin-container {
    max-width: none;
    padding: 0.75rem 1rem;
}

.admin-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 100;  /* nav-bar(z-40) ve loginModal(z-60) uzerinde */
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.admin-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.75rem;
    align-items: start;
    min-height: calc(100vh - 5rem);
}

@media (max-width: 900px) {
    .admin-layout { grid-template-columns: 1fr; }
}

/* Liste üstü kontroller (arama + arşiv + yenile + hafta filtresi) */
.admin-list-controls {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.admin-controls-row {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Toplam tutar satırı (liste altı) */
.admin-orders-total {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
}
.admin-orders-total strong {
    color: #f59e0b;
    font-size: 0.9rem;
}

/* Liste fotoğrafları büyütülmüş */
#adminOrdersList td img,
.admin-panel-card table td img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
}

/* Chat orta panel — flex column, tam yükseklik */
#adminChatPanel {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 6rem);
    overflow: hidden;
}

.chat-messages-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 0.6rem;
    scroll-behavior: smooth;
}

.chat-messages-wrapper::-webkit-scrollbar {
    width: 4px;
}
.chat-messages-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.admin-chat-input-wrap {
    padding: 0.6rem 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-panel-card {
    background: #111827;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 1rem;
    overflow: hidden;
}

.admin-panel-card table {
    width: 100%;
    border-collapse: collapse;
}

.admin-panel-card th {
    background: rgba(255,255,255,0.05);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-weight: 600;
}

.admin-detail-grid {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-info-card {
    flex: 1;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.8;
}

.admin-info-card strong {
    color: #e2e8f0;
}

.admin-control-group {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.admin-control-group label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-select,
.admin-input {
    flex: 1;
    min-width: 120px;
    padding: 0.5rem 0.75rem;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-size: 0.8rem;
}

.admin-select:focus,
.admin-input:focus {
    outline: none;
    border-color: rgba(245,158,11,0.5);
}

.admin-btn {
    padding: 0.5rem 1rem;
    background: rgba(245,158,11,0.2);
    border: 1px solid rgba(245,158,11,0.4);
    color: #f59e0b;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: background 0.2s;
}

.admin-btn:hover {
    background: rgba(245,158,11,0.35);
}

/* Chat bubbles */
.chat-msg {
    display: flex;
    margin-bottom: 0.75rem;
}

.chat-msg.admin {
    justify-content: flex-start;
}

.chat-msg.user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 75%;
    padding: 0.6rem 0.9rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.chat-bubble.admin {
    background: rgba(255,255,255,0.07);
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
}

.chat-bubble.user {
    background: rgba(245,158,11,0.2);
    color: #fde68a;
    border-bottom-right-radius: 4px;
}

.chat-time {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 4px;
}

/* Order items in dashboard */
.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.75rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
}

.order-item:hover,
.order-item.active {
    border-color: rgba(245,158,11,0.4);
    background: rgba(245,158,11,0.05);
}

.order-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.order-info {
    flex: 1;
    min-width: 0;
}

.order-id {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    font-family: monospace;
}

.order-status {
    font-size: 0.75rem;
    margin-top: 2px;
}

.order-last-msg {
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.pay-badge {
    background: rgba(245,158,11,0.2);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.4);
    border-radius: 0.4rem;
    padding: 4px 10px;
    font-size: 0.72rem;
    cursor: pointer;
    flex-shrink: 0;
}

/* Chat panel */
.chat-panel {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    height: 500px;
    overflow: hidden;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-order-id {
    font-family: monospace;
    font-size: 0.85rem;
    color: #e2e8f0;
    font-weight: 600;
}

.chat-status {
    font-size: 0.75rem;
}

.chat-amount {
    font-size: 0.85rem;
    color: #f59e0b;
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.chat-input-area {
    padding: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-size: 0.85rem;
}

.chat-input:focus {
    outline: none;
    border-color: rgba(245,158,11,0.5);
}

.chat-send-btn {
    padding: 0.5rem 1rem;
    background: rgba(245,158,11,0.8);
    color: black;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
}

.pay-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: rgba(245,158,11,0.1);
    border-bottom: 1px solid rgba(245,158,11,0.2);
    font-size: 0.8rem;
    color: #fde68a;
    flex-shrink: 0;
}

.pay-now-btn {
    background: #f59e0b;
    color: black;
    border: none;
    border-radius: 0.4rem;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.tracking-notice {
    padding: 0.5rem 1rem;
    background: rgba(34,197,94,0.1);
    border-bottom: 1px solid rgba(34,197,94,0.2);
    font-size: 0.8rem;
    color: #86efac;
    flex-shrink: 0;
}

/* Login modal */
#loginModal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loginModal.hidden,
#registerModal.hidden {
    display: none !important;
    pointer-events: none !important;
}

/* Toast override */
.no-chat-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #475569;
    font-size: 0.9rem;
}

/* admin detail hidden */
#adminOrderDetail.hidden {
    display: none;
}

/* ===== Design card hover overlay ===== */
.design-img-wrap { position: relative; overflow: hidden; }
.design-order-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}
.design-img-wrap:hover .design-order-overlay { opacity: 1; pointer-events: auto; }
.design-delete-btn { opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.design-img-wrap:hover .design-delete-btn { opacity: 1; pointer-events: auto; }
.design-overlay-btn {
    background: rgba(245,158,11,0.95); border: none; color: #000;
    padding: 7px 14px; cursor: pointer; border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: background 0.2s, transform 0.2s;
}
.design-overlay-btn:hover { background: #f59e0b; transform: scale(1.05); }

/* ===== Color / Kaplama grid ===== */
.color-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.color-option { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: all 0.3s; }
.color-circle { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.1); transition: all 0.3s; }
.color-option:hover .color-circle { transform: scale(1.1); }
.color-option.selected .color-circle { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.3); }
.color-option span { font-size: 0.65rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; text-align: center; }
.color-option.selected span { color: #fbbf24; }
.color-option.color-disabled { opacity: 0.3; pointer-events: none; }

/* =====================================================
   D1 + D2 — Tablet & Mobil Responsive Düzeltmeleri
   ===================================================== */

/* 1. Dashboard tasarım grid: telefonda 1 sütun */
@media(max-width:480px) {
    .dash-grid { grid-template-columns: 1fr; }
}

/* 2. Siparişler layout: mobilde sabit yükseklik kaldır */
@media(max-width:768px) {
    .orders-layout { min-height: unset; gap: 12px; }
    .orders-list-col { max-height: 340px; }
    .chat-panel { min-height: 260px; }
    /* Chat send button: mobilde padding küçült, taşma engelle */
    .chat-send-btn { padding: 0.5rem 0.65rem; white-space: nowrap; flex-shrink: 0; }
    .chat-input { min-width: 0; }
}

/* 3. Admin slide panel: tablette de tam genişlik */
@media(max-width:768px) {
    .admin-slide { width: 100%; right: -100%; padding: 16px; }
}

/* 4. Admin chat paneli: tablette otomatik yükseklik */
@media(max-width:900px) {
    #adminChatPanel { height: auto; min-height: 420px; }
}

/* 5. Admin tablo: minimum genişlik zorla → yatay kaydırma tutarlı */
#adminOrdersList + * ,
.admin-panel-card table { min-width: 560px; }

/* 6. Admin toplam satırı: mobilde alt alta */
@media(max-width:480px) {
    .admin-orders-total { flex-direction: column; gap: 4px; align-items: flex-start; }
}

/* 7. Navbar: mobilde kullanıcı adı ve çıkış gizle */
@media(max-width:767px) {
    #userNameDisplay { display: none !important; }
    #logoutBtn       { display: none !important; }
}

/* 8. Navbar butonları: mobilde küçük */
@media(max-width:767px) {
    #accountBtn, #adminBtn,
    #authButtons button {
        font-size: 0.72rem !important;
        padding: 6px 10px !important;
    }
}

/* 9. Admin mesajlar listesi: mobil uyumlu */
@media(max-width:600px) {
    .admin-list-controls { padding: 0.5rem; }
    .admin-controls-row { flex-wrap: wrap; gap: 0.3rem; }
}

