/* ============================================================
   SECTION 1: BASE GRID SYSTEM (2% INCREMENTS)
   Maintaining compatibility with your divclass.php variables
   ============================================================ */
* { box-sizing: border-box; }

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

.row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/* 2% Increment Scale */
.col-2   { width: 2%; }   .col-4   { width: 4%; }   .col-6   { width: 6%; }
.col-8   { width: 8%; }   .col-10  { width: 10%; }  .col-12  { width: 12%; }
.col-14  { width: 14%; }  .col-16  { width: 16%; }  .col-18  { width: 18%; }
.col-20  { width: 20%; }  .col-22  { width: 22%; }  .col-24  { width: 24%; }
.col-26  { width: 26%; }  .col-28  { width: 28%; }  .col-30  { width: 30%; }
.col-32  { width: 32%; }  .col-34  { width: 34%; }  .col-36  { width: 36%; }
.col-38  { width: 38%; }  .col-40  { width: 40%; }  .col-42  { width: 42%; }
.col-44  { width: 44%; }  .col-46  { width: 46%; }  .col-48  { width: 48%; }
.col-50  { width: 50%; }  .col-52  { width: 52%; }  .col-54  { width: 54%; }
.col-56  { width: 56%; }  .col-58  { width: 58%; }  .col-60  { width: 60%; }
.col-62  { width: 62%; }  .col-64  { width: 64%; }  .col-66  { width: 66%; }
.col-68  { width: 68%; }  .col-70  { width: 70%; }  .col-72  { width: 72%; }
.col-74  { width: 74%; }  .col-76  { width: 76%; }  .col-78  { width: 78%; }
.col-80  { width: 80%; }  .col-82  { width: 82%; }  .col-84  { width: 84%; }
.col-86  { width: 86%; }  .col-88  { width: 88%; }  .col-90  { width: 90%; }
.col-92  { width: 92%; }  .col-94  { width: 94%; }  .col-96  { width: 96%; }
.col-98  { width: 98%; }  .col-100 { width: 100%; }

/* Special Utility Columns */
.col-15  { width: 15%; }
.col-25  { width: 25%; }
.col-75  { width: 75%; }
.col-33  {
    width: 33.33%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================================
   SECTION 2: PRODUCT GRID & CARDS
   Enhanced with shadows and hover transitions
   ============================================================ */
.product-grid {
    width: 100%;       /* Fills the parent width */
    /*max-width: 100%;*/
    padding: 10px;
    margin: 0;
}

/* Row wrapper inside the grid uses flex and a gap */
.product-grid > .row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 15px;
    justify-content: flex-start;
}

/* Default Product Item: 1 Column (Portrait/Mobile) */
.product-item {
    flex: 1 1 100%;
   /* max-width: 100%;*/
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1.5px solid #f0f0f0;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.product-item > div:first-child {
    flex-grow: 1;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #ffcccc; /* Soft red brand highlight */
}

/* ============================================================
   SECTION 3: RESPONSIVE LAYOUT LOGIC
   Preserving orientation and screen size breakpoints
   ============================================================ */
.account-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 15px;
    padding: 10px;
}

.print-line {
    display: block;
    width: 100%;
    margin-bottom: 5px;
}

/* LANDSCAPE (Desktop/Sidebar Mode) */
@media screen and (min-width: 769px) {
    .account-wrapper {
        display: flex;
        flex-direction: row;
        gap: 15px;
        align-items: flex-start;
    }
    /* 2 columns on tablet, 4 on desktop via .product-item flex-basis */
    .pay-column-half {
        width: 50%;
    }
    /* Responsive Payment Columns */
    .pay-resp {
        width: 50%; /* Default: Side-by-side */
        display: flex;
        flex-direction: column;
    }
    .menu-container { flex: 0 0 auto; }
    .board-container { flex: 1; }

    /* Tablet Landscape: 2 Columns */
    .product-item {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }

    /* Force items inside menu rows to stack in 1 column in landscape */
    .myaccount .menu-row-content {
        flex-direction: column !important;
        align-items: center;
        gap: 10px;
    }

    .myaccount img {
        margin-bottom: 10px;
    }
}

/* DESKTOP / LARGE SCREENS (4 COLUMNS) */
@media screen and (min-width: 1024px) {
    .product-item {
        /* calc(25% - share of the gap) to fit 4 items */
        flex: 1 1 calc(25% - 15px);
        max-width: calc(25% - 15px);
    }
}

/* PORTRAIT (Mobile Mode) */
@media screen and (max-width: 768px), (orientation: portrait) {
    .account-wrapper {
        flex-direction: column !important;
        align-items: center;
        padding: 5px;
    }

    .board-container { width: 100% !important; }

    .menu-container {
        width: 100% !important;
        margin-bottom: 10px;
    }

    /* Floating box style for mobile menu */
    .myaccount {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        display: block !important;
        background: rgba(228, 248, 250, 0.95) !important;
        border-radius: 12px;
        padding: 10px !important;
        overflow-x: auto;
        margin-bottom: 15px;
    }

    /* Force rows to be horizontal lines in portrait */
    .myaccount .menu-row-content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-around !important;
        align-items: center;
        width: 100%;
        padding: 5px 0;
    }

    /* Divider between menu rows */
    .myaccount .row:first-child {
        border-bottom: 1px solid rgba(0,0,0,0.05);
        margin-bottom: 5px;
    }

    /* Kill standard line breaks and spacing variables for mobile */
    .myaccount br,
    .myaccount .iconspace {
        display: none !important;
    }

    /* Portrait Menu Icon Override */
    .myaccount img {
        width: 40px !important;
        height: 40px !important;
        margin: 0 5px;
        object-fit: contain;
    }

}

