.gr-btn{display:inline-flex;align-items:center;gap:6px;padding:10px 20px;border:none;border-radius:8px;cursor:pointer;font-size:.9em;font-family:inherit;text-decoration:none;transition:all .3s ease;line-height:1.5}
.gr-btn-sm{padding:6px 12px;font-size:.82em}
.gr-btn-lg{padding:14px 30px;font-size:1.05em}
.gr-btn-primary{background:var(--gr-primary,#d4a843);color:#fff}
.gr-btn-primary:hover{background:var(--gr-primary-dark,#b8922e);color:#fff;transform:translateY(-1px)}
.gr-btn-secondary{background:var(--gr-secondary,#2c3e50);color:#fff}
.gr-btn-secondary:hover{background:#1a252f;color:#fff}
.gr-btn-success{background:var(--gr-success,#27ae60);color:#fff}
.gr-btn-success:hover{background:#219a52;color:#fff}
.gr-btn-danger{background:var(--gr-danger,#e74c3c);color:#fff}
.gr-btn-danger:hover{background:#c0392b;color:#fff}
.gr-btn-info{background:var(--gr-info,#3498db);color:#fff}
.gr-btn-info:hover{background:#2980b9;color:#fff}
.gr-btn-outline{background:transparent;border:2px solid var(--gr-border,#dee2e6);color:var(--gr-dark,#343a40)}
.gr-btn-outline:hover{border-color:var(--gr-primary,#d4a843);color:var(--gr-primary,#d4a843)}
.gr-dashboard{max-width:1100px;margin:30px auto;padding:0 15px;direction:rtl;font-family:'IRANSans','Vazir','Tahoma',sans-serif}
.gr-dashboard-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;flex-wrap:wrap;gap:15px}
.gr-dashboard-header h2{margin:0;color:var(--gr-secondary,#2c3e50)}
.gr-notice{padding:15px 20px;border-radius:8px;margin-bottom:20px;border-right:4px solid}
.gr-notice-info{background:#e8f4fd;border-color:var(--gr-info,#3498db);color:#1a5276}
.gr-notice-warning{background:#fef5e7;border-color:var(--gr-warning,#f39c12);color:#7d6608}
.gr-notice-error{background:#fdedec;border-color:var(--gr-danger,#e74c3c);color:#922b21}
.gr-notice-success{background:#eafaf1;border-color:var(--gr-success,#27ae60);color:#1e8449}
.gr-restaurants-list{display:grid;gap:20px}
.gr-restaurant-card{background:#fff;border-radius:12px;box-shadow:0 2px 15px #00000014;overflow:hidden;transition:all .3s ease;border:1px solid #eee}
.gr-restaurant-card:hover{box-shadow:0 5px 25px #0000001f}
.gr-restaurant-card-header{display:flex;align-items:center;gap:15px;padding:20px;background:linear-gradient(135deg,#f8f9fa 0%,#fff 100%);border-bottom:1px solid #eee}
.gr-restaurant-logo{width:60px;height:60px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 2px 8px #0000001a}
.gr-restaurant-logo-placeholder{width:60px;height:60px;border-radius:50%;background:#f0f0f0;display:flex;align-items:center;justify-content:center;font-size:1.5em;color:#aaa}
.gr-restaurant-info{flex:1}
.gr-restaurant-info h3{margin:0 0 3px;color:var(--gr-secondary,#2c3e50);font-size:1.15em}
.gr-latin-name{color:var(--gr-gray,#6c757d);font-size:.85em;direction:ltr;display:inline-block}
.gr-status-badge{padding:6px 14px;border-radius:20px;font-size:.8em;font-weight:700;white-space:nowrap}
.gr-status-active{background:#eafaf1;color:#27ae60}
.gr-status-inactive{background:#f0f0f0;color:#6c757d}
.gr-status-expired{background:#fdedec;color:#e74c3c}
.gr-status-trial{background:#e8f4fd;color:#3498db}
.gr-status-pending{background:#fef5e7;color:#f39c12}
.gr-restaurant-card-body{padding:15px 20px}
.gr-restaurant-meta{display:flex;flex-wrap:wrap;gap:20px}
.gr-meta-item{display:flex;gap:6px;font-size:.9em}
.gr-meta-label{color:var(--gr-gray,#6c757d)}
.gr-meta-value{color:var(--gr-dark,#343a40);font-weight:600}
.gr-text-danger{color:var(--gr-danger,#e74c3c)!important}
.gr-restaurant-card-actions{display:flex;flex-wrap:wrap;gap:8px;padding:15px 20px;background:#fafafa;border-top:1px solid #eee}
.gr-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:#0009;z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px}
.gr-modal-content{background:#fff;border-radius:16px;max-width:700px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d}
.gr-modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 25px;border-bottom:1px solid #eee}
.gr-modal-header h3{margin:0;color:var(--gr-secondary,#2c3e50)}
.gr-modal-close{background:none;border:none;font-size:1.5em;cursor:pointer;color:#999;padding:5px;line-height:1}
.gr-modal-close:hover{color:#333}
.gr-modal-body{padding:25px}
.gr-packages-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:15px}
.gr-package-card{text-align:center;padding:20px 15px;border:2px solid #eee;border-radius:12px;cursor:pointer;transition:all .3s ease}
.gr-package-card:hover{border-color:var(--gr-primary,#d4a843);background:#fffdf5;transform:translateY(-3px)}
.gr-package-card h4{margin:0 0 10px;color:var(--gr-secondary,#2c3e50)}
.gr-package-price{font-size:1.3em;font-weight:700;color:var(--gr-primary-dark,#b8922e);margin-bottom:5px}
.gr-package-days{color:var(--gr-gray,#6c757d);font-size:.85em;margin-bottom:15px}
.gr-form-container{max-width:900px;margin:30px auto;padding:0 15px;direction:rtl;font-family:'IRANSans','Vazir','Tahoma',sans-serif}
.gr-form-section{background:#fff;padding:25px;border-radius:12px;box-shadow:0 2px 15px #00000014;margin-bottom:20px}
.gr-form-section h3{margin:0 0 20px;padding-bottom:10px;border-bottom:2px solid var(--gr-primary,#d4a843);color:var(--gr-secondary,#2c3e50)}
.gr-form-row{display:flex;flex-wrap:wrap;gap:15px;margin-bottom:5px}
.gr-form-group{margin-bottom:15px}
.gr-col-2{flex:0 0 calc(16.66% - 12px);min-width:80px}
.gr-col-3{flex:0 0 calc(25% - 12px);min-width:120px}
.gr-col-4{flex:0 0 calc(33.33% - 10px);min-width:150px}
.gr-col-6{flex:0 0 calc(50% - 8px);min-width:200px}
.gr-col-12{flex:0 0 100%}
.gr-form-group label{display:block;margin-bottom:6px;font-weight:600;color:var(--gr-dark,#343a40);font-size:.9em}
.gr-form-group .required{color:var(--gr-danger,#e74c3c)}
.gr-form-group input[type="text"],.gr-form-group input[type="url"],.gr-form-group input[type="email"],.gr-form-group input[type="number"],.gr-form-group textarea,.gr-form-group select{width:100%;padding:10px 14px;border:2px solid #e0e0e0;border-radius:8px;font-size:.9em;font-family:inherit;transition:border-color .3s ease;background:#fff;box-sizing:border-box}
.gr-form-group input:focus,.gr-form-group textarea:focus,.gr-form-group select:focus{border-color:var(--gr-primary,#d4a843);outline:none;box-shadow:0 0 0 3px #d4a84326}
.gr-form-group small{color:var(--gr-gray,#6c757d);font-size:.8em;margin-top:4px;display:block}
.gr-form-notice{background:#e8f4fd;padding:12px 18px;border-radius:8px;color:#1a5276;margin-bottom:20px;font-size:.9em}
.gr-form-actions{text-align:center;padding:20px 0}
.gr-form-loading{margin-top:15px;color:var(--gr-gray,#6c757d)}
.gr-phone-row{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin-bottom:10px}
.gr-image-upload{margin-top:5px}
.gr-image-preview{margin-bottom:10px;position:relative;display:inline-block}
.gr-image-preview img{width:100px;height:100px;object-fit:cover;border-radius:8px;border:2px solid #eee}
.gr-remove-image{position:absolute;top:-8px;right:-8px;background:var(--gr-danger,#e74c3c);color:#fff;border:none;border-radius:50%;width:24px;height:24px;cursor:pointer;font-size:14px;line-height:1;display:flex;align-items:center;justify-content:center}
.gr-gallery-preview{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:10px}
.gr-gallery-thumb{position:relative;display:inline-block}
.gr-gallery-thumb img{width:80px;height:80px;object-fit:cover;border-radius:6px;border:2px solid #eee}
.gr-remove-gallery-image{position:absolute;top:-6px;right:-6px;background:var(--gr-danger,#e74c3c);color:#fff;border:none;border-radius:50%;width:20px;height:20px;cursor:pointer;font-size:12px;line-height:1}
.gr-menu-item-row,.gr-product-row{display:flex;justify-content:space-between;align-items:center;padding:15px;border:1px solid #eee;border-radius:8px;margin-bottom:10px;background:#fff;transition:all .2s ease}
.gr-menu-item-row:hover,.gr-product-row:hover{border-color:var(--gr-primary,#d4a843);background:#fffdf5}
.gr-menu-item-info,.gr-product-info{display:flex;align-items:center;gap:12px;flex:1}
.gr-menu-thumb,.gr-product-thumb{width:50px;height:50px;object-fit:cover;border-radius:6px}
.gr-menu-item-actions,.gr-product-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.gr-order-badge{background:#f0f0f0;padding:3px 10px;border-radius:10px;font-size:.8em;color:var(--gr-gray,#6c757d)}
.gr-price{font-weight:700;color:var(--gr-primary-dark,#b8922e);font-size:.95em}
.gr-availability{padding:3px 10px;border-radius:10px;font-size:.8em}
.gr-available{background:#eafaf1;color:#27ae60}
.gr-not-available{background:#fdedec;color:#e74c3c}
.gr-unavailable{opacity:.6}
.gr-menu-group-title{display:flex;align-items:center;gap:10px;margin-top:25px;margin-bottom:15px;color:var(--gr-secondary,#2c3e50)}
.gr-count-badge{background:var(--gr-primary,#d4a843);color:#fff;padding:2px 10px;border-radius:15px;font-size:.75em;font-weight:400}
.gr-text-muted{color:var(--gr-gray,#6c757d);font-style:italic}
.gr-admin-status{padding:3px 10px;border-radius:10px;font-size:.85em}
.gr-admin-status-active{background:#eafaf1;color:#27ae60}
.gr-admin-status-expired{background:#fdedec;color:#e74c3c}
@media (max-width: 768px) {
.gr-dashboard-header{flex-direction:column;align-items:flex-start}
.gr-restaurant-card-header{flex-wrap:wrap}
.gr-restaurant-card-actions{justify-content:center}
.gr-form-row{flex-direction:column}
.gr-col-2,.gr-col-3,.gr-col-4,.gr-col-6{flex:0 0 100%;min-width:auto}
.gr-packages-grid{grid-template-columns:1fr 1fr}
.gr-phone-row{flex-direction:column;align-items:stretch}
.gr-menu-item-row,.gr-product-row{flex-direction:column;gap:10px;align-items:flex-start}
.gr-product-meta{width:100%;justify-content:space-between}
}
@media (max-width: 480px) {
.gr-packages-grid{grid-template-columns:1fr}
}
.gr-status-info-bar{display:flex;gap:20px;padding:15px 20px;background:linear-gradient(135deg,#f8f9fa 0%,#e9ecef 100%);border-radius:10px;margin-bottom:20px;flex-wrap:wrap}
.gr-status-info-item{display:flex;flex-direction:column;gap:3px}
.gr-status-info-item span{font-size:.85em;color:#6c757d}
.gr-status-info-item strong{font-size:1.05em;color:#2c3e50}
.gr-upload-placeholder{width:100px;height:100px;border:2px dashed #dee2e6;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f8f9fa;color:#adb5bd}
.gr-upload-placeholder span{font-size:2em;margin-bottom:5px}
.gr-upload-placeholder p{margin:0;font-size:.75em}
.gr-slug-preview{margin-top:5px;padding:5px 10px;background:#e8f4fd;border-radius:5px;font-size:.8em;color:#1a5276;direction:ltr;text-align:left}
.gr-package-info-box{margin-top:15px;padding:15px;border:2px solid #d4a843;border-radius:10px;background:#fffdf5}
.gr-package-info-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}
.gr-select-styled{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 10px center;padding-left:35px}
.gr-spinner{width:20px;height:20px;border:3px solid #f3f3f3;border-top:3px solid #d4a843;border-radius:50%;animation:spin 1s linear infinite;display:inline-block;margin-left:10px}
@keyframes spin {
0%{transform:rotate(0deg)}
100%{transform:rotate(360deg)}
}
.gr-menu-thumb-placeholder,.gr-product-thumb-placeholder{width:50px;height:50px;border-radius:6px;background:#f0f0f0;display:flex;align-items:center;justify-content:center;font-size:1.5em;color:#aaa}
.gr-stats-bar{display:flex;gap:20px;padding:20px;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border-radius:12px;margin-bottom:25px;flex-wrap:wrap}
.gr-stat-item{display:flex;flex-direction:column;align-items:center;color:#fff}
.gr-stat-number{font-size:2em;font-weight:700;line-height:1}
.gr-stat-label{font-size:.85em;opacity:.9;margin-top:5px}
.gr-empty-state{text-align:center;padding:60px 20px;color:#6c757d}
.gr-empty-icon{font-size:4em;margin-bottom:15px;opacity:.3}
.gr-action-footer{text-align:center;margin-top:30px;padding-top:20px;border-top:2px solid #eee}
.gr-empty-menus-list{display:flex;flex-wrap:wrap;gap:10px}
.gr-empty-menu-item{padding:10px 15px;background:#fef5e7;border:1px solid #f39c12;border-radius:8px;color:#7d6608;font-size:.9em}
.gr-product-details{flex:1}
.gr-product-desc{color:#6c757d;line-height:1.5}
.gr-header-actions{display:flex;gap:10px;flex-wrap:wrap}
.gr-section-desc{color:#6c757d;font-size:.9em;margin:-10px 0 15px}
.gr-modal-description{text-align:center;color:#6c757d;margin-bottom:20px}
.gr-package-popular{position:absolute;top:-10px;right:-10px;background:#e74c3c;color:#fff;padding:3px 10px;border-radius:12px;font-size:.7em;font-weight:700;z-index:1}
.gr-package-card{position:relative}
.gr-package-daily{font-size:.8em;color:#27ae60;margin-top:5px}
.gr-phone-preview{display:block;margin-top:3px;font-size:.85em;color:#6c757d}
.gr-progress-bar-container{width:100%;height:6px;background:#e9ecef;border-radius:10px;overflow:hidden;margin-top:15px}
.gr-progress-bar{height:100%;transition:width .3s ease;border-radius:10px}
@media (max-width: 768px) {
.gr-header-actions{width:100%;justify-content:center}
.gr-stats-bar{justify-content:center}
.gr-status-info-bar{justify-content:center;text-align:center}
}