/* ============================================================
   SECTION 4: BUTTONS & VISUAL EFFECTS
   ============================================================ */

.board-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.button-85 {
  padding: 0.8em 2.5em;
  border: none;
  color: white;
  background: #111;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

.button-85:before {
  content: "";
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  position: absolute;
  top: -2px; left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing-button-85 20s linear infinite;
  border-radius: 10px;
}

@keyframes glowing-button-85 {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

/* ============================================================
   ORIGINAL BUY NOW BUTTON & FORM INPUTS
   ============================================================ */
.btn-buy-store {
    background-image: url('../../image/store.jpg') !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none !important;
    background-color: transparent !important;

    display: inline-block !important;
    width: 65px !important;
    height: 65px !important;

    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px;

    cursor: pointer;
    outline: none;
}

.btn-buy-store:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.btn-buy-store:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}

/* ============================================================
   SECTION 5: BOX IDS & UTILITIES
   Ensuring compatibility with existing HTML elements
   ============================================================ */
#boxredround {
  border: 2px solid #ff0000;
  padding: 15px;
  border-radius: 20px;
  margin-bottom: 10px;
}
#boxredroundcenter {
  border: 2px solid red;
  padding: 10px;
  border-radius: 25px;
  align-items: center;
  text-align: center;
  margin-bottom: 10px;
}
#boxroundcenter {
  border: 2px;
  padding: 10px;
  border-radius: 25px;
  align-items: center;
  text-align: center;
}

/* ============================================================
   GOLDEN GRADIENT HR (Beautiful Fade Shade)
   ============================================================ */
hr.gradient {
  border: none;
  height: 3px; /* Slightly thicker for better visibility of the gold */
  background-color: transparent;

  /* Luxury Gold Gradient: Transparent -> Deep Bronze -> Bright Gold -> Deep Bronze -> Transparent */
  background-image: linear-gradient(
    to right,
    rgba(184, 138, 0, 0),    /* Start Transparent */
    rgba(184, 138, 0, 0.6),  /* Deep Bronze */
    rgba(255, 215, 0, 1),    /* Brilliant Gold Center */
    rgba(184, 138, 0, 0.6),  /* Deep Bronze */
    rgba(184, 138, 0, 0)     /* End Transparent */
  );

  width: 85%;
  margin: 25px auto;

  /* Adds a subtle golden "glow" to the line */
  box-shadow: 0px 1px 4px rgba(255, 215, 0, 0.4);
  border-radius: 50%; /* Softens the tips of the gradient */
}

.volumeno {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    outline: none;
    width: 100%; /* Ensures it fits the container */
}
.volumeno:focus { border-color: #0505ED; }

.currency { color: #0505ED; font-weight: bold; }
.fill { object-fit: cover; max-width: 100%; border-radius: 8px; }
.blink-text1 { animation: blinker 1.5s linear infinite; }
.blink-text2 { animation: blinker 1s linear infinite; }

@keyframes blinker {
    50% { opacity: 0; }
}

.error {
  font: normal 11px arial, verdana;
  color: #c00;
  border: 1px solid #c00;
  padding: 2px;
  margin: 5px;
  float: left;
  background-color: #FEF1ED;
}

.msg {
  padding: 5px;
  width: 200px;
  margin: 2px;
  color: #c00;
  border: 1px solid #c00;
  background-color: #FEF1ED;
  font: bold 13px  verdana;
}
/* Ensure the sticky footer button doesn't cover content */
.pos_b_fix {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 15px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.pos_t_fix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 10px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    z-index: 999;
}

/* Payment Specific Styles */
.payment-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #eee;
}

.kbank-header {
    background: #00A950; /* K-Bank Green Style */
    color: white;
    padding: 8px;
    font-weight: bold;
    font-size: 0.9em;
}

.qr-frame { padding: 15px; background: white; }
.payment-card .amount {
    font-size: 26px;
    font-weight: bold;
    color: #333;
    padding-bottom: 5px;
}

.payment-card .ref {
    background: #f1f1f1;
    padding: 4px;
    font-family: monospace;
    font-size: 13px;
    color: #555;
    border-top: 1px solid #eee;
}

.payment-card .instructions {
    padding: 10px;
    font-size: 11px;
    color: #999;
}

/* Modern Drag & Drop Zone */
#drop-zone {
    width: 100%;
    height: 250px;
    border: 3px dashed #ccc;
    border-radius: 20px;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #999;
    background: #fafafa;
    transition: all 0.3s ease;
    position: relative;
    margin: 20px 0;
}

#drop-zone.mouse-over {
    border-color: #0505ED;
    background-color: rgba(5, 5, 237, 0.05);
    color: #0505ED;
}

#clickHere {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #3b85c3;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#clickHere:hover { background-color: #4499DD; }

#fileToUpload {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    cursor: pointer;
    opacity: 0;
}
